Changes
Jump to navigation
Jump to search
Created page with "* Opcode: '''0x70''' * Short name: '''BATTLE''' * Long name: Start Battle ==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1"..."
* Long name: Start Battle
==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x70
! width="40" | ''B''
|}
==== Arguments ====
* '''const UByte''' ''B''<nowiki>: Bank (16-bit) to retrieve the address of the battle ID, or zero if it is given as a literal value.</nowiki>* '''const UWord''' ''N''<nowiki>: Battle ID, or address to find ID if </nowiki>''B'' is non-zero.
==== Description ====
This launches the battle module with whatever battle number is used in the argument, or the value retrieved from memory location ''N'' if ''B'' is non-zero. Battle 1, 2, and 999 (0x03E7) are debug battles.