base:detect_vic_type
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | base:detect_vic_type [2015-04-17 04:31] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Detect VIC Model ====== | ||
+ | " | ||
+ | |||
+ | new (with the grey dots if you change the color - 9 lumas) | ||
+ | old (without the grey dots - 9 lumas) | ||
+ | VERY old (without the grey dots - 5 lumas). | ||
+ | |||
+ | This VIC-Check routine checks only for the new/old version, not the very old with less luma steps!" | ||
+ | |||
+ | < | ||
+ | VIC_type no.---luma steps---VICCHECK.prg | ||
+ | ---------------------------------------- | ||
+ | |||
+ | PAL 8565R2-4191 | ||
+ | PAL 8565R2-3991(22) | ||
+ | PAL 8565R2-0787(22) | ||
+ | |||
+ | PAL 6596R5 | ||
+ | PAL 6569R3-4685 | ||
+ | PAL 6569R3-2983 | ||
+ | |||
+ | PAL 6569R1-2283 | ||
+ | |||
+ | PAL-N 6572R0 | ||
+ | NTSC | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ; --------------------------------------------------------------------------- | ||
+ | ; VIC-Check 2 written by Crossbow/ | ||
+ | ; --------------------------------------------------------------------------- | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | ; init VIC registers | ||
+ | | ||
+ | |||
+ | loc_813: | ||
+ | | ||
+ | | ||
+ | DEX | ||
+ | | ||
+ | |||
+ | ; clear sprite data at $2800 | ||
+ | TXA | ||
+ | |||
+ | loc_81D: | ||
+ | | ||
+ | INX | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | ; put a black reversed space at start of charline 22 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | mainloop: | ||
+ | |||
+ | ; wait for rasterline $e4 | ||
+ | | ||
+ | loc_835: | ||
+ | | ||
+ | | ||
+ | |||
+ | ; waste some cycles | ||
+ | | ||
+ | loc_83C: | ||
+ | DEX | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | DEX | ||
+ | | ||
+ | |||
+ | ; 4 cycles more for ntsc | ||
+ | | ||
+ | | ||
+ | |||
+ | NOP | ||
+ | NOP | ||
+ | |||
+ | loc_851: | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | ; display result | ||
+ | | ||
+ | loc_85C: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | INX | ||
+ | INY | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | ; --------------------------------------------------------------------------- | ||
+ | victype: | ||
+ | !scr "old vic " | ||
+ | !scr "new vic " | ||
+ | |||
+ | vicregs: | ||
+ | | ||
+ | | ||
+ | .BYTE $9B ; $d011 | ||
+ | | ||
+ | .BYTE $3E ; $d013 latch x | ||
+ | .BYTE $6C ; $d014 latch y | ||
+ | | ||
+ | .BYTE $C8 ; $d016 | ||
+ | | ||
+ | .BYTE $15 ; $d018 Memory Control Register | ||
+ | .BYTE $79 ; $d019 Interrupt Request Register (IRR) | ||
+ | .BYTE $F0 ; $d01a Interrupt Mask Register (IMR) | ||
+ | .BYTE 0, | ||
+ | </ |
base/detect_vic_type.txt · Last modified: 2015-04-17 04:31 by 127.0.0.1