mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-22 09:30:45 +00:00
32 lines
262 B
NASM
32 lines
262 B
NASM
JSR init
|
|
|
|
JSR loop
|
|
|
|
|
|
init:
|
|
; initializes values
|
|
|
|
JSR initSnake
|
|
|
|
JSR generateApplePosition
|
|
|
|
RTS
|
|
|
|
|
|
loop:
|
|
; primary game loop
|
|
|
|
RTS
|
|
|
|
|
|
initSnake:
|
|
; initializes the snake
|
|
|
|
RTS
|
|
|
|
|
|
generateApplePosition:
|
|
; generates the position of the apple
|
|
|
|
RTS
|