Memory layout

| 0x23 | B | A | |——|—–|—–|

Arguments

Description

Stores the result of the last BATTLE to an address in memory. The resulting value can then be examined to see what the outcome of the battle was.

Results

Bit to AND Bit Result & Description
8 (0x1000) 1: The party escaped the battle.
0: The party did not escape.  
1 (0x1) 1: The party was defeated (correct battle mode must be set to avoid game over.
0: The party was not defeated.