Posted By
 Luca on 2020-04-07 16:53:12
 | Re: Atic Atac is released
Omg there was no my intention to be that obscure... 
Stinaris with that classic code, you simply preserve the original video format of any machine where your game runs, to allow both NTSC and PAL users to play your game (of course, clocks are a bit different, but the game can be displayed anyway...): read $FF07, see if bit6 is 1 or 0, "paste" the value intended to STA in $FF07 and that's all. If you previously wanted #$08 into $FF07, with this code the value will be #$08 in PAL machines, and automatically #$48 in NTSC machines.
Shut off the keyboard in 5 bytes, simply LDA#$FF STA$FD30 just before you STX $FF08.
Really? No crash in YAPE 1.1.7? Weird... Did you configure your YAPE at "very high compatibility" in /Machine/Configuration? |