simple_beam.asm
Adex-8x_EoS-ASM-Effects/moves/gen5/simple_beam.asm
; ------------------------------------------------------------------------------
; Simple Beam
; Change the target's ability to Simple!
; ------------------------------------------------------------------------------

.relativeinclude on
.nds
.arm

.definelabel MaxSize, 0x2598

; Uncomment/comment the following labels depending on your version.

; For US
.include "lib/stdlib_us.asm"
.include "lib/dunlib_us.asm"
.definelabel MoveStartAddress, 0x02330134
.definelabel MoveJumpAddress, 0x023326CC

; For EU
;.include "lib/stdlib_eu.asm"
;.include "lib/dunlib_eu.asm"
;.definelabel MoveStartAddress, 0x02330B74
;.definelabel MoveJumpAddress, 0x0233310C

; File creation
.create "./code_out.bin", 0x02330134 ; For EU: 0x02330B74
	.org MoveStartAddress
	.area MaxSize

		ldr r0,[r4,#+0xb4]
		mov r1,#0x61
		strb r1,[r0,#+0x60]
		mov r1,#0x0
		strb r1,[r0,#+0x61]
		mov r0,#0
		mov r1,r4
		mov r2,#0
		bl ChangeString
		mov r0,r9
		mov r1,r4
		ldr r2,=type
		bl SendMessageWithStringCheckUTLog
		mov r10,#1
		b MoveJumpAddress
		.pool
	type:
		.asciiz "[string:0] acquired Simple!"
	.endarea
.close