I was learning about double buffering using that awesome Nyan cat source code. I already implemented this technique on other systems and i know how it works. However, when running with macro assembler cartridge, the execution freezes on this line:
Code : Tout sélectionner
LDB #$00
ANDB #$02 * page RAM no0 ou no2 utilisée dans l'espace cartouche
ORB #$60 * espace cartouche recouvert par RAM / écriture autorisée
STB $A7E6
Seems he doesn't like STB $A7E6, if i put a STOP before that line it stops to prompt, if i put stop after that line, it stays freezed.
$A7E6 is one of the gate mode pages but if i was wondering if its crashing because i'm executing this from the cartridge so he couldn't write on memory. Otherwise can't see the real reason.
I often use debgger to see what values are in memory, but its hard to debug such crashes, if you have suggestions i'd be grateful
Cheers