-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate_process.asm
More file actions
45 lines (33 loc) · 1.04 KB
/
Copy pathtemplate_process.asm
File metadata and controls
45 lines (33 loc) · 1.04 KB
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
;
; ------------------------------------------------------------------------------
; A template to code your own special process effects
; ------------------------------------------------------------------------------
.relativeinclude on
.nds
.arm
.definelabel MaxSize, 0x810
; Uncomment the correct version
; For US
;.include "lib/stdlib_us.asm"
;.definelabel ProcStartAddress, 0x022E7248
;.definelabel ProcJumpAddress, 0x022E7AC0
; For EU
;.include "lib/stdlib_eu.asm"
;.definelabel ProcStartAddress, 0x022E7B88
;.definelabel ProcJumpAddress, 0x022E8400
; File creation
.create "./code_out.bin", ProcStartAddress ; Change to the actual offset as this directive doesn't accept labels
.org ProcStartAddress
.area MaxSize ; Define the size of the area
; Usable Variables:
; r7 = First Argument
; r6 = Second Argument
; Returns:
; r0 = User Defined Value
; Registers r4 to r11 and r13 must remain unchanged after the execution of that code
; Code here
; Always branch at the end
b ProcJumpAddress
.pool
.endarea
.close