09-18-2012, 02:37 PM
The whole first experiment is in the attachment here in this message.
For some reason, i may be doing something wrong in this example01.zxb
the result of the character map, sprite sheet, clut and palette seems good enough (you can see when pressing 'f4' on mame (at least on old version of mame) - and browse them with cursor keys ), but the code itself seems to be not running at all...
For some reason, i may be doing something wrong in this example01.zxb
Code:
'- i really don't know if there is some stack issue, and if we can solve this way
asm
ld sp,$07EF
end asm
dim i as uinteger at $4800
dim x as uinteger at $4802
'- this should put some characters on the pattern display area
for i=0 to 255
poke $4040+i,i
poke $4440+i,i
next
'- this should move a sprite on the screen
loop01:
for i=0 to 63
for x=0 to 255
poke $4FF0,i*4 '- shape sprite 0
poke $4FF1,i '- clut? sprite 0
poke $5060,x '- x sprite 0
poke $5061,128 '- y sprite 0
'- waitvbl
asm
halt
end asm
next:next
goto loop01
the result of the character map, sprite sheet, clut and palette seems good enough (you can see when pressing 'f4' on mame (at least on old version of mame) - and browse them with cursor keys ), but the code itself seems to be not running at all...