get_current_party_size.asm
Adex-8x_EoS-ASM-Effects/special_processes/party/get_current_party_size.asm
; ------------------------------------------------------------------------------
; Get Current Party Size
; Checks how many members are in the current party!
; No Params
; Returns: The size of the party!
; ------------------------------------------------------------------------------

.relativeinclude on
.nds
.arm

.definelabel MaxSize, 0x810

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

; For US
.include "lib/stdlib_us.asm"
.definelabel ProcStartAddress, 0x022E7248
.definelabel ProcJumpAddress, 0x022E7AC0
.definelabel GetPartyMembers, 0x2056C20

; For EU
;.include "lib/stdlib_eu.asm"
;.definelabel ProcStartAddress, 0x022E7B88
;.definelabel ProcJumpAddress, 0x022E8400
;.definelabel GetPartyMembers, 0x2056F9C

; File creation
.create "./code_out.bin", 0x022E7248 ; For EU: 0x022E7B88
	.org ProcStartAddress
	.area MaxSize
		
		mov r0,#0
		bl GetPartyMembers
		b ProcJumpAddress
		.pool
	.endarea
.close
