Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about to start something to pacman-namco (arcade machine)
#2
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

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...


Attached Files
.zip   example01_pacman_mame_zxbasic.zip (Size: 31.42 KB / Downloads: 687)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)