-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstructs.asm
114 lines (104 loc) · 2.23 KB
/
structs.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;ROM structures
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
struct sprite $0000
.number: skip 2
.render_order: skip 2
.x_sub_position: skip 2
.x_position: skip 2
.y_sub_position: skip 2
.y_position: skip 2
.ground_y_position: skip 2
.ground_distance: skip 2
.interaction_type: skip 2
.oam_property: skip 2
.unknown_14: skip 2
.unknown_16: skip 2
.unknown_18: skip 2
.unknown_1A: skip 2
.unknown_1C: skip 2
.unknown_1E: skip 2
.x_speed: skip 2
.unknown_22: skip 2
.y_speed: skip 2
.max_x_speed: skip 2
.unknown_28: skip 2
.max_y_speed: skip 2
.x_force: skip 2
.action: skip 1 ;\ This is a pair in most cases, but a couple sprites use 2F alone
.unknown_2F: skip 1 ;/
.unknown_30: skip 2
.unknown_32: skip 2
.unknown_34: skip 2
.animation_id: skip 2
.animation_timer: skip 2
.animation_control: skip 2
.animation_address: skip 2
.unknown_3E: skip 2
.unknown_40: skip 2
.unknown_42: skip 2
.unknown_44: skip 2
.unknown_46: skip 2
.unknown_48: skip 2
.unknown_4A: skip 2
.unknown_4C: skip 2
.unknown_4E: skip 2
.parameter: skip 2
.unknown_52: skip 2
.unknown_54: skip 2
.unknown_56: skip 2
.unknown_58: skip 2
.unknown_5A: skip 2
.unknown_5C: skip 2
endstruct
struct oam oam_table
.position:
.x: skip 1
.y: skip 1
.display:
.tile: skip 1
.property: skip 1
endstruct
struct oam_attribute oam_attribute_table
.size skip 1
endstruct
struct write_byte $0000
.terminate:
.count: skip 1
.value: skip 1
endstruct
struct write_word $0000
.terminate:
.count: skip 1
.value: skip 2
endstruct
struct write_long $0000
.terminate:
.count: skip 1
.value: skip 4
endstruct
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;SRAM structures
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
struct subfile $0000
.data: skip $014E
endstruct
struct save_file $0000
.header:
.additive_checksum: skip 2
.xor_checksum: skip 2
.file_signature:
.active_player: skip 1
.file_type: skip 1
.contents:
.player_1: skip sizeof(subfile)
.player_2: skip sizeof(subfile)
.data: skip 6
endstruct
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;ROM structures
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
struct wram_clear_table $0000
.address: skip 2
.size: skip 2
endstruct