Hahaha, we're not all geniusses !! I read the bible, but this subject is new to me, and there seems to be something i did wrong, could you have a peek at this code?
This is my table R#32-R#46
VR2RAM:
SX: DB 0,0
SY: DB 0,0
DX: DB 0,0
DY: DB 0,0
NX: DB 10,0
NY: DB 10,0
CLR: DB 0
ARG: DB 0
CMD DB $A0 ;LMCM
This means I will copy a block of 10x10 to RAM.
I know that after executing the CMD I can readout S#7 for the color value.
But I dont even get to that point, because
after executing the CMD the computer hangs......
I did read that TR needs to be reset before executing the command.
I think I did reset TR like this:
ld a,2 ;s#2 reset TR
di
out ($99),a
ld a,15+128 ;status register access
out ($99),a
in a,($99)
ld a,0 ;back to s#0
out ($99),a
ld a,15+128
ei
out ($99),a
what did i do wrong here?