snake6502/src/data.asm

75 lines
1.1 KiB
NASM
Raw Normal View History

2020-09-15 12:57:10 +00:00
#if VERBOSE = 1
LASTINIT SET .
#endif
; Data section - Not initialized variables ($CD00 - $CDFF)
; ----------------------------------------------------------------------
; Number of interrupt
; Used as counter to be decremented to do some things less frequently
irqn:
BYTE
; Direction of the snake (2,4,6,8 as down,left,right,up)
; 5 means `pause`
direction:
BYTE
; Snake head coordinates in video memory
snakeX:
BYTE
snakeY:
BYTE
; Parameters for calcTileMem
calcTileX:
BYTE
calcTileY:
BYTE
; List start and length
listStart:
BYTE
length:
BYTE
; Random value
random:
BYTE
; Status
status:
BYTE
; Level temporary vars
levelT:
BYTE
levelN:
BYTE
2020-04-08 07:15:25 +00:00
; next status after delay
delayStatus:
BYTE
2020-04-08 08:54:54 +00:00
; Total score of the game
score:
WORD
2021-04-13 21:19:47 +00:00
; vertical scroll intro
introYscroll:
BYTE
2021-04-14 09:24:36 +00:00
; interrupt raster line to draw moustache
moustacheLine:
2021-04-13 21:19:47 +00:00
BYTE
2021-04-15 12:33:29 +00:00
; horizontal intro scroll
XScrollOffset:
BYTE
XScrollDirection:
BYTE
XCharOffset:
BYTE
2020-09-15 12:57:10 +00:00
#if VERBOSE = 1
ECHO "data.asm @ ",LASTINIT,"len:",(. - LASTINIT)
#endif