-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzeropage.asm
54 lines (46 loc) · 1.24 KB
/
zeropage.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
*=2 "Zeropage" virtual
TEMPX: .word 0,0,0,0
TEMP1: .byte 0
TEMP2: .byte 0
temp: .byte 0
// collision
get_collision_temp: .word 0
get_collision_x: .byte 0, 0
get_collision_y: .byte 0
get_collision_result: .byte 0
get_collision_result_a: .byte 0
get_collision_result_x: .byte 0
get_collision_result_y: .byte 0
get_collision_char: .byte 0
// portals
find_portal_x: .byte 0
find_portal_y: .byte 0
find_portal_direction: .byte 0
find_portal_result: .byte 0
// player
player_anim: .byte $ff
player_anim_frame: .byte $00
player_anim_end: .byte $00
player_anim_delay: .byte $06
player_falling: .byte $00
player_x: .word $28
player_y: .byte $b5
fall_index: .byte $00
player_score: .word $0000
player_time: .byte $00
player_keys: .byte $00
frame_counter: .byte $00
// states
currentstate: .byte 0
// levels
current_level: .byte 0
map_data_ptr: .word 0
screen_data_ptr: .word 0
color_data_ptr: .word 0
map_bytes_remain: .word 0
charanim_speedcode_ptr: .byte 0
// print decimal
print_decimal_value: .word 0
print_decimal_target: .word 0
print_decimal_bcd: .byte 0, 0, 0
print_decimal_string: .byte 0, 0, 0, 0, 0, 0