data/claims/ogre-battle-snes.yamlOgre Battle (SNES) mechanics, read from the ROM (no disassembly)
A level-up raises the level by 1 and puts experience back to 0. Each stat grows by its class's growth plus a random 0, 1 or 2, drawn separately for each: maximum hit points (to at most 999), and Strength, Agility and Intelligence (to at most 255). Current hit points don't rise. The character's cost rises by its class's cost per level. At level 99 a level-up only puts experience back to 0. A Werewolf or Tigerman in its Beastman form grows as a Werewolf when its werewolf flag is set and as a Tigerman when it isn't, and a Vampyre in its second form grows as a Vampyre. ogre-battle-snes/level-up
Value: cap 99 · bonus 0, 2 · hp cap 999 · stat cap 255
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x23A82-0x23B53 — $04:BA82-$04:BB53, the level-up routine with its two helpers (the 255 cap and the 0-2 draw); it reads the growth columns of ogre-battle-snes-tables/classes (hpPerLevel, strPerLevel, agiPerLevel, intPerLevel, costPerLevel)Checked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/level-up.mjs in MesenCE: after 600 frames from power-on it calls the routine 15 times for one character slot, from levels 5, 40, 98 and 99, at a maximum of 0, at the hit point, stat and cost caps, for the Fighter, Knight, Paladin, Wild Man, both Beastmen (13 and 31, with and without the flag), class 33, the Wise Man, the Lord and the Dragoon, with random draws chosen so that each bonus of 0, 1 and 2 comes up; all 15 match, and the current hit points stay as written in eachRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/level-up.mjsThe routine adds to the maximum at $0ADA and leaves the current hit points at $099A, which the battle's damage routine ($03:C265) lowers. A character whose maximum is 0 gains none and makes no draw for it; when a maximum is 0 isn't read. The 0-2 draw is the game's random number times 3, over 256: the routine asks the shared generator ($00:8510) for a number below 3, once for hit points, then for Strength, Agility and Intelligence in that order. Only the cost per level's low byte is added, and no class's is above 255. The Beastman form is class 31 (a second Beastman row) and the werewolf flag is bit $10 of the slot's status byte ($08FA); the Vampyre's second form is class 33. Both cost 0 and have growth rows of their own, which the routine doesn't use. A routine at $04:BBC0 swaps Werewolves, Tigermen and Vampyres into and out of those classes; when it runs isn't read here.
A character levels up when its experience has reached 100. The routine that levels characters up checks each living member of the player's side in the battle's list, then the Lord, wherever the Lord is, and raises each by one level at most. ogre-battle-snes/level-up-check
0x239FD-0x23A81 — $04:B9FD-$04:BA81: a loop over the battle's combatants that skips the dead and the computer's side (status bits $80 and $01) and calls the level-up routine for each whose experience is 100 or more, then the same test and call for character 0, the LordOgre Battle - The March of the Black Queen (USA) · 0x1DE4F-0x1DE5B — $03:DE4F-$03:DE5B: the step after a battle that calls $03:DE61 and $03:DE8F, then the check at $04:B9E6 through the $1199 long callOgre Battle - The March of the Black Queen (USA) · 0x1DB53-0x1DB55 — $03:DB53: JSR $DE4F, a call of the stepOgre Battle - The March of the Black Queen (USA) · 0x1DDFF-0x1DE01 — $03:DDFF: JSR $DE4F, the step's other callRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Experience can't pass 100 in the first place: the routine that adds it stops it there (ogre-battle-snes/experience). The check is entered from $03:DE55, in the step at $03:DE4F that the battle's end runs (from $03:DB53 or $03:DDFF).
A death in a battle, on either side, sets off the changes to experience (experience), charisma (charisma-after-kill) and alignment (alignment-after-kill), unless a battle flag is set, and only when the attack on record came from one of the player's units (experience). The flag covers the deaths of one check and is cleared after it. The battle's list marks the members of the computer's units as the computer's side. ogre-battle-snes/death-handler
0x1C648-0x1C6E9 — $03:C648-$03:C6E9: for each combatant newly marked dead (status bits $C0 equal to $80), the battle code calls $04:D61B with its unit slot, unless bit 0 of $7E:F931 is setOgre Battle - The March of the Black Queen (USA) · 0x182B5-0x182FD — $03:82B5-$03:82FD: building the battle's list from a unit's five slots, it sets status bit $01 on each member when the unit's first slot is $7D or higher, unit 25 and upOgre Battle - The March of the Black Queen (USA) · 0x2561B-0x2563A — $04:D61B-$04:D63A: when the attacker's unit slot ($7E:F936) is $7D or more, restore and returnOgre Battle - The March of the Black Queen (USA) · 0x1C6FE-0x1C70B — $03:C6FE-$03:C70B: after the check, bit 0 of $7E:F931 is clearedOgre Battle - The March of the Black Queen (USA) · 0x1D5B7-0x1D5C0 — $03:D5B7-$03:D5C0: an ORA #$01 into $7E:F931, in FOOL's kill (tarot-battle)Ogre Battle - The March of the Black Queen (USA) · 0x1819F-0x181A3 — $03:819F-$03:81A3: the battle's setup stores 0 in $7E:F931, entered from $04:8588 through the $1199 long callOgre Battle - The March of the Black Queen (USA) · 0x20588-0x2058D — $04:8588-$04:858D: JSR $1199 with the inline target $03:819F, the long call into the battle's setupRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.The flag is bit 0 of $7E:F931; the tarot card FOOL sets it as it kills (tarot-battle), so its kills change nothing. The attack on record is the attacker's unit slot at $7E:F936; $04:D61B returns at once from $7D, the computer's units' slots, so a kill by the computer changes nothing either, as the kill probe measures (experience). The computer's units are those numbered 25 and up; the player's are 0-24, and the side mark is status bit $01. The battle's setup clears the byte ($03:81A0), the check clears bit 0 after use ($03:C708), and FOOL's step sets it ($03:D5BD).
When a combatant dies, each living member of the player's side gains experience by the dead combatant's level minus its own. A victim at the same level gives 14. One that is 1 to 5 levels higher gives 19, 24, 33, 49 or 66, and 6 or more levels higher, 99. One that is 1 level lower gives 11, 2 lower 9, and 3 or more lower 1. Experience stops at 100. Only kills by the player's side count: nothing is given when the attacker on record for the death is in one of the computer's units, or there is none. It doesn't matter whose side the victim was on: a player's character killed by the player's own side gives the rest the same experience. ogre-battle-snes/experience
Value: above 14, 19, 24, 33, 49, 66, 99 · below 11, 9, 1, 1, 1, 1 · cap 100 · killer below 125
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2561B-0x2563A — $04:D61B-$04:D63A, the routine's entry and exit: it returns at once when the attacker's unit slot ($7E:F936) is $7D or higher, no attackerOgre Battle - The March of the Black Queen (USA) · 0x2568E-0x256D5 — $04:D68E-$04:D6D5: in mode 4, for each combatant in the battle's list without status bits $81, the victim's level minus its own, made 0 to 6 when the victim's is higher or equal and 8 to 13 when it's lower, picks a byte of the table below to addOgre Battle - The March of the Black Queen (USA) · 0x25754-0x25761 — $04:D754, the 14 bytes: 14, 19, 24, 33, 49, 66, 99, then 14 (unused here), 11, 9, 1, 1, 1, 1Ogre Battle - The March of the Black Queen (USA) · 0x25B0B-0x25B1B — $04:DB0B-$04:DB1B, which adds to a character's experience and stops it at 100Checked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/kill.mjs in MesenCE: after 600 frames from power-on it calls $04:D61B with a battle list it writes, in mode 4, for victims from 7 levels below to 8 above the members (every entry of the table), with one member dead and one marked as the computer's, a member at 95 experience, no attacker recorded, and a player's character as the victim; then 16 calls with the killer in unit slots 110, 124 ($7C, the player's last), 125 ($7D, the computer's first) and 200, on an enemy and on a player's character, in both modes, where the kills from 125 and 200 change nothing; all matchChecked by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/kill.mjsThe routine runs in mode 4, when the game state byte at $CB is 4 (lord-experience covers the other values). "The player's side" is the list members without status bit $01, which ogre-battle-snes/death-handler reads the battle code setting on the computer's units; the probe writes the list and status bytes itself. Whether a battle on the map runs in mode 4 isn't measured: on the stage map $CB is 1.
The combatant credited with a kill, when it is in one of the player's units (experience), gains or loses alignment. Killing a victim whose alignment is much higher costs up to 3 points, and killing one whose alignment is much lower earns up to 3. The victim's level minus the killer's is then added as well, so a stronger victim raises alignment and a weaker one lowers it. In full: the killer's alignment minus the victim's, below -20, gives -3; -20 to -11, -2; -10 to -1, -1; 0 to 9, 0; 10 to 19, +1; 20 to 29, +2; 30 or more, +3. The result stays between 0 and 100, except that a sum of 128 or more comes out as 0. ogre-battle-snes/alignment-after-kill
Value: delta -3, -2, -1, 0, 1, 2, 3 · bounds -20, -10, 0, 10, 20, 30 · cap 100
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x256D6-0x25716 — $04:D6D6-$04:D716: the killer's level and alignment ($0C1A) against the victim's level and its class's base alignment (ogre-battle-snes-tables/classes, ali), the step table, and the clamp: a result with bit 7 set becomes 0, and one over 100 becomes 100Ogre Battle - The March of the Black Queen (USA) · 0x25745-0x25752 — $04:D745, the six steps 0, 10, 20, 30, 40, 50 (and 127) on the difference plus 20, then the changes -3 to +3Checked by claude, 2026-11-16 — the probe of the experience claim also reads the killer's alignment in 51 calls: killers at alignments from 0 to 100 against a Lich (base alignment 9), a Monk (87) and a Fighter (50), at level differences from -10 to +30; against the Fighter at an equal level, alignment differences of -21, -20, -15, -11, -10, -1, 0, 9, 10, 19, 20, 29 and 30, both sides of each step; both clamps and the wrap to 0; all matchRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/kill.mjsThe victim's alignment is its class's base value, not the character's own. The sum is 8-bit: a killer at 100 alignment who kills a victim 30 levels higher with an alignment 30 or more below reaches 133 and ends at 0, where 93 alignment in the same fight ends at 100. Only mode 4 changes alignment (lord-experience).
The combatant credited with a kill, when it is in one of the player's units (experience), gains charisma for a strong victim and loses it for a weak one: +8 for a victim 2 or more levels higher, +6 for 1 higher, +4 at the same level, +2 for 1 lower, nothing for 2 lower, then -2, -4, -6, and -8 for a victim 6 or more levels lower. Charisma stays between 0 and 100. ogre-battle-snes/charisma-after-kill
Value: per step 2 · offset 2 · clamp -4, 4 · cap 100
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x25717-0x25744 — $04:D717-$04:D744: the victim's level minus the killer's, plus 2, held between -4 and 4, doubled, added to the killer's charisma ($7E:F42C), held between 0 and 100Checked by claude, 2026-11-16 — the probe of the experience claim reads the killer's charisma in the same 51 calls, at every level difference from -10 to +3 and others up to +30, and charisma from 2 to 99; all matchRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/kill.mjsOnly mode 4 changes charisma (lord-experience).
Outside the usual battle mode, a death gives experience to the Lord alone, and only when the victim is an enemy and the killer is the player's (experience). Which battles run that way isn't known. An enemy 0 to 4 or more levels higher gives 14, 19, 24, 33 or 49. One 1 level lower gives 99, then 14, 11 and 9 for 2 to 4 levels lower, and 1 for 5 or more. Experience stops at 100, and alignment and charisma don't change. ogre-battle-snes/lord-experience
Value: above 14, 19, 24, 33, 49 · below 99, 14, 11, 9, 1 · cap 100
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x25651-0x2568D — $04:D651-$04:D68D: when $CB isn't 4, an enemy victim (character 100 and up) gives the Lord (character 0) a byte of the same table at $04:D754, the level difference made 0 to 4 when the enemy's level is higher or equal and 6 to 10 when it's lower; the add stops at 100 ($04:DB0B)Checked by claude, 2026-11-16 — the probe of the experience claim calls the routine 28 times outside mode 4: with $CB = 3 for an enemy from 7 levels below to 6 above a level-30 Lord, a Lord at 95 experience, and a player's character as the victim; with $CB = 0, 1, 5 and 255 for enemies 1 below, level with and 2 above a Lord at 20 experience; all matchRevised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/kill.mjs"The usual battle mode" is the game state byte at $CB equal to 4 (ogre-battle-snes/experience); this branch runs for any other value. The mode 4 branch indexes the lower side from 8 (11, 9, 1 ...); this one indexes it from 6, so an enemy 1 level below the Lord reads the table's last higher-level entry, 99. That looks like an off-by-two, but whether a player can meet it isn't known. The one battle played, a forced neutral encounter, ran in mode 4: every attack and the death in the battle the battle probe plays (attacks) had $CB = 4.
Each battle takes a reference value from 0 to 100, in steps of 25, that follows the game's clock: 100 around midday and 0 around midnight. Each stage has an hour shift (ogre-battle-snes-tables/stages, hourShift), added to the hour while the value climbs and subtracted once it falls, so a positive shift starts the climb earlier and the fall later, lengthening the stretch at 100, and a negative one shortens it. While the hour plus the shift is below 10, that sum decides: below 3 gives 0, 3 to 5 25, 6 50 and 7 to 9 75. From 10, the hour minus the shift decides: below 15 gives 100, 15 to 17 75, 18 50, 19 to 21 25, and 22 and up 0. While a flag the stage's setup sets on one stage is on, the value is 0. Damage scores lose a fifth of each side's alignment's distance from it (damage, lord-attack). ogre-battle-snes/hour-alignment
Value: by counter 0, 0, 0, 25, 25, 25, 50, 75, 75, 75, 100, 100, 100, 100, 100, 75, 75, 75, 50, 25, 25, 25, 0, 0
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x29261-0x292B3 — $05:9261-$05:92B3: 0 while a flag at $1667 is set; else, with the counters at $1571 and $15FD, their sum below 3 gives 0, 3 to 5 25, 6 50, 7 to 9 75; from 10 their difference decides: below 15 100, 15 to 17 75, 18 50, 19 to 21 25, 22 and up 0Ogre Battle - The March of the Black Queen (USA) · 0x292EA-0x292F0 — $05:92EA-$05:92F0, in the battle start ($05:92B4): call $05:9261 and store the result at $7E:F926Ogre Battle - The March of the Black Queen (USA) · 0x1DCB2-0x1DCD7 — $03:DCB2-$03:DCD7, one use: the combatant's alignment minus $7E:F926, made positive, divided by 5, taken off its value in lord-attackOgre Battle - The March of the Black Queen (USA) · 0x28000-0x28010 — $05:8000-$05:8010, as a stage is set up: $15FD from the byte at $05:D1AF + the stage number ($15FC)Ogre Battle - The March of the Black Queen (USA) · 0x28164-0x28175 — $05:8164-$05:8175, in the same setup: $1667 cleared, then set to 1 for stage $18 while $7E:8EA8 is not 0Checked by claude, 2026-11-16 — ran probes/ogre-battle/day-night.mjs in MesenCE: 240 entries of the battle start at $05:92EA, run to the store at $7E:F926, for every hour 0 to 23 at the shifts the stages table holds (-3, -2, 0, 2 and 3), with the flag at $1667 clear and set; all match. The stage setup's flag and the caller weren't probedRevised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/day-night.mjsThe hour is the counter at $1571, the shift the byte at $15FD and the flag the byte at $1667. The value is listed by the hour with the shift at 0; day-night.mjs runs the other shifts. Other scores use other shares of the distance: status-hit takes all of it and healing a quarter. $1571 reads as the game's hour: in a run on the first stage in MesenCE it rose by 1 at a time and went from 23 to 0, and the battle probe (battle.mjs) sees it step 12, 13, 14 on the map and the battle at 14 take 100, so 10 to 14 o'clock give 100 and 22 to 2 give 0. The second counter, $15FD, stayed 0 in both runs (Castle of Warren's shift is 0); the stages' shifts run from −3 to 3. Measured: a stage with shift 2 gives 100 from 8 to 16 o'clock and 25 at 22, and one with shift −3 never reaches 100. The flag at $1667 was clear in the battle probe's battle (the value was 100); the stage setup sets it on stage $18, Temple Shalina in the stages table, while $7E:8EA8 isn't 0, so there every battle's value is 0.
The tarot cards that do damage (tarot-battle) set the Lord against each target. Each side scores half its Strength, or half its Intelligence for a magic attack; minus a fifth of its alignment's distance from the battle's reference value (hour-alignment); plus twice a terrain coefficient for its class on the battlefield; plus a random 1 to 8. The Lord's score then gains a quarter of itself, rounded down, once for each target fewer than 5 in the card's target list. The target's score also gains 2, is held to 255 (a score below 0 counts as 255), and is scaled by its resistance to the attack's element, out of 100. The Lord's score minus the target's, at least 1, comes off the target's hit points; TOWER gets no quarters and takes half as much again. ogre-battle-snes/lord-attack
Value: full list 5 · growth 4 · target extra 3
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1DC8D-0x1DD59 — $03:DC8D-$03:DD59, the target's score: Strength ($7E:F879, its working value) or Intelligence ($7E:F8A1) by bit $20 of the attack byte, halved, plus 1; minus |alignment − $7E:F926| / 5; plus 2 × the terrain coefficient for its class and 1 (an add with the carry set); plus a random 0-7 and 1 (again with the carry set); held to 255; times a resistance byte over 100, the character's own six for the player's characters and the class table's for enemies, by the element at $7E:F93BOgre Battle - The March of the Black Queen (USA) · 0x1DD5A-0x1DDE0 — $03:DD5A-$03:DDE0, the Lord's score: Strength ($7EF24C) or Intelligence ($7EF38C) of character 0, without an item bonus, halved with no 1 added; the alignment term with $0C1A; 2 × the terrain coefficient with the carry clear, looked up by the byte at $07BA rather than the class; a random 0-7 plus 1; then the score over 4, added 5 − $17 timesOgre Battle - The March of the Black Queen (USA) · 0x1BCD9-0x1BD12 — $03:BCD9-$03:BD12, the terrain coefficient: a 4-bit value from the 10-byte row of the table at 0x1F8FF (the wiki's "Damage Coefficient by Terrain") picked by the class's battle-terrain type (ogre-battle-snes-tables/classes, battleTerrain), at the battlefield's terrain ($7E:F925) halved, the high nibble for an odd terrainOgre Battle - The March of the Black Queen (USA) · 0x1D21F-0x1D24F — $03:D21F-$03:D24F: the Lord's score minus the target's, 1 if not above 0, into $04, then $03:C265Ogre Battle - The March of the Black Queen (USA) · 0x1D485-0x1D4B9 — $03:D485-$03:D4B9, one such attack: element 4, the same difference plus half of itself, then $03:D245Ogre Battle - The March of the Black Queen (USA) · 0x1C265-0x1C2AB — $03:C265-$03:C2AB: the amount at $04 taken off the target's current hit points ($099A), held at 0, where the combatant is marked deadChecked by claude, 2026-11-16 — the tarot probe (tarot-battle) runs each damage card on one, two and five enemies of five classes and on three player's characters at resistances 70, 130 and 0, at terrains 0, 3, 9, 12 and 17 (both half-bytes of the coefficients) and reference values 50, 75 and 100, with each draw's ends on both sides, a target at Strength and Intelligence 600, a target whose score falls below 0, a Lord at 10 for damage held at 1, and TOWER on four kinds of target; all matchRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/tarot.mjsThe cards enter by $03:D21F (MAGICIAN, CHARIOT, HERMIT, JUSTICE, DEVIL, JUDGEMENT) and $03:D485 (TOWER), which set the element at $7E:F93B and the attack byte at $7E:F93A before scoring; code $A3's handler shares $03:D485's entry. The target's 2 extra are an add with the carry set after the terrain term and the 1 after halving; the Lord's routine adds with the carry clear and has no 1 after halving. The Lord is character 0: its Strength and Intelligence are read at $7E:F24C and $7E:F38C, its alignment at $0C1A and its coefficient by its number at $07BA; that these are those stats is the reading. The target's come from its working values at $7E:F879 and $7E:F8A1, which the probe writes directly; whether those include an item's bonus, and the Lord's don't, isn't quoted here. The count of targets includes those that then miss (the undead), and the cards whose flag byte lacks bit $08 (TOWER) leave it at 5. The quarter is taken once, from the score before any is added, and added that many times.
Every tarot card but FORTUNE acts on each of its targets in turn. MAGICIAN, CHARIOT, HERMIT, JUSTICE, DEVIL and JUDGEMENT do damage worked out from the Lord's score against the target's (lord-attack): fire, physical, lightning, cold, black and white damage, scored by the Lord's Intelligence for MAGICIAN, JUSTICE and JUDGEMENT and its Strength for the rest. All but JUDGEMENT miss an undead target. TOWER does physical damage the same way, and half as much again; it misses undead targets and flyers that aren't stunned or petrified. SUN does (100 − the target's alignment)² / 50 − 20, or 1 when that is below 0, plus a random 0 to 7, so at alignment 68 it can do none. DEATH does 999 damage to a target at half its maximum hit points or below. PRIESTESS heals 50 hit points and EMPRESS 999, up to the maximum. FOOL kills a target outright without touching its hit points, and sets the flag that keeps the deaths checked next from changing experience, alignment and charisma (death-handler). HIEROPHANT stuns as STUN does (status-effects). LOVERS charms with a chance of (steps + 3) in 10, the steps counted as for STUN (status-hit), from the Lord's score (half its luck plus its Intelligence, minus its alignment's distance from the battle's reference value) less the target's. HIEROPHANT, LOVERS, DEATH, SUN and FOOL miss characters numbered 82 and up. EMPEROR gives a target one more attack; TEMPERANCE ends charm, stun and petrification and gives back the attacks and Agility the last two took; STAR adds 50 to a target's Agility; MOON moves a target's place number 5 along, from the first five to the last five and back. STRENGTH, HANGED MAN and WORLD set battle flags: the player's characters take less damage and the enemies more (damage-flags), and the computer's magic misses the player's side (hit-chance, status-hit-other). ogre-battle-snes/tarot-battle
Value
{
"damage": {
"MAGICIAN": [
"fire",
"int"
],
"CHARIOT": [
"physical",
"str"
],
"HERMIT": [
"lightning",
"str"
],
"JUSTICE": [
"cold",
"int"
],
"DEVIL": [
"black",
"str"
],
"JUDGEMENT": [
"white",
"int"
]
},
"heal": {
"PRIESTESS": 50,
"EMPRESS": 999
},
"kill": 999,
"flags": {
"STRENGTH": 64,
"HANGED MAN": 32,
"WORLD": 16
},
"foolFlag": 1,
"spared": [
"HIEROPHANT",
"LOVERS",
"DEATH",
"SUN",
"FOOL"
],
"sparedFrom": 82,
"sun": {
"from": 100,
"divisor": 50,
"minus": 20
},
"loversAdd": 2,
"star": 50,
"moonShift": 5
}0x1CFBF-0x1D029 — $03:CFBF-$03:D029, the card step after its targets are chosen: with the card's flag $08 it counts the target list into $17; for each target, with flag $02 a target numbered $52 (82) or more misses, with flag $04 every target misses while $7E:F93E is $19, else the card's routine (pointers at $03:D1EC, by the card at $7E:F937) runs; a miss sets bit $80 of the target's list entryOgre Battle - The March of the Black Queen (USA) · 0x1CF8D-0x1CFA2 — $03:CF8D-$03:CFA2: the 22 cards' flag bytes, MAGICIAN first; bit 0 aims at the enemy's side, $80 at bothOgre Battle - The March of the Black Queen (USA) · 0x1D218-0x1D36E — $03:D218-$03:D36E: MAGICIAN (code $63, element 0) into $03:D21F; PRIESTESS and EMPRESS 50 and 999 through $03:C265, which heals when the attack's flag $10 is set; EMPEROR clears status bit $40, adds 1 to the attacks left ($7E:F996) and to the battle's ($7E:F941) unless status $B0; HIEROPHANT code $B2, sets status $10, takes the attacks off the battle's count unless already stunned or petrified, zeroes working Agility; LOVERS code $B3, the Lord's score from $7E:F490, $7E:F38C and $0C1A against $03:BC65's, the steps at $03:B97E, rand(10) at most steps + 2 sets status $08Ogre Battle - The March of the Black Queen (USA) · 0x1D36F-0x1D5CE — $03:D36F-$03:D5CE: CHARIOT, HERMIT, JUSTICE, DEVIL and JUDGEMENT set elements 4, 2, 1, 3, 5 and codes $50, $48, $67, $4C, $20 and enter $03:D21F; STRENGTH, HANGED MAN and WORLD set bits $40, $20 and $10 of $7E:F931; FORTUNE sets bit $08 and leaves the step; DEATH 999 when current hit points ≤ maximum / 2; TEMPERANCE clears status $38, and for $30 restores the attacks and Agility from $7E:F88D; TOWER misses undead (bit $20 of $08FA) and classes $3E-$4D not stunned or petrified, else $03:D485; STAR adds 50 to $7E:F8C9 (0 past $7FFF); MOON maps the place ($7E:F9AA) through the table at $03:D529; SUN (100 − alignment)² / 50 − 20, below 0 1, plus rand(8), into $03:D245; FOOL misses bit $80 of $08FA and numbers from $52, else sets status $80 and bit 0 of $7E:F931Ogre Battle - The March of the Black Queen (USA) · 0x1D61F-0x1D639 — $03:D61F-$03:D639: unless the element is 5 (white), a target whose character has bit $20 of $08FA missesChecked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/tarot.mjs in MesenCE: after 600 frames from power-on it reads the 22 flag bytes, then enters the card step at $03:CFBF 84 times with the card's own flag byte and runs it to $03:D02A: each damage card on one, two and five enemies, three player's characters with their own resistances, an undead target, a strong target and a kill; TOWER on flyers each side of the range, stunned, petrified and undead; SUN at five alignments and both draws' ends, and at alignments 68 and 69; DEATH at and over half; FOOL, HIEROPHANT and SUN on numbers 81, 82 and 101; the flag cards with other flags set; EMPEROR, TEMPERANCE and STAR on each status that matters; LOVERS at each step's edges with the draw on both sides of the chance; MOON at all ten places; all 1,346 checks matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/tarot.mjsThe card names are ogre-battle-snes-tables/tarot-cards'; the flags table says which side a card aims at. MAGICIAN, CHARIOT, HERMIT, JUSTICE, DEVIL, JUDGEMENT, TOWER, FORTUNE, HANGED MAN, HIEROPHANT, LOVERS, DEATH, MOON and FOOL aim at the enemy's side, the others at the player's, and SUN at the enemy's and then the player's (the second pass without the miss from 82): read, not measured, since the probe enters after the targets are chosen. FORTUNE isn't measured: it sets bit $08 of $7E:F931, calls the routines at $03:A6CA and $03:A671, and leaves the card step, perhaps ending the battle; its flag $04 makes it miss everyone while $7E:F93E is $19, a value not identified. The number 82 is the Wise Man's (ogre-battle-snes-tables/classes); the named characters from 102 count too. FOOL also misses a character with bit $80 of its byte at $08FA, whose meaning isn't read. EMPEROR adds to the battle's count of attacks only for a target not dead, stunned or petrified, and clears the fourth status mark ($40, turn-order). MOON's place numbers are those of $7E:F9AA; that 0-4 and 5-9 are the two rows is a guess, and it also rewrites the unit's formation byte at $0DCD, not measured. STAR's sum past 32767 gives 0. SUN doesn't miss the undead. The card step records unit slot 0 as the attacker ($03:CFAB), so a card's kill counts as the player's (experience). FOOL's flag is cleared at $03:C708, after the death check that follows. DEATH and the damage cards kill through the same routine as attacks, so a player's character they kill loses its experience (death-experience). A card's damage ignores Kiss, the tactics and the damage flags.
An attack does the attacker's score minus the target's, and at least 1. The attacker scores half its Strength, or half its Intelligence for a magic attack; plus twice its class's terrain coefficient for the battlefield (ogre-battle-snes-tables/terrain-coefficients); minus a fifth of its alignment's distance from the battle's reference value (hour-alignment); plus a random 1 to 8; plus 8 if it has been kissed. Its unit's tactic takes 4 off for STRONG and adds 4 for WEAK. The target scores half the same stat, twice its own terrain coefficient, minus a fifth of its own alignment's distance (and 1 more when that term is larger than the score so far), plus a random 3 to 10, plus 8 if kissed. That score is held to 255, and a score still below 0 after the random part also counts as 255. It is then scaled by the target's resistance to the attack's element, out of 100, so a higher resistance means less damage. The target's unit's tactic adds 4 to it for STRONG and takes 4 off for WEAK. Each target of an attack is scored apart. Some attack codes and two battle flags change the result (skill-damage, damage-flags). ogre-battle-snes/damage
Value: tactic 0, -4, 0, 4 · guard 0, 4, 0, -4 · roll 1, 8 · guard roll 3, 10 · kiss 8 · align step 5 · terrain 2 · cap 255 · min 1 · elements fire, cold, lightning, black, physical, white
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1BD19-0x1BD75 — $03:BD19-$03:BD75, the battle's attack step: for an attack code with its top three bits clear, or below $A0, it points $0D at the Strength array ($7E:F879), or at Intelligence ($7E:F8A1) when bit $20 is set, and calls $03:BFBA; codes $AB and up take Strength and a variant number, the code minus $AA (skill-damage)Ogre Battle - The March of the Black Queen (USA) · 0x1C1D5-0x1C264 — $03:C1D5-$03:C264, the attacker's score: the word table at $03:C25D by the tactic byte ($7E:F92E: 0, -4, 0, +4), the stat halved, 2 × the terrain coefficient for its class ($7E:F938), |alignment ($7E:F8B5) − $7E:F926| / 5 taken off, a random 0-7 plus 1, and 8 more when the attacker's status has bit $04Ogre Battle - The March of the Black Queen (USA) · 0x1BFBA-0x1C193 — $03:BFBA-$03:C193, the routine: after the attacker's score and its variant, for each target in the list at $7E:F9C8, 8 for status bit $04, the stat halved, 2 × the terrain coefficient, the alignment term (one more off when it borrows), a random 0-7 plus 3; 255 when the high byte isn't 0; times the resistance byte by element ($7E:F93B) over 100, the target's class's for an enemy and the character's own for a player's character; the two flag branches; the word table at $03:C1A2 by the target's unit's tactic ($7E:F901: 0, +4, 0, -4); the difference, 1 if not above 0; then $03:C265 takes it off the hit pointsOgre Battle - The March of the Black Queen (USA) · 0x1C1A2-0x1C1A9 — $03:C1A2, the target's tactic table: 0, 4, 0, -4 as wordsOgre Battle - The March of the Black Queen (USA) · 0x18FF8-0x1901D — $03:8FF8, the resistance pointers by element: for enemies the class columns at $03:F705, F76A, F7CF, F834, F6A0 and F899 (fire, cold, lightning, black, physical, white: 0x1F706 on, the classes table's resistances), then, 13 words on, the characters' arrays at $7E:F685, F6E9, F74D, F7B1, F621 and F815Ogre Battle - The March of the Black Queen (USA) · 0x1BCD9-0x1BD18 — $03:BCD9-$03:BD18, the terrain coefficient: the class's battle-terrain byte ($01:E194 + class, 0x0E195 on) times 10 picks a row of the table at 0x1F8FF, the battlefield's terrain ($7E:F925) halved picks the byte, and an odd terrain takes the high four bitsOgre Battle - The March of the Black Queen (USA) · 0x188EE-0x1893B — $03:88EE-$03:893B, each attacker's turn: the side its targets are on ($7E:F934), its class ($7E:F938), and its own unit's tactic, the byte at $7E:F901 for the player's unit or the enemy's, into $7E:F92EOgre Battle - The March of the Black Queen (USA) · 0x18E1C-0x18E6F — $03:8E1C-$03:8E6F: the target choice for tactics 1 and 3 keeps the target with the most current hit points under tactic 1 and the fewest otherwise, which makes 1 STRONG and 3 WEAK; the menu's words are stored BEST, STRONG, LEADER, WEAK (0x25C32-0x25C51)Ogre Battle - The March of the Black Queen (USA) · 0x1BD76-0x1BD8B — $03:BD76, the handlers for codes $A0-$AA: $A1, the Faerie's and Pixie's KISS (ogre-battle-snes-tables/classes, backAttackCode), goes to $03:BE1A, which sets status bit $04 on each targetChecked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/damage.mjs in MesenCE: after 600 frames from power-on it calls $03:BFBA 74 times from written states: every random draw on both sides, Strength from 20 to 600, six class and terrain pairs (water, plains, forest, sky, town), alignments against reference values 0, 25, 50, 75 and 100, a target score below 0 and one at exactly 0, two whose alignment term is 1 and 2 more than the rest (the extra 1 shows), the 255 cap, damage held at 1, each tactic on each side, Kiss on each side, each element, magic, enemies hitting a player's character at resistances 50, 80, 100 and 130, enemy magic of each of the five other elements on a player's character with a different resistance written for each, both battle flags, two targets, and the codes skill-damage covers; all matchRevised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/damage.mjsIn a neutral-encounter battle the battle probe plays (battle.mjs), the attack codes $10, $20 and $6C all went through $03:BD19 and $03:BFBA. The resistance scales the target's score, not the damage: a resistance of 50 halves the target's score. The element ($7E:F93B) is set before this routine, numbered 0-5 for fire, cold, lightning, black, physical and white; attack-element gives where it comes from. A score below 0 comes from a target whose alignment term outweighs the rest (low Strength, alignment far from the reference value): the 16-bit sum's high byte is then $FF, which the routine treats as over 255. The tactics are the unit's battle orders, 0 BEST, 1 STRONG, 2 LEADER, 3 WEAK; BEST and LEADER change nothing here. Damage over the target's hit points takes them to 0 ($03:C265). Kissed is bit $04 of the combatant's battle status byte ($7E:F982); KISS is the one code read that sets it.
Two battle flags change the target's score after resistance: one raises the player's characters' score by 30% when they are the targets, and the other lowers the enemies' score by 30% when they are. The tarot cards STRENGTH and HANGED MAN set them (tarot-battle). ogre-battle-snes/damage-flags
Value: percent 30
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1C0F7-0x1C13A — $03:C0F7-$03:C13A: with bit $40 of $7E:F931 and targets on the player's side ($7E:F934 = 0), the score plus score × 30 / 100 (999 if the sum went negative); with bit $20 and targets on the enemy's side, the score minus score × 30 / 100 (1 if it went negative)Ogre Battle - The March of the Black Queen (USA) · 0x1C1AA-0x1C1D4 — $03:C1AA-$03:C1D4: the score times 30 ($00:8607), over 100Checked by claude, 2026-11-16 — the damage probe's cases with flags: an enemy hits a player's character at resistance 100 and 80 with bit $40, at 100 with bit $20 (no change); the player hits an enemy with bit $20, $40 (no change) and both; all matchChecked by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/damage.mjsThe flags are bits $40 and $20 of $7E:F931, whose bit 0 also stops the experience changes (death-handler); the probe sets each bit on each side and both together. STRENGTH sets bit $40 and HANGED MAN bit $20 (tarot-battle); $03:819F zeroes all of $7E:F931, but what runs it isn't read.
Some attack codes change the result. Vampyre's SLEEPING always does 0. Code $A3, which no class lists, is scored by Strength and does 1.5 times the damage. Codes $AB to $B0 are scored by Strength too: $AB doubles the attacker's score; BLADE (the General's) and codes $AF and $B0 add 30% of its low 8 bits; LIFESUCK adds nothing; and IAINUKI (the Samurai's, the Lord's and others') adds half of the score's low 8 bits to those 8 bits alone, so a low byte of 171 or more wraps around (198 becomes 41) and the part from 256 up is kept. ogre-battle-snes/skill-damage
Value: zero 19 · times 15 163 · doubled 171 · plus 30 172, 175, 176 · plus half 173 · percent 30
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1BFC6-0x1C015 — $03:BFC6-$03:C015: by the variant (code − $AA), a jump to doubling the 16-bit score ($AB), to adding (low byte × 30) / 100 ($AC, $AF, $B0), to adding the low byte halved with an 8-bit add stored in the low byte ($AD), or past ($AE)Ogre Battle - The March of the Black Queen (USA) · 0x1C16D-0x1C188 — $03:C16D-$03:C188: code $13 sets the damage to 0; code $A3 adds half of itOgre Battle - The March of the Black Queen (USA) · 0x1BD8C-0x1BD93 — $03:BD8C-$03:BD93, in the attack step: code $A3 loads $50, whose bit $20 is clear, and joins the ordinary attack at $03:BD42, which then scores by StrengthOgre Battle - The March of the Black Queen (USA) · 0x1BD54-0x1BD75 — $03:BD54-$03:BD75: codes from $AB keep the variant (code − $AA) at $14, set Strength as the stat, and replace the code at $13 with $50 ($AB-$AD), $4C ($AE, $AF) or $48 ($B0) before the damage routineChecked by claude, 2026-11-16 — the damage probe's code cases: a Samurai at Strength 200 with codes $13, $A3 and $AB-$B0; at Strength 360 with IAINUKI (past 255 after the add), 520 with BLADE and with IAINUKI (score past 255); and at 60 with IAINUKI; all matchRevised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/damage.mjsThe codes are the classes' frontAttackCode and backAttackCode (ogre-battle-snes-tables/classes): $13 SLEEPING (class 33, Vampyre), $AC BLADE (General, class 100), $AD IAINUKI (Samurai, Samurai Master, Lord, General 99, Dragoon), $AE LIFESUCK (Vampyre); no class lists $A3, $AB, $AF or $B0, so which attacks use them isn't known. A Samurai at Strength 360 on plains scores 198 and, with IAINUKI, 41 (probed). Codes $A3 to $AA are the status attacks' range (STUN is $A6, CHARM $A7, PUMPKIN $A9, PETRIFY $AA in the class tables), but no class's attack is $A3, so which attack uses it isn't known. The replacement codes $50, $4C and $48 have bit $20 clear, so the damage routine scores Strength, and their element bits (physical, black, lightning) match the element the setup gave the original code (attack-element); the lines quoted test it only for $13 and $A3. What later steps read from it isn't read. LIFESUCK's own effect, if any, is elsewhere.
Each target of an attack is hit or missed by a chance from 40% to certain. Each side scores its Agility, or Intelligence for a magic attack, plus half its Luck, plus its class's terrain coefficient, plus a random 0 to 7; a player's character adds 10, and an enemy counts its class's Luck. The attacker's score minus the target's sets the chance: below -48, 40%; -48 to -33, 50%; -32 to -17, 60%; -16 to -1, 70%; 0 to 15, 80%; 16 to 31, 90%; 32 or more, always. A target marked undead (undead) is hit only by white attacks. Codes $A0 to $AA follow other rules (status-hit), and so does a battle flag (notes). ogre-battle-snes/hit-chance
Value: player bonus 10 · roll 0, 7 · offset 48 · step 16 · chance 40, 50, 60, 70, 80, 90, 100, 100
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1B725-0x1B97D — $03:B725-$03:B97D, the battle's hit step: for codes below $A3 and from $AB, the attacker's score, then for each target taken from the list's end: a miss when its character's flag byte ($08FA) has bit $20 and the element isn't 5; its score; the difference plus 48 against the steps 0, 16, 32, 48, 64, 80, 96 ($03:B97E), counted, plus 3; a hit when a random 0-9 is not above that; then a miss for magic below $A9 (not $A3-$A5) when bit $10 of $7E:F931 is set and the targets are on the player's side; hits are written back to the listOgre Battle - The March of the Black Queen (USA) · 0x1BC0C-0x1BC64 — $03:BC0C-$03:BC64, a side's score: the working Agility ($7E:F8C9), or Intelligence when the code has bit $20; for a character below 100, 10 and its own Luck ($7E:F490) halved, else its class's Luck ($03:F48F + class) halved; the terrain coefficient; a random 0-7Checked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/hit.mjs in MesenCE: after 600 frames from power-on it calls $03:B725 40 times from written states: differences of -60, -49, -48, -33, -32, -17, -16, -1, 0, 15, 16, 31, 32 and 60, each with the 0-9 draw on both sides of its chance; both score draws moved; a lake battle against an Octopus; an enemy against player's characters of luck 0 and 90; magic; the flagged target against physical, fire and white attacks; the battle flag against enemy magic, enemy physical and player magic; three targets with their own draws; all matchRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/hit.mjsThe chance is (steps counted + 4) out of 10. Codes $A0-$A2 (HEALING, KISS, HEALING+) skip the check; $A3-$AA (STUN, CHARM, PUMPKIN, PETRIFY and others) score with Intelligence or Agility through $03:BC65 and take other offsets (status-hit, status-hit-other). A target whose character has bit $20 of its byte at $08FA set (the byte whose bit $10 marks a werewolf, level-up) is missed by all but white attacks, and with bit $10 of $7E:F931 set the enemy's magic misses the player's side. Bit $20 is the undead mark (undead); the tarot card WORLD sets bit $10 (tarot-battle). In the battle the battle probe plays, an attack that missed left the list empty and dealt no damage.
The status attacks are hit or missed by rules of their own. For STUN (the Witch's), CHARM (the Vampyre's), PUMPKIN (the Pumpkin's and Halloween's) and PETRIFY (the Cockatris's), each side scores its Intelligence, or its Agility for PUMPKIN and PETRIFY; plus half its Luck (an enemy's class's); plus 10 for a player's character using PUMPKIN or PETRIFY; minus its alignment's whole distance from the battle's reference value (hour-alignment); plus 3 and a random 0 to 7. The attacker's score minus the target's counts steps as for an ordinary attack (hit-chance): 0 below -48, then 1 more for each 16, up to 7 from 48. STUN and CHARM land with a chance of the steps in 10 (never at 0 steps, 70% at most), PETRIFY of one more (10% to 80%), and PUMPKIN of three more (30% to certain). PUMPKIN and PETRIFY never land on an enemy numbered 82 or above, and CHARM never lands on numbers 78 to 98, the Lord's among them, or from 102. PETRIFY misses while the attacker itself is first in the target list. HEALING, HEALING+ and KISS always land, and the Vampyre's SLEEPING never does. ogre-battle-snes/status-hit
Value
{
"playerBonus": 10,
"base": 3,
"agility": [
169,
170
],
"steps": 7,
"chanceAdd": {
"other": -1,
"pumpkin": 2,
"petrify": 0
},
"flyers": [
62,
77
],
"pumpkinImmuneFrom": 82,
"charmImmune": [
[
78,
98
],
[
102,
255
]
],
"flagMisses": [
[
166,
168
]
],
"neverLands": 19
}0x1B725-0x1B97D — $03:B725-$03:B97D, the battle's hit step: codes $A0-$A2 skip it; for $A3-$AA the attacker's score comes from $03:BC65 ($03:B759); for each target, $AA first misses when the list's first entry ($7E:F9C8) is the attacker; the target's score from $03:BC65; the difference plus 48 against the steps at $03:B97E; the chance is the steps for $AA, the steps plus 2 for $A9, and the steps less 1 for the rest, against a random 0-9 that may not exceed it ($03:B8C0); then code $13 is dropped, $A9 and $AA miss an enemy whose number ($07BA) is $52 or more, and $A7 misses numbers $4E-$62 and from $66Ogre Battle - The March of the Black Queen (USA) · 0x1BC65-0x1BCD8 — $03:BC65-$03:BCD8, a side's score for the status codes: the working Agility ($7E:F8C9) for $A9 and $AA, else Intelligence ($7E:F8A1); for a character numbered 100 or more its class's Luck ($03:F48F + class), else 10 for $A9 and $AA and its own Luck ($7E:F490); the Luck halved; |alignment − $7E:F926| taken off whole; plus 3; plus a random 0-7 ($03:BC52)Checked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/status.mjs in MesenCE: after 600 frames from power-on it calls $03:B725 193 times from written states, among them each step's edges (differences from -60 to 90) for STUN, CHARM, PUMPKIN, PETRIFY, $A5 and $A8 with the 0-9 draw on both sides of each chance; both score draws moved; alignments against reference values 0, 25, 75 and 100; a player's Pumpkin, an enemy Cockatris and an enemy Vampyre; PETRIFY with the attacker first in the list; PUMPKIN and PETRIFY on enemies numbered 81, 82, 101 and 125 and on a player's character numbered 100; CHARM on enemies numbered 77, 78, 98, 99, 101, 102 and 125 and on player's characters numbered 78, 81 and 101; HEALING, HEALING+ and KISS on two targets; SLEEPING at a sure chance; and STUN on three targets with their own draws; all matchChecked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/status.mjsThe codes are the classes' attack codes (ogre-battle-snes-tables/classes): $A6 STUN, $A7 CHARM, $A9 PUMPKIN, $AA PETRIFY, $A0 HEALING, $A2 HEALING+, $A1 KISS, and $13 SLEEPING (the Vampyre's second form). A number is the byte at $07BA the game keeps for each character: the class for an ordinary one, 82 to 101 for the Wise Man, the bosses and the Generals, and 102 to 125 for the named characters (ogre-battle-snes-tables/characters). Numbers 78 to 81 are the four Lord classes, and 99 to 101 (two Generals and the Dragoon) fall between CHARM's two ranges. The steps stop at 7 because the table at $03:B97E has seven thresholds (0 to 96 on the difference plus 48). A chance is the 0-9 draw at or below a number, so STUN's is (steps less 1) + 1 out of 10. The enemy's class Luck here is its own class's, not the next one's as in turn-order. Codes $A3, $A4, $A5 and $A8 follow status-hit-other.
Four codes that no class lists as its own attack hit by other rules. Codes $A5 and $A8 land as STUN does (status-hit). Codes $A3 and $A4 land without a roll: $A3 on any target but one marked undead (undead), and not on a flying class (Hawk Man to Wyvern, classes 62 to 77) unless it is stunned or petrified; $A4 on a target at half its maximum hit points or less, never on one whose maximum is 0. With a battle flag set, the computer's STUN, CHARM and $A8 miss the player's side, while its $A3, $A4, $A5, PUMPKIN and PETRIFY still land. ogre-battle-snes/status-hit-other
0x1B7CD-0x1B827 — $03:B7CD-$03:B827: for $A3, a miss when the target's character has bit $20 of $08FA, else a hit unless its class is $3E-$4D and its status has neither $10 nor $20; for $A4, a miss when the maximum hit points ($0ADA) are 0 or half of them is below the current ($099A), else a hitOgre Battle - The March of the Black Queen (USA) · 0x1B920-0x1B955 — $03:B920-$03:B955: with bit $10 of $7E:F931, targets on the player's side ($7E:F934 = 0) and a code with bit $20, codes below $A3 and $A6-$A8 miss; $A3-$A5 and from $A9 are keptChecked by claude, 2026-11-16 — the status probe's cases for these codes: $A5 and $A8 at each step's edges with both draws; $A3 on a Fighter, the Hawk Man and the Wyvern and the classes either side of them, a stunned Hawk Man, a petrified Wyvern, a Fighter and a stunned Ghost with the undead bit; $A4 at 200 and 201 of 400, 100 and 101 of 201, 0 of 0, 1 of 1 and 0 of 1; each of $A3-$AA by the computer on the player's side with the flag, and a player's STUN with it; all matchChecked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/status.mjsThe flag is bit $10 of $7E:F931 (hit-chance has it make the computer's magic miss the player's side); the tarot card WORLD sets it (tarot-battle). Which attacks use $A3, $A4, $A5 and $A8 is in spell-codes. Flying is the classes from the Hawk Man (62) to the Wyvern (77) in the classes table.
When the game makes a character, it marks Skeletons, Wraiths, Ghosts and Phantoms undead, and no other class. Among ordinary attacks only white ones hit an undead target (hit-chance); some special attacks follow their own rules against it (status-hit-other), and the tarot cards theirs (tarot-battle). ogre-battle-snes/undead
Value: classes 58, 59, 60, 61 · flag 32
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1EC5F-0x1EC7B — $03:EC5F-$03:EC7B, in the character-making routine: the number stored at $07BA, and bit $20 of $08FA set for numbers $3A-$3D (58-61 in ogre-battle-snes-tables/classes: Skeleton, Wraith, Ghost, Phantom)Ogre Battle - The March of the Black Queen (USA) · 0x3E6C3-0x3E6D1 — $07:E6C3-$07:E6D1: when the byte at $038B is $3A (58, Skeleton), bit $20 of $08FA is setEach target of an attack is hit or missed by a chance from 40% to certain. Each side scores its Agility, or Intelligence for a magic attack, plus half its Luck, plus its class's terrain coefficient, plus a random 0 to 7; a player's character adds 10, and an enemy counts its class's Luck. The attacker's score minus the target's sets the chance: below -48, 40%; -48 to -33, 50%; -32 to -17, 60%; -16 to -1, 70%; 0 to 15, 80%; 16 to 31, 90%; 32 or more, always. A target marked undead (undead) is hit only by white attacks. Codes $A0 to $AA follow other rules (status-hit), and so does a battle flag (notes). Verified — which attacks hit an undead targetFour codes that no class lists as its own attack hit by other rules. Codes $A5 and $A8 land as STUN does (status-hit). Codes $A3 and $A4 land without a roll: $A3 on any target but one marked undead (undead), and not on a flying class (Hawk Man to Wyvern, classes 62 to 77) unless it is stunned or petrified; $A4 on a target at half its maximum hit points or less, never on one whose maximum is 0. With a battle flag set, the computer's STUN, CHARM and $A8 miss the player's side, while its $A3, $A4, $A5, PUMPKIN and PETRIFY still land. Verified — the special attacks' rules against itEvery tarot card but FORTUNE acts on each of its targets in turn. MAGICIAN, CHARIOT, HERMIT, JUSTICE, DEVIL and JUDGEMENT do damage worked out from the Lord's score against the target's (lord-attack): fire, physical, lightning, cold, black and white damage, scored by the Lord's Intelligence for MAGICIAN, JUSTICE and JUDGEMENT and its Strength for the rest. All but JUDGEMENT miss an undead target. TOWER does physical damage the same way, and half as much again; it misses undead targets and flyers that aren't stunned or petrified. SUN does (100 − the target's alignment)² / 50 − 20, or 1 when that is below 0, plus a random 0 to 7, so at alignment 68 it can do none. DEATH does 999 damage to a target at half its maximum hit points or below. PRIESTESS heals 50 hit points and EMPRESS 999, up to the maximum. FOOL kills a target outright without touching its hit points, and sets the flag that keeps the deaths checked next from changing experience, alignment and charisma (death-handler). HIEROPHANT stuns as STUN does (status-effects). LOVERS charms with a chance of (steps + 3) in 10, the steps counted as for STUN (status-hit), from the Lord's score (half its luck plus its Intelligence, minus its alignment's distance from the battle's reference value) less the target's. HIEROPHANT, LOVERS, DEATH, SUN and FOOL miss characters numbered 82 and up. EMPEROR gives a target one more attack; TEMPERANCE ends charm, stun and petrification and gives back the attacks and Agility the last two took; STAR adds 50 to a target's Agility; MOON moves a target's place number 5 along, from the first five to the last five and back. STRENGTH, HANGED MAN and WORLD set battle flags: the player's characters take less damage and the enemies more (damage-flags), and the computer's magic misses the player's side (hit-chance, status-hit-other). Verified — the tarot cards' rules against itChecked by claude, 2026-11-16 — probes/ogre-battle/classes.mjs in MesenCE: the character-making routine at $03:EC06 for each of the 101 classes, reading bit $20 of $08FA: set for classes 58 to 61 and for no other; the attack rules are the probes of hit-chance, status-hit-other and tarot-battleRevised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/classes.mjsThe mark is bit $20 of the character's byte at $08FA, whose bit $10 is the werewolf flag (level-up) and bit $01 the dead mark (death-experience). A routine at $07:E6C3 also sets it when the byte at $038B holds 58; what fills $038B there, and so when the player sees it, wasn't read. The probes of hit-chance, status-hit-other and healing-targets write the bit themselves; the classes probe has the game set it.
What the special attacks do to a target they land on. KISS marks it kissed (8 more on its scores, damage) and CHARM marks it charmed. STUN marks it stunned and PETRIFY marks it petrified, and on a target that was neither, either one takes the target's attacks left off the battle's count of attacks left and sets its Agility for the battle to 0; STUN on a target already stunned does nothing more. PETRIFY turns only the first target in its list to stone, then strikes every target in the list as an ordinary physical attack by Strength. PUMPKIN takes from each target in turn half the hit points the first target has at that moment, at least 1: on targets at 100 and 301, the first drops to 50 and the second loses 25. A target at 1 hit point dies. Code $A4 does 999 damage, $A5 does nothing, and $A8 acts as STUN. ogre-battle-snes/status-effects
Value: kiss 4 · charm 8 · stun 16 · petrify 32 · kill 999
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1BD76-0x1BDB6 — $03:BD76-$03:BDB6: the handlers' table for codes $A0-$AA ($A0 and $A2 $03:BDBE, $A1 BE1A, $A3 and $A5 BEE0, $A4 BE9E, $A6 and $A8 BE26, $A7 BE6A, $A9 BE7F, $AA BEA5), $A3 sent to the ordinary attack first, then a call of the handler for each target in the listOgre Battle - The March of the Black Queen (USA) · 0x1BE1A-0x1BEE0 — $03:BE1A-$03:BEE0: KISS sets status bit $04; STUN, unless bit $10 is set, sets it and, unless bit $20 is set, takes the target's attacks ($7E:F996) off the battle's count ($7E:F941) and zeroes its working Agility ($7E:F8C9); CHARM sets bit $08; PUMPKIN takes half the hit points of the list's first target, at least 1; $A4 takes 999; PETRIFY does as STUN with bits $20 and $10 swapped, then drops the loop's return and runs the ordinary damage routine as code $50 by Strength; $A5 returns at onceOgre Battle - The March of the Black Queen (USA) · 0x1C265-0x1C2AB — $03:C265-$03:C2AB: the amount taken off the target's current hit points ($099A), held at 0, where the status becomes dead ($80, with $40 cleared) and bit $01 of the character's $08FA is setChecked by claude, 2026-11-16 — the status probe calls $03:BD19 27 times with the targets hit: KISS and CHARM on two targets; STUN on a fresh, a stunned and a petrified target; $A8; $A4 on an enemy and on a player's character; $A5; PUMPKIN at 999, 400, 7, 2 and 1 hit points and on two targets; PETRIFY on two targets, with the first one fresh and stunned, against code $50 from the same state; and the healing cases; status, hit points, working Agility and the count of attacks left all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/status.mjsThe marks are bits of the combatant's status byte ($7E:F982): $04 kissed, $08 charmed, $10 stunned, $20 petrified, $80 dead. A stunned or petrified combatant gets no turn-order priority (turn-order); what charmed changes isn't read. Taking the attacks away lowers the battle's count of attacks left but not the combatant's own. PUMPKIN's list usually has one target, so "the first target's" is its own; with two, the second loses half of what the first has left (probed). The PETRIFY strike scores as damage does with code $50, whose element bits make it physical; the probe compares it with a code $50 attack from the same state.
HEALING and HEALING+ restore to each target a quarter, rounded down, of the sum of the healer's Intelligence, half its alignment and a random 0 to 7, less a quarter of its alignment's distance from the battle's reference value (hour-alignment), and never past the target's maximum hit points. When the distance outweighs the rest, the sum wraps around and the target is healed to its maximum: a healer with Intelligence 10 and alignment 0 heals fully when the reference value is 100. ogre-battle-snes/healing
Value: ali divisor 2 · distance divisor 4 · divisor 4 · roll 0, 7
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1BDBE-0x1BE19 — $03:BDBE-$03:BE19: the healer's alignment ($7E:F8B5) halved plus its Intelligence ($7E:F8A1); |alignment − $7E:F926| / 4 taken off as a 16-bit word; a random 0-7 added; the sum shifted right twice as an unsigned word, then $03:C265Ogre Battle - The March of the Black Queen (USA) · 0x1C30E-0x1C32F — $03:C30E-$03:C32F, $03:C265's branch when bit $10 of $7E:F93C is set: the amount added to the hit points, held at the maximum ($0ADA)Checked by claude, 2026-11-16 — the status probe's healing cases: HEALING with draws 0, 3 and 7; HEALING+ on two targets with their own draws at Intelligence 100, 200, 45, 255, 10 and 30 and alignments 80, 0, 100 and 51 against reference values 50, 100, 0 and 49 (the wrap at Intelligence 10); a heal capped at the maximum; all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/status.mjsThe wrap: a negative sum is a 16-bit word from $FFF0 up, which shifted right twice is over 16,000, and the add stops at the maximum. It takes a healer whose Intelligence plus half its alignment plus the draw is below a quarter of its alignment's distance, so a low-Intelligence healer far from the reference value. The heal branch runs when the attack's setup has set bit $10 of $7E:F93C (healing-targets); the probe sets it.
HEALING heals the healer's living ally with the fewest hit points, counting one at its maximum as 999 and taking the first in the battle's list on a tie; HEALING+ heals every living ally. Under any battle order but STRONG, a healer facing a living foe marked undead (undead) instead attacks every such foe with white magic, code $35 for HEALING and $77 for HEALING+. ogre-battle-snes/healing-targets
Value: heals under 1 · white one 53 · white all 119 · full counts 999
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x18BE5-0x18C93 — $03:8BE5-$03:8C93: the code's low bits pick a setup; HEALING+ marks all targets; with the attacker's battle order ($7E:F92E) 1, STRONG, the heal flag ($10 of the attack's flags) is set and the side flipped to the healer's own, all its living members listed, and for HEALING one picked with order 4; otherwise the living foes with bit $20 of $08FA are listed, and if there are any the code becomes $35 ($A0) or $77, element 5, else the healOgre Battle - The March of the Black Queen (USA) · 0x18D46-0x18D79 — $03:8D46-$03:8D79: the list of living combatants on the targeted sideOgre Battle - The March of the Black Queen (USA) · 0x18E71-0x18EC8 — $03:8E71-$03:8EC8, order 4's pick: the listed combatant whose current hit points are lowest, 999 for one at its maximum, the first kept on a tieChecked by claude, 2026-11-16 — the status probe calls $03:8BE5 22 times: HEALING and HEALING+ under each of the four orders, with and without two undead foes (a Ghost and a Skeleton, beside a Fighter and a Lich); a dead ally with fewer hit points; a tie; everyone at the maximum; an ally at its maximum below the rest; a dead undead foe; and a computer's healer with an undead player's character; code, element and target list all matchChecked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/status.mjsThe battle orders are the unit's tactic (damage): 0 BEST, 1 STRONG, 2 LEADER, 3 WEAK. The undead attack is ordinary magic afterwards: Intelligence against the target's (damage), white, which the undead can't escape (hit-chance). The pick takes the first of a tie because it replaces only on a strictly lower count. The probe calls the setup with a battle list it writes, healers on both sides, each order, and reads the code, element and targets.
A player's character killed in battle loses all its experience: when the hit points reach 0, the routine that takes damage off them marks the combatant dead and, on the player's side, puts its experience back to 0. In the probe the kill was code $A4's 999 damage. ogre-battle-snes/death-experience
0x1C265-0x1C2D7 — $03:C265-$03:C2D7: at 0 hit points, the dead mark, bit $01 of the character's $08FA, and, when the targets are on the player's side ($7E:F934 = 0), experience ($7E:F1E8) set to 0 and the player's count of deaths ($7E:F93F) raised; for the computer's side its count ($7E:F940)Checked by claude, 2026-11-16 — the status probe's case of $A4 on a player's character at 37 hit points and 88 experience: hit points 0, dead, experience 0Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/status.mjsEvery attack's damage passes through this routine (damage, lord-attack), so it isn't particular to $A4. Whether a character can come back from death in the battle, or what the counts of deaths feed, isn't read here.
Each combatant gets as many attacks in a battle as its class gives for its row, the front-row count in the front row and the back-row count in the back, and attacks with its class's attack for that row (spells, codes from $C0, weren't compared). In the battle measured, every combatant attacked once before any attacked a second time, and the battle ended at the enemy's death with attacks left unused. ogre-battle-snes/attacks
Value: back from 5 · spell from 192 · enemy from 125
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x1EF5C-0x1EF87 — $03:EF5C-$03:EF87: when a character takes a place in a unit, the high four bits of its slot's byte at $0DCD get its class's attack counts ($03:F50C + class): the back-row count when the place (the low four bits) is 5 or more, else the front-row countOgre Battle - The March of the Black Queen (USA) · 0x182FE-0x18317 — $03:82FE-$03:8317, building the battle's list: the count into the combatant's attacks ($7E:F996), added to the battle's total ($7E:F941)Ogre Battle - The March of the Black Queen (USA) · 0x18AB1-0x18AE9 — $03:8AB1-$03:8AE9: the attack code from the class's front-row code ($03:F571 + class) for a place below 5, else the back-row code ($03:F5D6 + class)Checked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/battle.mjs in MesenCE (about 14,000 frames): each of the six combatants' attack counts against its class's for its place, the codes of its attacks, the first six attacks by six different combatants, the death ending the battle with fewer attacks made than counted (7 of 11); all matchRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/battle.mjsMeasured in one battle played in MesenCE from power-on (battle.mjs): on the first stage, the Lord's unit (the Lord in place 8, three Fighters in places 0, 2 and 4, a Wizard in place 6) against a neutral encounter of one Golem (place 7), which the probe forced by steering the map's encounter check (ogre-battle-snes-tables/stages lists the encounters). The counts were the classes' (Lord 1 at the back, Fighters 2 at the front, Wizard and Golem 2 at the back), the order was Lord, Wizard, the three Fighters, Golem, then the Wizard again, whose second attack killed the Golem: 7 of 11 attacks. Codes from $C0 (the Wizard's $C2) are turned into a spell elsewhere (the Wizard cast $20; spell-element, spell-codes), so the probe compares codes below $C0 only. Places 0-4 being the front row is the game's own reading of them for both the count and the code; the other sizes of row a unit can have aren't measured.
Each attack has one of six elements: fire, cold, lightning, black, physical or white. A code below $A9 carries its element in its bits 2 to 4, numbered in that order from 0 (so codes $10 to $13 are physical, $14 to $17 white, $20 to $23 fire); code $A3 and codes $A9 to $AD are physical, $AE, $AF and $B1 to $BF black, and $B0 lightning. A player's character making a physical attack by Strength (codes $00 to $1F) while holding one of items 1 to 70, from the Sonic Blade to the Battle Bugle, attacks with the item's element instead (ogre-battle-snes-tables/items); one holding item 199 or higher takes, the same way, a byte past the end of that table. ogre-battle-snes/attack-element
Value
{
"elements": [
"fire",
"cold",
"lightning",
"black",
"physical",
"white"
],
"weaponItems": [
1,
70
],
"pastTable": [
199,
255
],
"special": [
[
163,
163,
"physical"
],
[
169,
173,
"physical"
],
[
174,
175,
"black"
],
[
176,
176,
"lightning"
],
[
177,
255,
"black"
]
]
}0x18B0D-0x18B44 — $03:8B0D-$03:8B44, in the attack's setup: the code stored at $7E:F93A; for a code with its top three bits clear, $04:DB32 first; else, or when that finds nothing, $10 for $A3 and $A9-$AD, $0C for $AE, $AF and from $B1, $08 for $B0, the code itself below $A9, shifted right twice and cut to 0-7 into the element ($7E:F93B)Ogre Battle - The March of the Black Queen (USA) · 0x25B32-0x25B58 — $04:DB32-$04:DB58: when the attacker is the player's ($7E:F933 = 0) and its character's item ($7E:F5BC) is not 0 and, less $47, has its top bit set (items 1-70 and 199-255), the element is the byte at $0B:AE3B + the item, and the setup skips its ownChecked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/spells.mjs in MesenCE: after 600 frames from power-on it enters the setup at $03:8B0D 236 times: by the computer with every code from $00 to $1F and from $A0 to $BF and every third from $20 to $9F; by a player's character with codes $10, $13, $14, $0C, $20 and $42 holding items 0, 1, 14, 20, 33, 40, 70, 71 and 100; with code $10 holding each of items 1 to 70 and items 198, 199, 200 and 255 (the expected bytes past the table read from the cartridge in the run); and by the computer holding item 1; all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/spells.mjsThe element is the number the damage routine reads ($7E:F93B) to pick a resistance (damage). A code's bit $20 makes it magic, scored by Intelligence (damage), and bit $40 marks attacks the setup aims at more than one target; neither changes the element. The items' elements are the table at 0x5AE3C, read into ogre-battle-snes-tables/items as a column. The item test takes $47 from the item and checks the result's top bit, so items 1 to 70 and 199 to 255 read the table and 71 to 198 don't; whether a character can hold an item from 199 isn't read. STUN and CHARM set the element to black after they land (status-effects).
NINJUTSU (the Ninja's and Ninja Master's) and MAGIC (the Wizard's, Mage's, Sorcerer's and Lich's) take the element their first target's class resists least: NINJUTSU from fire, cold and lightning, MAGIC from those, black and physical, the earlier in that order on a tie. They read the class's resistances (ogre-battle-snes-tables/classes), not a player's character's own. The Ninja's NINJUTSU becomes magic code $21 plus 4 times the element, and the Wizard's MAGIC (and the Sorcerer's front-row one) $20 plus 4 times; the Ninja Master's NINJUTSU becomes $61 plus 4 times, and the Mage's, Lich's and Sorcerer's back-row MAGIC $60 plus 4 times. ogre-battle-snes/spell-element
Value: three fire, cold, lightning · five fire, cold, lightning, black, physical · one base 32 · all base 96
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x18EEA-0x18F6C — $03:8EEA-$03:8F6C: codes $C0-$C3 choose the target first, then read the first target's class's fire, cold and lightning resistances (and, with bit $02 of the code, black and physical) through the pointers at $03:8FF8, keep the lowest, an earlier one on a tie, and make the code $20 or, with bit $01, $60, plus 4 times its number, plus 1 when bit $02 is clearOgre Battle - The March of the Black Queen (USA) · 0x18F87-0x18F95 — $03:8F87-$03:8F95: a resistance byte from $80 up counts as 0Ogre Battle - The March of the Black Queen (USA) · 0x18B65-0x18BA7 — $03:8B65-$03:8BA7: codes from $C0 with bit $20 clear go to $03:8EEA and come back through the setup with the code it leavesChecked by claude, 2026-11-16 — the spells probe enters $03:8F0E (after the target is chosen) for codes $C0-$C3 against enemies of 14 classes (Fighter, Golem, Octopus, Ghost, Wizard, Salamand, Ice Giant, Hawk Man, Dragon, Lich, Skeleton, Gryphon, Lord, Pumpkin), and for $C2 and $C0 against player's characters of four of them with their own resistances written as 0; all matchChecked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/spells.mjsThe codes are the classes' attack codes (ogre-battle-snes-tables/classes): $C0 the Ninja's back row, $C1 the Ninja Master's, $C2 the Wizard's back row and the Sorcerer's front row, $C3 the Mage's, Sorcerer's and Lich's back row. The new code's bit $20 makes it magic and its bits 2-4 are the element (attack-element); MAGIC's physical choice is code $30 or $70, physical magic scored by Intelligence. Bit $40 ($60 up) marks attacks the setup aims at more than one target; that isn't measured here. No class's resistance is $80 or more, so the rule that counts such a byte as 0 doesn't come up. In the battle the battle probe plays, the Wizard's MAGIC against the Golem came out as $20, fire (attacks).
Some classes' attacks stand for others, chosen as the attack is made. The Cerberus's back-row attack, the front-row attacks of the Wise Man, the Diablos, the Queen, the Hilander, the Princes and the Dandies, and the Geminis' attacks each pick an entry of a list of attack codes at random. The Hilander's and the Princes' back-row attacks and the Generals' 95 to 98 take the entry for the attacks the combatant has left: with 1 left, the list's first entry, which is IAINUKI for the Hilander, an ordinary $10 for the Princes, and BLADE, codes $AF and $B0 (skill-damage) and the Devil's METEOR for Generals 95 to 98. A Gemini's back-row attack with 1 attack left becomes code $AB, which doubles the attack's score (skill-damage). It does so once, setting a battle flag that stops it again until the flag is cleared, and only while neither of the computer's characters 100 and 101 has its dead mark. ogre-battle-snes/spell-codes
Value
{
"random": {
"c4": [
66,
168
],
"c5": [
98,
102,
104,
110,
112,
117,
144,
174
],
"c6": [
66,
163
],
"c7": [
69,
170
],
"c8": [
20,
164
],
"c9": [
96,
100,
104,
108,
113
],
"ca": [
44,
108,
109
],
"d1": [
0,
98
],
"d2": [
8,
144
]
},
"byAttacksLeft": {
"cb": [
173,
16,
16,
16,
113
],
"cc": [
16,
16,
110
],
"cd": [
172,
16,
16
],
"ce": [
175,
12,
12
],
"cf": [
176,
12,
12
],
"d0": [
109,
12,
12
]
},
"lastAttack": 171
}0x18F6D-0x18FF7 — $03:8F6D-$03:8FF7: codes $C4-$CA a random entry of the list the pointers at $03:901E give (count first); $CB-$D0 the entry at the attacker's count of attacks left ($7E:F996) less 1 in the list at $03:9055; from $D1 the attack's flag $08; $D1 and $D2 a random entry of lists 7 and 8; $D3 and up, with 1 attack left and bit $80 of $7E:F931 clear, set that bit and, unless bit 0 of $095E or $095F is set, return $AB; otherwise the list of the code less 2Ogre Battle - The March of the Black Queen (USA) · 0x1901E-0x19074 — $03:901E-$03:9074: the nine random lists' pointers, the six lists by attacks left' pointers, and the listsOgre Battle - The March of the Black Queen (USA) · 0x20588-0x2058D — $04:8588-$04:858D: JSR $1199 with the inline target $03:819F, the long call into the battle's setup, which clears $7E:F931 at $03:819F (death-handler)Checked by claude, 2026-11-16 — the spells probe calls $03:8EEA for every entry of the nine random lists with the draw chosen for it, for every count of attacks left in the six lists by count, and for $D3 and $D4 with 1, 2 and 3 attacks left, the flag $80 set and clear, another flag bit set, and the bytes of characters 100 and 101 at 1 and 0, 0 and 1, 2 and 0, 0 and $FE, and 3 and 0, at the first and last draws of their lists: 152 calls with the $C0-$C3 cases; code and flags all matchRevised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/spells.mjsThe class's codes (ogre-battle-snes-tables/classes): $C4 Cerberus; $C5 Wise Man; $C6, $C7, $C8 the three Diablos (and $C7 the Queen's front row); $C9 the Queen's back row and the Hilander's front; $CA the Princes' and Dandies'; $CB the Hilander's back row; $CC the Princes'; $CD-$D0 Generals 95-98; $D1-$D4 the two Geminis' front and back rows. The lists, in the claim's value: the Cerberus picks $42 (fire, by Strength) or $A8, which acts as STUN (status-effects), though the attack's name is CHARM; the Diablos pick $42 or $A3, $45 or PETRIFY, and $14 or $A4 (status-hit-other); no list or class has $A5. Each draw is the game's random number times the list's length over 256, so the entries of a list of 3, 5 or 8 aren't exactly equally likely. Whether the count of attacks left still includes the attack being made isn't read, so "the last attack" is the reading, not the measure. Characters 100 and 101 are the first two of the computer's character slots; the dead mark is bit $01 of their bytes at $095E and $095F ($08FA + 100), and that they are the twins is a guess. The flag is bit $80 of $7E:F931. The routine at $03:819F is the battle's setup: entered from $04:8588 through the $1199 long call (death-handler), it clears $7E:F931 and builds the battle's list from the two units at $7E:F93D and $7E:F93E ($03:82B5).
Before a battle's attacks, the combatants are put in order by a priority, highest first, and equal priorities keep their places in the battle's list. The priority is Agility, plus half Luck, plus the class's terrain coefficient for the battlefield times a random 3 to 9. An enemy's Luck is read one row on in the classes table, from the next class: a Fighter counts the Knight's 50 rather than its own 45. A dead, stunned or petrified combatant gets 0, as does one with a fourth status mark not identified here. ogre-battle-snes/turn-order
Value: roll 3, 9 · zero status 16, 32, 64, 128 · enemy from 125 · enemy luck shift 1
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x18712-0x18827 — $03:8712-$03:8827: the order list ($7E:F977) numbered afresh up to its $FF; for each combatant, 0 when any of status bits $F0 is set; else the working Agility ($7E:F8C9, a word), plus Luck halved (the character's at $7E:F490 below unit slot $7D; at and above, the byte at $03:F490 + class, which is the classes table's luck column one row on), plus the terrain coefficient ($03:BCD9) times a random 0-6 plus 3, into the words at $7E:F9E4; then a bubble sort of the order list that swaps a pair only when the first is lowerChecked by claude, 2026-11-16 — ran probes/ogre-battle/mechanics/turn.mjs in MesenCE: after 600 frames from power-on it calls $03:8712 28 times from written states: each draw of the 0-6 on several combatants, seven battlefield terrains, each status bit from $01 to $80 and two together, Agility past 255, luck 0, 1 and 255, enemies of six classes, the last of the player's unit slots ($7C) beside the first of the computer's, ties ahead of and behind other priorities, ties among zeros, and ten combatants in reverse order; priorities and order all matchRevised after a check by a second AI model, 2026-11-16.Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/turn.mjsThe status bits are those of the combatant's byte at $7E:F982: $80 dead (set by $03:C265 when the hit points reach 0), $10 stunned and $20 petrified (set by STUN and PETRIFY, status-effects); what sets $40 isn't read; the tarot card EMPEROR clears it (tarot-battle). Only bits $F0 count: Kiss ($04), Charm ($08) and the computer's side ($01) don't. An enemy is a combatant whose unit slot is $7D or higher. The class luck column the hit step reads ($03:BC0C) is indexed at $03:F48F + class, the class's own; this routine's $03:F490 + class takes the next class's, which looks like a slip, and the probe confirms it with enemies of six classes. The battle probe's order (Lord, Wizard, three Fighters, Golem) is consistent with the priorities but isn't checked against them.
A unit moves on the map by the movement type of its heaviest member, by the classes' weight column (ogre-battle-snes-tables/classes); among members of equal weight, by the type that comes first in the grid's order (HIGH SKY first, SLOW last), and a unit with no member heavier than 0 moves as SLOW. A dead member counts with its own class's weight but moves as SLOW, the type of class 33's row. The unit's speed on a terrain is the grid's speed for its type and the terrain (ogre-battle-snes-tables/terrain-movement); terrain codes 20, 21 and 254, past the grid's 20 columns, read the last column (Town), and a place off the map gives a speed of 256, which is the grid's speed on walls for every type but HIGH SKY (1440) and LOW SKY (896). ogre-battle-snes/unit-movement
Value: start type 9 · dead row 33 · off map 256
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2CF72-0x2CFC6 — $05:CF72-$05:CFC6, the unit's movement type from its members' classesOgre Battle - The March of the Black Queen (USA) · 0x54D0-0x54FD — $00:D4D0-$00:D4FD, the speed lookup by type and terrain codeChecked by claude, 2026-11-16 — probes/ogre-battle/movement.mjs in MesenCE: $05:CF72 (to $05:CFC4) for 164 units of slots 10 to 14 in unit 3 (60 mixed units with dead members, each of the 101 classes alone, an empty unit and two edge cases), and the speed lookup at $00:D4D0 for the ten types on codes 0 to 21, $FE and $FF (240 cases); all as the statement gives themRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/movement.mjsA stage's shop lists the five items of the stage's row in ogre-battle-snes-tables/stages, each line set up with the item's kind sign, its name and its value (ogre-battle-snes-tables/items) as the price. Buying some number of an item comes to 10 times the number times the value, and the most of an item the player's gold covers is the gold divided by 10 times the value, rounded down; the shop then allows at most 99 (shop-limit). ogre-battle-snes/shop-price
Value: per value 10
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x29C40-0x29CA7 — $05:9C40-$05:9CA7, the shop list's fill for the stage in AOgre Battle - The March of the Black Queen (USA) · 0x29D19-0x29DE1 — $05:9D19-$05:9DE1, the buy step: the most the gold allows (gold / value / 10), the total (count x 10, times the value), and the gold takenChecked by claude, 2026-11-16 — probes/ogre-battle/shops.mjs in MesenCE: the shop's fill at $05:9C40 for stages 0 to 29; the buy step from $05:9D87 for the 22 items the shops sell at counts 1, 2, 9, 10 and 99 and for the other 178 items at a count of 1; the most the gold allows, from $05:9D19, for the sold items at six amounts of gold from 0 to 9,999,999 (480 checks, all passed); the gold taken and the list as drawn weren't read, and the cap of 99 is shop-limit'sRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/shops.mjsA shop sells at most 99 of an item at once: when the most the player's gold covers (shop-price) is 99 or more, the buy step makes it 99. ogre-battle-snes/shop-limit
Value: cap 99
CodeOgre Battle - The March of the Black Queen (USA) ·0x29D4D-0x29D5E — $05:9D4D-$05:9D5E: when the quotient's high bytes ($07, $08) aren't 0 or its low byte is $63 or more, A is $63Checked by claude, 2026-11-16 — read $05:9D4D-$05:9D5E in the ROM with scripts/snes-dis.mjsRevised after a check by a second AI model, 2026-11-16.Read in the code, not probed: the shops probe stops at $05:9D4D, before these lines, and no case reached the cap.
For most towns, a town pays more aid the bigger it is, the higher its morale and the nearer its compatibility number to the Lord's, and more as the reputation meter (the Chaos Frame) rises; for the largest it is the other way round. The game works the aid out as the population times 100 less the gap between the two compatibility numbers plus the morale, over 200; then that times the Chaos Frame plus 150, over 200. Each division rounds down, and a dividend of 65,536 or more is halved until it fits in 16 bits and the quotient doubled back as often, so a large result drops to a multiple of 2, 4, 8 or more. A first result of 32,768 or more is taken as a negative number, and the town then pays 65,536 less an amount that grows with the Chaos Frame, so less as the meter rises. Of the tables' towns, this happens to four on Dragon's Haven when the Lord's class is 78 or 80, three when it is 79 and two when it is 81. ogre-battle-snes/town-aid
Value
{
"base": 100,
"divisor": 200,
"chaosAdd": 150,
"signedFrom": 32768,
"signed": {
"78": [
"SUKALAMUSH",
"MISTAFFA",
"BRIGHT ROCK",
"MASSWAN"
],
"79": [
"SUKALAMUSH",
"MISTAFFA",
"BRIGHT ROCK"
],
"80": [
"SUKALAMUSH",
"MISTAFFA",
"BRIGHT ROCK",
"MASSWAN"
],
"81": [
"SUKALAMUSH",
"MASSWAN"
]
}
}0x3B84-0x3BFA — $00:BB84-$00:BBFA: for every town from 0 to $1603 + 1, (100 - |$157D - $1BFE| + $1BFD) in 8 bits times the population word at $1BAD ($00:85B7), over 200 ($00:889F); times $157C + 150 by the signed multiply at $00:8782; over 200; stored at $1BD5Ogre Battle - The March of the Black Queen (USA) · 0x0782-0x07BC — $00:8782-$00:87BC: a signed 16-bit multiply; each operand with bit 15 set is negated first, and the product's sign put backOgre Battle - The March of the Black Queen (USA) · 0x0803-0x0839 — $00:8803-$00:8839: a 32-bit dividend made positive, then shifted right until its high word is 0, the count keptOgre Battle - The March of the Black Queen (USA) · 0x089F-0x08F8 — $00:889F-$00:88F8: the shifted dividend's low 16 bits over the divisor by the hardware divider ($4204, $4206), the quotient shifted left by the count (to $FFFF on a carry) and its sign put backOgre Battle - The March of the Black Queen (USA) · 0x280B0-0x280C3 — $05:80B0-$05:80C3, as a stage is set up: each town record's population, morale and compatibility number to $1BAD, $1BFD and $1BFEChecked by claude, 2026-11-16 — ran probes/ogre-battle/income.mjs in MesenCE: $00:BB84 run to its RTS for all 332 towns of the cities table, 20 at a time, plus ten edge towns (population 0, 1, 327, 328, 65,535), at the Lord's compatibility numbers 50, 0, 100, 27 and 80 and those of the four LORD classes with the Chaos Frame at 0, 50 and 100 (and 12 and 73); every town's aid matched the statement's arithmetic, the signed reading includedRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/income.mjsThe population, morale and compatibility number are the cities table's (ogre-battle-snes-tables/cities): the stage's setup copies them and no code writes them after, so a town's morale doesn't change in play. The Lord's compatibility number ($157D) is set in the new game from character 0's class (chaos-stage-clear), one of the four LORD classes 78 to 81, numbered 55, 35, 53 and 75 in ogre-battle-snes-tables/class-battle. The 8-bit sum can't overflow: 100 plus a morale of at most 99 is 199. Dragon's Haven's four large towns (populations from 48,186 to 54,947) are the only ones whose first quotient reaches 32,768; at the Lord's class 78, Sukalamush gives 46,912 at a Chaos Frame of 0 and 34,560 at 100, where the same formula with an unsigned multiply, rounded the same way (a first quotient of 40,704), gives 30,464 and 50,688. The booklets say only that a town's aid follows its economy (ogre-battle/income); the Japanese booklet's sample settlement screen, quoted in the scout's notes, wasn't checked against these numbers.
At the settlement, which the booklets put at noon, the game adds to the player's money the aid (town-aid) of every town the player holds, or nothing once the stage is marked cleared, and takes away the cost of every character in the units on the map, the ten map slots, except dead ones. Money is capped at 99,999,999. When the result would be below 0, the game doesn't store it: it opens a screen and works the settlement out again after it. ogre-battle-snes/settlement
Value: cap 99999999 · free bit 1
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2A7F4-0x2A821 — $05:A7F4-$05:A821: $00:BB84 through the far call, then the aid words of the towns whose owner byte ($1C4D + 2 x town) is 0 summed in 32 bitsOgre Battle - The March of the Black Queen (USA) · 0x2B3B5-0x2B485 — $05:B3B5-$05:B485: the sum to $1F00, or 0 when the stage's cleared byte ($1723 + stage) is set; for map slots 9 to 0 whose word at $18AF isn't $7FFF, the cost of the unit numbered at $19CD ($02:FD2B, a long call to $05:D04E) summed at $1F04; money ($1578) plus the aid less the cost; when not negative, held at $05F5E0FF and returned with A 0, else negated and returned with A 1; both into $1F0COgre Battle - The March of the Black Queen (USA) · 0x2D04E-0x2D091 — $05:D04E-$05:D091: a unit's cost, the cost words at $7E:F4F4 + 2 x character of its five places ($0E81 + 5 x unit), skipping $FF and characters with bit $01 of $08FAOgre Battle - The March of the Black Queen (USA) · 0x2B345-0x2B372 — $05:B345-$05:B372, the noon routine's tail: while $05:B37D returns 1, a far call to $02:9188 and again; then $1F0C and $1F0E into the moneyOgre Battle - The March of the Black Queen (USA) · 0x1C2B1-0x1C2B6 — $03:C2B1-$03:C2B6, in the battle's damage step when hit points reach 0: bit $01 of the character's $08FA setChecked by claude, 2026-11-16 — ran probes/ogre-battle/income.mjs in MesenCE: 15 settlements from $05:B3B5 to either end, with five towns held and lost, no units, one unit, ten units of five, empty map slots between units, a dead member (bit $01), leader and size bits, a cleared stage (3 and 0), money at, just under and past the cap, 1 short, exactly 0 left, 600,000 short and costs whose sum carries past 65,535; the aid, cost, old money and result at $1F00-$1F0F and the end reached match in eachRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/income.mjsThe booklets' rule (ogre-battle/income): at noon each freed town pays and the deployed units' cost is taken, and a stage's towns pay nothing after its boss falls. The noon routine is chaos-day's $05:B311, called at 12 o'clock ($00:BB69); the probe enters after its day count. The ten map slots are the player's (chaos-liberation): the Japanese booklet allows ten units on the map. A character's cost is its own word; the Lord's (character 0) is counted like any other's. What the screen at $02:9188 offers wasn't read; the settlement repeats until its result isn't negative. The aid of every town is worked out again before the sum (town-aid).
The recruit menu's setup builds a list of classes picked by the unit's leader: by the leader's class, so a Knight leader's list is Fighters, a Witch's Hellhounds, a Cleric's Amazons, a Shaman's Clerics and Angels, a Monk's Knights, Shamans and Cherubim, a Sorcerer's Skeletons and Ghosts and a Dragoner's Dragons and Wyverns; 39 of the 101 classes have a list and the others' entries are empty. Six named characters have lists of their own whatever their class: Tristan's is Knight, Samurai, Mage, Shaman and Mermaid, and Galf's Hellhound and Pumpkin, the list a Witch with a particular flag gets too. Beside the list the setup stores a level, the leader's less 2 and at least 1. ogre-battle-snes/recruit-lists
Value
{
"table": 306114,
"levelLess": 2,
"minLevel": 1,
"named": [
99,
100,
101
],
"namedFrom": 123,
"namedLess": 21,
"witch": 23,
"witchFlag": 2,
"witchEntry": 104,
"lists": {
"99": [
"KNIGHT",
"SAMURAI",
"MAGE",
"SHAMAN",
"MERMAID"
],
"125": [
"HELLHOUND",
"PUMPKIN"
],
"KNIGHT": [
"FIGHTER"
],
"WITCH": [
"HELLHOUND"
],
"CLERIC": [
"AMAZON"
],
"SHAMAN": [
"CLERIC",
"ANGEL"
],
"MONK": [
"KNIGHT",
"SHAMAN",
"CHERUBIM"
],
"SORCERER": [
"SKELETON",
"GHOST"
],
"DRAGONER": [
"DRAGON",
"WYVERN"
],
"flaggedWitch": [
"HELLHOUND",
"PUMPKIN"
]
},
"withList": 39
}0x10967-0x109CB — $02:8967-$02:89CB: the leader (place $0422 of $0E81); its level ($7E:F148) less 2, 1 at least, to $03A6; its number ($07BA): from $7B (123) less $15, $63 to $65 (99-101) as it is; else its class ($085A), with class $17 (WITCH) and bit $02 of $08FA made $68 (104); that entry less 1 of the word table at $09:ABC2 points to a list of classes ended by 0, copied to $03A0Ogre Battle - The March of the Black Queen (USA) · 0x10960-0x10966 — $02:8960-$02:8966, the routine's start: the window ($02:DA1F, $02:D779)Ogre Battle - The March of the Black Queen (USA) · 0x4ABC2-0x4AD4B — the 104 word pointers and the lists they point to, class numbers ended by 0Ogre Battle - The March of the Black Queen (Super Famicom Development Wiki) · Ogre Battle ROM Map — the wiki's label for 0x4AC92, the first listRecruit Info Starting With FighterChecked by claude, 2026-11-16 — ran probes/ogre-battle/recruit.mjs in MesenCE: 119 entries at $02:8967 run to $02:89CC, one for each of the 101 classes as a leader numbered 10, a Witch with bit $02 (alone and with all bits), a Knight with it, numbers 99, 100, 101, 123, 124 and 125 as Fighters, numbers 98, 102 and 122 as Knights, and leader levels 1, 2, 3, 4, 50 and 99; the list at $03A0 and the level at $03A6 matched the ROM's list at the stated entry in every caseRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/recruit.mjsClass numbers and names are ogre-battle-snes-tables/classes', character numbers the names table's (ogre-battle-snes-tables/names): 99 TRISTAN, 100 DEBONAIR and 101 FOGEL take the lists numbered as classes 99 to 101 (two GENERALs and the DRAGOON), and 123 SLUST, 124 FENRIL and 125 GALF the three lists after them, a Fire Giant and a Red Dragon, an Ice Giant and a Silver Dragon, and a Hellhound and a Pumpkin. Galf's list is the flagged Witch's; the flag is bit $02 of the character's byte at $08FA, whose meaning isn't read (the Witch Deneb, number 115, is the likely holder). The booklets' rules (ogre-battle/recruiting): a unit in a city can recruit if it has room; the Japanese booklet's table of what each leader class can replenish, in the Japanese class names, matches these lists where the names correspond (Witch: Hellhound; Cleric: Amazon; Mermaid and Nixie: Mermaid, Octopus), per the scout's reading. The room test, the price and what the menu does with an empty list weren't read. That the menu uses the stored level as the recruits' level, and what it does with an empty list, weren't read; the probe stops at the setup's end.
When the random check of neutral-trigger runs for a unit on the map and finds a neutral for its terrain, the neutral appears with a chance set by the unit leader's Luck less the neutral class's base Luck: 48 or more below gives 0%, 32 to 47 below 1%, 16 to 31 below 3%, 1 to 15 below 5%, 0 to 16 above 10%, 17 to 32 above 15%, 33 to 48 above 20%, and more 25%. The game draws a number below 100 and the neutral appears when it is below the chance. ogre-battle-snes/neutral-chance
Value: below -48, -32, -16 · below chance 0, 1, 3 · below else 5 · above 16, 32, 48 · above chance 10, 15, 20 · above else 25
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2912C-0x2915D — $05:912C-$05:915D: the base Luck ($03:F490 - 1 + class) of the neutral made in class $08F0; the unit's leader ($05:9A7C) and its Luck ($7E:F490); the difference to $05:920F; on carry, $05:9188 and $05:9949Ogre Battle - The March of the Black Queen (USA) · 0x2920F-0x29260 — $05:920F-$05:9260: the difference against -48, -32 and -16 or 16, 32 and 48, giving 0, 1, 3, 5 or 10, 15, 20, 25; a random number below 100 ($00:8510); carry set when it is belowChecked by claude, 2026-11-16 — ran probes/ogre-battle/neutral.mjs in MesenCE: 96 entries at $05:912C run to $05:9154 or $05:915E, with the neutral's class, the unit, the leader's Luck and the random draw written: differences of -49 to 55 at and past every limit, each at the draws just under and at its chance and at 255, six other classes at leader Lucks 0, 50 and 100, and the leader fourth and fifth in its unit; all reached the stated endRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/neutral.mjsThe base Luck is the classes table's luk column (ogre-battle-snes-tables/classes), read from the ROM at $03:F490; the leader's Luck is read from the unit's place the probe flags as leader. When the check runs is neutral-trigger's. The Japanese booklet says Luck raises the chance of finding items (ogre-battle/stats); this is a use it doesn't name.
A routine of the map, whose caller wasn't read, goes on only when a counter of the game's clock is a multiple of 10. It then draws one of the ten map slots at random; if that slot holds a unit that has been given a destination, it reads the terrain under the unit, and for each of the stage's three neutral encounters (ogre-battle-snes-tables/encounters) set on that terrain, in turn, it makes the neutral at its class and level and tries the chance (neutral-chance), leaving the loop when one appears. ogre-battle-snes/neutral-trigger
0x290B3-0x2912B — $05:90B3-$05:912B: $1572 divided by 10 by the hardware divider, on with a remainder of 0; a random number below 10 ($00:8510) as the map slot; $19A6 not 0 and $18AF not $7FFF; the terrain code at the unit's place ($18AF and $18D9 over 16, through $00:D32F) to $23; for $22 from 0 to 2, the encounter's three bytes at $1600 + 3 x $22: its terrain against $23, then its class and level to $05:916DOgre Battle - The March of the Black Queen (USA) · 0x2915E-0x29187 — $05:915E-$05:9187: the next encounter until 3; and $05:916D, which hands class, level and 7 to the character maker ($03:EB83, by the far call)Ogre Battle - The March of the Black Queen (USA) · 0x3C0E-0x3C21 — $00:BC0E-$00:BC21: a unit's destination stored ($1905, $192D) and $19A6 set to 1Checked by claude, 2026-11-16 — read $05:90B3-$05:9187 and $00:BC0E-$00:BC21 in the ROM with scripts/snes-dis.mjsRevised after a check by a second AI model, 2026-11-16.Read in the code, not run: what calls $05:90B3, how fast the counter $1572 counts and what the made neutral is used for once it appears ($05:9188, a message with the leader's name, then $05:9949) weren't read. A unit's slot has a destination when $19A6 is set, as $00:BC0E does when it stores one. The row at $1600 is the stage's encounters row (stages). The booklet says a neutral sometimes appears in battle and can be recruited (ogre-battle/recruiting).
Once the player has picked the character and said yes, equipping an item makes it the character's item, takes one from its stock stack (emptying the slot at the last), and changes the character's six resistances by the item's bonus columns, less those of the item it held, the same for a small character, a large one and the Lord. ogre-battle-snes/equip-swap
0x30DF5-0x30E2D — $06:8DF5-$06:8E2D: the character at the picked place ($0E81 + X + $0474); its item ($7EF5BC) to $03AE and, if any, $06:8EC7 (bonuses off); the stock slot's item ($157E + $03AC) to the character, $06:8E7F (bonuses on), and the count ($157F) less 1, the slot cleared at 0Ogre Battle - The March of the Black Queen (USA) · 0x30E7F-0x30F3B — $06:8E7F-$06:8F3B, the two bonus routines (ogre-battle-snes-tables/equip-rule)Checked by claude, 2026-11-16 — ran probes/ogre-battle/equip.mjs in MesenCE: 34 entries at $06:8DF5 run to $06:8E2E, for the eight classes each with a sword (SONIC, item 1) and nothing held and with three swaps among the charms 51 to 56 (EARTH to BYAK), the last of a stack, and resistances of 0 to 255 before the swap; the held item, the stack's item and count and the six resistances matchedChecked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/equip.mjsThe step before, $06:8DD0-$06:8DF4, asks a question ($02:D191, message $16) and waits for the answer; the probe enters after it. Where the old item goes after the swap is equip-rule's reading. The resistances are kept in 8 bits; the probe's sums stayed inside a byte, so what a sum past 255 or below 0 does wasn't measured. The classes tried: FIGHTER (1), LORD (78), DRAGON (48), the large RED{8F} (52) and TIAMAT (56), GOLEM (37), the second BEASTMAN (31) and DRAGOON (101), from ogre-battle-snes-tables/classes.
The opening answers add their four points to four tallies, in the order Ianuki, Phantom, Ice Cloud and Thunder, and the bonus card raises or lowers each of the Lord's seven stats by a random amount from 0 to the card's value. The tallies then rank three Lord types: the winner of the pair Ianuki-Phantom and of the pair Ice Cloud-Thunder, a tie going to the earlier, and a third candidate, ordered by tally with a tie keeping the earlier. For the third candidate the game compares the Ice Cloud-Thunder loser's tally with a byte of scratch memory at the address equal to that tally (for a tally of 10, the byte at $000A), not with the other loser's tally: when the tally is at least that byte it takes that loser, else the Ianuki-Phantom loser. So first is always the type with the most points (on a tie, the earliest), but second can pass over the type with the second most: in a call with tallies 11, 11, 10 and 10 and the scratch bytes set to 0, the ranking was Ianuki, Ice Cloud, Thunder. With a mode byte at 0, as the probe set it, the three types pick the starting rosters: the first type's Lord unit and three units, two of the second type's and one of the third's. ogre-battle-snes/tarot-lord-type
Value
{
"lordUnitPtr": 61433,
"unitsPtr": 61465,
"lordUnit": 61433,
"lordUnitSize": 8,
"units": 61465,
"unitsSize": 24,
"take": [
24,
16,
8
],
"examples": [
{
"tallies": [
11,
11,
10,
10
],
"fill": 0,
"rank": [
"Ianuki",
"IceCloud",
"Thunder"
]
},
{
"tallies": [
11,
11,
10,
10
],
"fill": 255,
"rank": [
"Ianuki",
"Phantom",
"IceCloud"
]
},
{
"tallies": [
5,
3,
3,
1
],
"fill": 0,
"rank": [
"Ianuki",
"IceCloud",
"Phantom"
]
}
]
}0x272C8-0x27324 — $04:F2C8-$04:F324, one answer: the word at $0B:AD1E + 6 x card + 2 x answer, its four half-bytes, high first, added to $7E:F879-$F87COgre Battle - The March of the Black Queen (USA) · 0x27614-0x27696 — $04:F614-$04:F696, the bonus card: per stat the byte at $0B:ADA2 + 7 x card, the far call to the random draw $00:8510 with |value| + 1, the result negated for a negative value and added to the stat (the pointers at $04:F697), the hit points copied to $0ADAOgre Battle - The March of the Black Queen (USA) · 0x27717-0x277ED — $04:F717-$04:F7ED, the ranking at $04-$06 and the copies to $7F:0000 by $04:F891 from the tables at $01:EFF9 and $01:F019 (the pointers set at $04:F6E5)OgreBattle: tarot and Lord-type calculations (aus101) · ogrebattle/tarot/exact/LordOdds.java#L101-L148 — aus101's ranking, which takes the type with the second most points second, a tie going Ianuki, Phantom, Ice Cloud, Thunder; the game's can differ (tallies 5, 3, 3, 1 with the byte at $0001 being 3 rank Ice Cloud second, not Phantom)* @param tracker the list of Tarot card answers<br>
* @return the highest and second highest Lord types with [0] being highest and [1] the second highest<br>
* where 0 = Ianuki, 1 = Phantom, 2 = Ice Cloud, 3 = Thunder<br>
* accounts for tie breaking order of Ianuki > Phantom > Ice Cloud, Thunder<br>
*/
//cleaner ways to do this but overhead of n*log(n) for small n would take longer
private int[] findHighestSecondHighest(int[] tracker) {
int ianukiScore = tracker[0]; int phantomScore = tracker[1]; int icecloudScore = tracker[2]; int thunderScore = tracker[3];
int highestIndex = IANUKI.O; int secondHighestIndex;//default for faster execution
int highestScore = ianukiScore; int secondHighestScore;
//highest
if (phantomScore > highestScore) {
…Checked by claude, 2026-11-16 — ran probes/ogre-battle/tarot-rules.mjs in MesenCE: 66 answers (every card's three) at $04:F2C8, 66 bonus cards (every card with draws 0, 255 and mixed) at $04:F614, and 263 tallies (every mix of 10 to 13 and seven more) at $04:F717, each with $06-$3F filled with 0 and with 255; the tallies, the stats and maximum hit points, and the ranking and the 56 roster bytes matchedRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/tarot-rules.mjsThe comparison for the third candidate loads the loser's tally, pushes it, reads it back off the stack into Y and compares the tally with the byte at $0000 + Y; comparing the two losers' tallies would read the other loser's index, which sits one byte further up the stack. The probe filled $06-$3F with 0 and with 255 to control that byte; the pointers at $0C-$0F ($EFF9 and $F019) are always there, so a loser's tally of 12 to 15 always gives the Ianuki-Phantom loser. Six answers of 1 to 5 points make tallies of 6 to 30. The type names and their order are aus101's (tarot-cards); the ROM keeps no names beside the tallies. The rows of 0xEFF9 read as class numbers FIGHTER, LORD, KNIGHT, then VALKYRIE, WIZARD, CLERIC or BEASTMAN by type, then KNIGHT, FIGHTER, 0, 0; how the game turns the 56 bytes into units wasn't read. aus101's README says the second and third types "do affect starting units", which the copies bear out. The bonus card's draw is (r x (|value| + 1)) / 256 for a byte r of the shared random pool, so its outcomes aren't equally likely when |value| + 1 doesn't divide 256. The rosters are 56 bytes copied to $7F:0000: the first type's 8-byte row of the table at $01:EFF9 (0xEFF9), and 24, 16 and 8 bytes of the first, second and third types' rows of the table at $01:F019. When the mode byte $7E:F92C is 2, $04:F7B2-$F7BB set the copy's index back to 0 before the 24-byte copy, which then writes over the first row (read, not run). Whether the second-place slip happens in play depends on the scratch bytes when the opening runs the ranking, which weren't logged (the todo).
A routine of the battle code takes 1 Charisma from each member of a side's battle list, never below 0, skipping members the battle has flagged with bit $80 or $01. One battle routine calls it when bit 3 of $7E:F931 is clear; when the bit is set it skips the call. ogre-battle-snes/retreat-charisma
Value: loss 1 · skip 129
CodeOgre Battle - The March of the Black Queen (USA) ·0x23B54-0x23B7F — $04:BB54-$04:BB7F: the list at $7E:F977 to its $FF; members flagged $81 at $7E:F982 skipped; the place at $7E:F98C, its character ($0E81), Charisma ($7E:F42C) less 1 unless 0Ogre Battle - The March of the Black Queen (USA) · 0x1DB64-0x1DB8E — $03:DB64-$03:DB8E: $7E:F934 set to 1; when bit 3 of $7E:F931 is clear, the far call to $04:BB54 ($1199 with its target inline), $7E:F934 back to 0 and X and Y of $80 and $100 in place of $FF80 and $FF00Checked by claude, 2026-11-16 — ran probes/ogre-battle/retreat.mjs in MesenCE: 259 entries at $04:BB54 run to $04:BB7F, five members with Charisma 0 to 255, every flags byte on a first member, one member and none; each member's Charisma and a character past the list's end matchedRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/retreat.mjsThe probe measured the loss routine; that the calling routine at $03:DB6A is a retreat, and which side bit 3 of $7E:F931 names, weren't followed, so the claim stays T3 as a reading of the call. It fits Nintendo Power's tip (ogre-battle/retreat-charisma) that running from a battle costs every character in the retreating unit one Charisma point. The flags $81 also skip the list's members in the kill routine ($04:D699); what they mean wasn't read.
A routine gives the army an item by chance, with odds set by a unit leader's Luck: 1 in 10 below Luck 11, 2 below 26, 3 below 41, 4 below 51, 5 below 61, 6 below 76, 7 below 91, and 8 from 91. The item is one of the 92 pieces of equipment numbered 8 to 99 (ogre-battle-snes-tables/items), drawn as 8 + (r x 92) / 256 for a byte r of the random pool, so 72 of them come from 3 values of r in 256 and 20 from 2. ogre-battle-snes/luck-item
Value: luck below 11, 26, 41, 51, 61, 76, 91 · first 8 · count 92 · names 245060 · threes 72 · twos 20
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2C01E-0x2C064 — $05:C01E-$05:C064: the chance test at $05:C065, then the draw at $05:C059 (92 and 8), the item's name pointer from $07:BD44, the message and the stock routine $05:BAACOgre Battle - The March of the Black Queen (USA) · 0x2C065-0x2C0A1 — $05:C065-$05:C0A1: the unit's leader ($05:9A7C), its Luck ($7E:F490) against 11, 26, 41, 51, 61, 76 and 91, and a draw below 10 compared with the band's numberOgre Battle - The March of the Black Queen (USA) · 0x2C456-0x2C459 — $05:C456, the event command's handler, a JSR to $05:C01EOgreBattle: tarot and Lord-type calculations (aus101) · ogrebattle/tarot/exact/RNGBias.java#L12-L18 — aus101 gives the same range, 8 and 92, for buried treasure and temples' liberation rewards/**
* Buried treasured and liberation rewards from temples<br>
* Only valid for SNES and SFC releases due to PSX and Saturn adding Nue's Shield / らいじゅうのたて into the pool.
* I pulled Nue's Shield on English disc with real PS2 and Spockrocket pulled it on real Saturn. Bug fixed.<br>
* Could adjust for those by upping RANGE to 0x5D (93) from 0x5C (92).
*/
protected static final Quantity EQUIP = new Quantity("Equipment ID", 0x8, 0x5C, 45, 28);//8 hex is 8 base 10, and 5C hex is 92 base 10, meant for hex valuesChecked by claude, 2026-11-16 — ran probes/ogre-battle/temple-item.mjs in MesenCE: Luck 0 to 100 each with draws 0, 255 and the two at the band's edge entered at $05:C01E, and every draw 0 to 255 entered at $05:C025 to $05:C037; the exits and the item's name pointer matchedRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/temple-item.mjsThe probe stops when the item is chosen, before the message and the call to $05:BAAC, which looks like the stock routine and wasn't read. The routine's only direct caller is $05:C456, one of a row of small handlers beside routines that test the stages' cleared bytes; that they are commands of the event scripts, and which events use this one, weren't followed. aus101 ties the range to temples' liberation rewards and buried treasure. The draw $05:C059 is also called from $05:8BF6, in code that tests a map tile for $E0, which may be the buried treasure; that path wasn't probed.
In the battle measured, the level-up check ran once, after the battle's last attack. ogre-battle-snes/level-up-timing
0x239E6-0x239FC — $04:B9E6-$04:B9FC, where the level-up check is entered: a graphics load through the far-call trampoline at $1199, before the loop of level-up-check at $04:B9FDChecked by claude, 2026-11-16 — battle.mjs counts the runs of $04:B9E6 in MesenCE and the attacks before it; one run, after all 7Checked by a second AI model, 2026-11-16.Probe: probes/ogre-battle/mechanics/battle.mjsMeasured in the one battle the battle probe plays (attacks): $04:B9E6 ran once, with the game state byte back at 1 and the battle's 7 attacks done. Its caller isn't read: no absolute, far or table reference to $04:B9E6 turned up, so a branch inside bank 4 is likeliest.
A new game starts the Chaos Frame, the reputation meter, at 50. After the hero's name the game asks "Please tell me your sex", with Male and Female to choose from on one line, and keeps the answer as 0 for Male and 1 for Female. ogre-battle-snes/new-game
Value: chaos start 50 · male 0 · female 1
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x0395-0x03AB — $00:8395-$00:83AB, in the new game's setup: 30,000 into the money at $1578, 0 days in all at $1576, and 50 ($32) into the Chaos Frame at $157COgre Battle - The March of the Black Queen (USA) · 0x26F93-0x26FAF — $04:EF93-$04:EFAF: a two-way choice ($04:FC17 with 2), waited on until $1271 holds the answer, stored at $7E:F620Ogre Battle - The March of the Black Queen (USA) · 0x8C28E-0x8C2BB — the question's text, in ASCII with control bytes: "Please tell me your sex", then "Male" and "Female" on one lineOgre Battle - The March of the Black Queen (USA) · 0x1835B-0x1836F — $03:835B-$03:836F: a character's picture by class ($01:E2D9); picture $26 becomes $26 plus the low bit of $7E:F620Checked by claude, 2026-11-16 — ran probes/ogre-battle/endings/start.mjs in MesenCE: from power-on through the title screen, a new game, the name and the questions to the first stage's map, twice; the game read the ROM text at 0x8C28E ("Please tell me your sex") before the two-way question at $04:EF9F opened, and the label "Male" before "Female"; the first answer stored 0 at $7E:F620 and the second (right held while the choice was open) 1; on the choice's 30th frame the cursor's picture (11 VRAM words) lay 12 tiles further into the window's text for the second answer than for the first, so the first answer is taken at the label drawn first, Male; on the map ($CB 1) the Chaos Frame was 50 both timesRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/start.mjsThe answer is kept at $7E:F620. It also picks the Lord's picture: $03:8367 adds its low bit to picture $26. The probe takes the second answer by holding right while the choice is open; the two answers sit on one line.
The Chaos Frame is a number kept from 0 to 100. Every change is added to it in 8 bits and the result held: a result below 0, or of 128 or more, becomes 0, and one from 101 to 127 becomes 100. ogre-battle-snes/chaos-frame
Value: max 100
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2872F-0x28742 — $05:872F-$05:8742: CLC, ADC $157C; 0 (TDC) if the 8-bit sum has bit 7 set; 100 if it is 100 or more; STA $157CChecked by claude, 2026-11-16 — ran probes/ogre-battle/endings/chaos.mjs in MesenCE: 95 calls of $05:872F from meters of 0, 1, 50, 99 and 100 with amounts -128, -101, -100, -51, -50, -2, -1, 0, 1, 2, 27, 28, 49, 50, 51, 77, 78, 100 and 127, run to its store; all match, among them 100 + 27 = 100, 100 + 28 = 0 and 50 + 78 = 0Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/chaos.mjsThe meter is the byte at $7E:157C, and every change goes through the adder at $05:872F (ogre-battle-snes/chaos-sources). A sum of 128 or more can't come from the amounts the game adds (6 at most, from a meter of at most 100) unless an event script adds 28 or more; event scripts weren't read for their amounts.
When a town changes hands, the game runs a routine with the map slot of the unit that took it (ogre-battle-snes/chaos-sources). For a unit in one of the first ten slots (0 to 9) it takes the average alignment of the unit's members, rounded down; subtracts the distance between the town's compatibility number and that of the class of the first member carrying a particular flag, likely the unit's leader; subtracts the town's morale; reads the result as a signed byte, so a total below -128 wraps round to a positive one and one above 127 to a negative one; divides it by 20, rounding toward 0; and adds that to the Chaos Frame, which moves at most 6 either way. For a unit in slot 10 or above the Chaos Frame loses 5. The average has a flaw: once the alignments added so far pass 255, each further member's alignment is read 256 bytes on for every 256 passed, from bytes that aren't alignments. ogre-battle-snes/chaos-liberation
Value: divisor 20 · enemy -5 · player slots 10
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x28743-0x287E5 — $05:8743-$05:87E5: slot 10 or more adds -5 ($FB); else the town's bytes at $1BFD (morale) and $1BFE (compatibility), the unit number at $19CD + 2 x slot, its leader's class's compatibility number ($03:F63C), the members' average alignment ($05:879F: the five places at $0E81 + 5 x unit, $FF skipped, the sum over the count by the hardware divider), then -|leader - town| + average - morale in 8 bits, sign-extended, divided by 20 at $00:8703, and added at $05:872FOgre Battle - The March of the Black Queen (USA) · 0x29A7C-0x29AA9 — $05:9A7C-$05:9AA9: a unit's leader, the first of its five places whose character has bit $80 of $08FA setOgre Battle - The March of the Black Queen (USA) · 0x0703-0x0730 — $00:8703-$00:8730: signed division, made positive, divided ($00:8576), and the quotient's sign put back, so it rounds toward 0Ogre Battle - The March of the Black Queen (USA) · 0x280B8-0x280C3 — $05:80B8-$05:80C3, as a stage is set up: each town record's bytes 4 and 5 (the cities table's morale and compatibility) to $1BFD and $1BFE, two bytes a townOgre Battle - The March of the Black Queen (USA) · 0x28994-0x28998 — $05:8994-$05:8998, a caller as the player's unit takes a town: Y halved into A, JSR $8743Ogre Battle - The March of the Black Queen (USA) · 0x28A58-0x28A5D — $05:8A58-$05:8A5D, the other such caller: $20 halved into A, JSR $8743Checked by claude, 2026-11-16 — ran probes/ogre-battle/endings/chaos.mjs in MesenCE: 51 calls of $05:8743 with a written unit, town and meter, for totals from 100 down to -128 by each step of 20 and its neighbours, five that wrap (-129 to -150), the town's number above and below the leader's with leader classes of compatibility 20, 50 and 90, five members with the leader third, empty places between members, averages that round down, four or five members whose sum passes 255 and 511 (bytes at $0D22, $0D23 and $0E23 averaged in), a total of 160 read as -96, meters of 2, 3 and 99, map slot 9, and map slots 10, 11 and 20 (-5); all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/chaos.mjsThe town's morale and compatibility number are the cities table's (ogre-battle-snes-tables/cities) and the class's compatibility number the classes table's. The US booklet's advice that the liberating unit's alignment should be higher than the town's morality level (ogre-battle/reputation-factors) matches the average-minus-morale part; the Japanese booklet's "the leader's alignment" (ogre-battle/chaos-frame) is the whole unit's average here, while the leader counts through its class's compatibility number. Five calls reach the routine: two that hand the town to the player pass the unit's map slot, three that hand it to the enemy pass 10 (ogre-battle-snes/chaos-sources). The flaw is in $05:879F: the loop adds in 16 bits and returns to 8 bits, leaving the sum's high byte in the accumulator, and the next member's number goes to X by TAX with 16-bit index registers, which takes that byte too; the probe wrote bytes at $7E:0D22, $0D23 and $0E23 and saw them averaged in. 256 bytes past the alignments ($0C1A) lies $0D1A, inside 200 bytes kept from $0C7E (saved with the game, in the save list at $00:8300) whose meaning wasn't read. Alignment stays from 0 to 100 (ogre-battle-snes/alignment-after-kill), so three members can't pass 255 before the last is added; the flaw needs four or five. The flag is bit $80 of a character's byte at $08FA, which $05:9A7C looks for; that it marks the leader is a reading (the FOOL card's note in ogre-battle-snes/tarot-battle leaves the bit unread).
Clearing a stage adds 0 to 5 to the Chaos Frame. The game averages, over the stage's towns the player holds, 100 less the distance between the Lord's compatibility number and the town's; divides that by 20, rounded down; and adds the stage's day goal less the days spent on the stage. With no town held, the towns' part is 0. A total from 0 to 4 is added as it is. Any other total adds 5, a negative one too, so a stage cleared late still adds 5. ogre-battle-snes/chaos-stage-clear
Value: divisor 20 · cap 5 · no towns 0
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2A4D5-0x2A4FD — $05:A4D5-$05:A4FD, the stage-clear routine: sets the stage's cleared flag ($1723 + stage), then adds $05:A78A's result at $05:872FOgre Battle - The March of the Black Queen (USA) · 0x2A78A-0x2A7F3 — $05:A78A-$05:A7F3: over towns $1603 + 1 down to 0, those whose owner byte ($1C4D + 2 x town) is 0 give 100 - |$157D - $1BFE|; the sum over their count, over 20 (both at $00:8703); plus $1655 - $1657; CMP #$0005, BCC, else 5; a CMP #$FFFB that, after the first, never changes itOgre Battle - The March of the Black Queen (USA) · 0x0101-0x010D — $00:8101-$00:810D, in the new game's setup: $157D from the compatibility number ($03:F63C) of character 0's class, the LordOgre Battle - The March of the Black Queen (USA) · 0x280E4-0x280ED — $05:80E4-$05:80ED, as a stage is set up: $1603 = the number of town records - 2, so the loop covers every town, and town 0's owner byte clearedOgre Battle - The March of the Black Queen (USA) · 0x28040-0x28045 — $05:8040-$05:8045: the day goal at $1655 from the word at $05:D173 + 2 x stage (ogre-battle-snes-tables/stages, clearGoal)Checked by claude, 2026-11-16 — ran probes/ogre-battle/endings/chaos.mjs in MesenCE: 46 calls entering the stage-clear routine at $05:A4F8 (its call of $05:A78A, then of the adder) with written towns, Lord's compatibility number, day goal and days: towns' terms 0 to 5 at the goal met exactly, goal less days from -40 to 7 against towns' terms 0, 2 and 5 (totals 4, 5, 6 and -1 among them), held and lost towns mixed, held towns past the stage's last left out, twenty towns with only the last and town 0 counted, no town held with goal less days of 0, 1, 4, 5 and -5, and a meter of 97; all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/chaos.mjsThe two clamps read as meant to hold the bonus between -5 and 5, but the first compares unsigned, so a negative total becomes 5 before the second sees it. The days spent are the counter at $1657 (ogre-battle-snes/chaos-day). A town's owner byte is 0 when the player holds it: the town routine's callers clear it when the player takes the town and set it when the enemy does. The stage-clear routine runs when the stage's boss unit falls ($05:9E27 tests unit 25's first two places); that trigger wasn't probed. With no town held the average divides 0 by 0: $00:8576's shift-and-subtract division then gives $FFFF, which $00:8703 reads as -1, and dividing that by 20 gives 0.
The game's day routine adds a day to the days spent on the stage and to the days in all, which stop at 999, and takes 1 off the Chaos Frame when the days on the stage now pass the stage's day goal, or when the stage has already been cleared. ogre-battle-snes/chaos-day
Value: change -1 · total cap 999
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2B311-0x2B344 — $05:B311-$05:B344: INC $1657 and $1576, $1576 held at 999; then, if $1655 < $1657, or else if $1723 + stage is not 0, -1 ($FF) at $05:872FOgre Battle - The March of the Black Queen (USA) · 0x3B69-0x3B83 — $00:BB69-$00:BB83: when the hour counter $1571 is 12 and the counters below it ($1572, $1573) are 0, the tax routine ($00:BB84) and then $05:B311Ogre Battle - The March of the Black Queen (USA) · 0x28436-0x28442 — $05:8436-$05:8442: the days on the stage, $1657, set to 0Checked by claude, 2026-11-16 — ran probes/ogre-battle/endings/chaos.mjs in MesenCE: 20 calls of $05:B316 to $05:B345 with day goal 5 and the stage's days before at 0, 3, 4, 5, 6, 30 and 255, each with the stage cleared and not; goal 0 on the first day; a meter of 0 past the goal; days in all of 998, 999 and 1000; stage 24 cleared; the days, the days in all and the meter all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/chaos.mjsThe probe enters at $05:B316, after the routine's message ($05:AA7F with $13). By the caller at $00:BB69 the routine runs once a day, at 12 o'clock on the counter at $1571 (ogre-battle-snes/hour-alignment); that call wasn't probed. A stage can be visited again after it is cleared, and every day there costs 1.
Five tarot cards change the Chaos Frame when drawn: LOVERS and TEMPERANCE add 2, DEATH takes 2 off, DEVIL takes 1 off, and FORTUNE adds or takes off 1, 2 or 3, the amount and the direction drawn from the game's random numbers. ogre-battle-snes/chaos-tarot
Value: LOVERS 2 · TEMPERANCE 2 · DEATH -2 · DEVIL -1 · fortune 1, 3
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x328DB-0x3291E — $06:A8DB-$06:A91E: the card number at $03A8 picks a routine from the 23 words at $06:A8F1, entered by JMP ($0000)Ogre Battle - The March of the Black Queen (USA) · 0x32B1B-0x32B30 — $06:AB1B-$06:AB30, the routine of cards 5 and 13 (LOVERS, TEMPERANCE): 2 at $05:872F, then its messageOgre Battle - The March of the Black Queen (USA) · 0x32C42-0x32C90 — $06:AC42-$06:AC90, card 9 (FORTUNE): a random number below 3 ($00:8510), plus 1; a random number below 2, and the amount negated when it is 1; added at $05:872F; then its messageOgre Battle - The March of the Black Queen (USA) · 0x32D3F-0x32D6A — $06:AD3F-$06:AD6A, cards 12 (DEATH, -2, $FE) and 14 (DEVIL, -1, $FF), each then its messageChecked by claude, 2026-11-16 — ran probes/ogre-battle/endings/chaos.mjs in MesenCE: 52 calls of the card dispatcher at $06:A8DB with $03A8 set to LOVERS (5), TEMPERANCE (13), DEATH (12) and DEVIL (14) from meters of 0, 1, 50, 99 and 100, and FORTUNE (9) with first draws 0, 85, 86, 170, 171 and 255 against second draws 0, 127, 128 and 255, and at meters 1, 2, 98 and 99, each run to just after the card routine's call to the adder; all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/chaos.mjsCard numbers are the order of ogre-battle-snes-tables/tarot-cards, MAGICIAN 0 to WORLD 21. The FORTUNE draws come from the shared generator (ogre-battle-snes/level-up's notes): a low byte of 0-85 gives 1, 86-170 2 and 171-255 3, and a second low byte of 128 or more makes it a loss. Other cards' draw routines change other things (one adds 2 to each member's alignment at $06:AAFA); they weren't read here. Quest's page has the cards drawn on liberating a town or temple (ogre-battle/tarot). That no other card changes the meter rests on the search in ogre-battle-snes/chaos-sources: the adder is reached through the far call only from these four card routines.
No absolute or long reference to the Chaos Frame in the code lies outside the ways the other claims give: taking a town, an enemy taking one, clearing a stage, each day at noon, five tarot cards, and a command in the event language that adds an amount of its own. No battle routine refers to it: a fight moves it only through the alignments it changes (ogre-battle-snes/alignment-after-kill), which the next town taken averages. Event scripts can also branch on it. ogre-battle-snes/chaos-sources
0x0000-0x17FFFF — the whole ROM, 48 banks, searched with scripts/snes-dis.mjs find for $7E:157C (absolute operands in any bank, long ones) and for the byte patterns of JSR, JSL and JML to $05:872F and $05:8743 and of the far call at $1199 with either as its target: $157C is an operand at $00:83A9 (the new game's store), $00:BBC3 (tax), $05:85A9 (the meter's drawing), $05:8730 and $05:873C (the adder), $05:A413 (a results screen), $05:B944 (the ending), $05:C2CD and $05:C2E2 (event commands $10 and $11) and $05:CC2E (a display), and in the save list at $00:8344; and at $21:C111, $25:9422, $25:98B2 and $2F:8DFC amid bytes that don't read as code (BRKs and stray opcodes around them); the adder is reached by JSR from $05:8795 and $05:879B (the town routine), $05:A4FB (stage clear), $05:B342 (the day) and $05:C270 (event command 9), and through the far call from $06:AB1D, $06:AC72, $06:AD41 and $06:AD57 (the cards), with no JSL or JML; the town routine $05:8743 by JSR from $05:8996 and $05:8A5B (owner byte cleared) and $05:8E45, $05:8EED and $05:8F6E (with 10), and not by far callOgre Battle - The March of the Black Queen (USA) · 0x2C26D-0x2C273 — $05:C26D-$05:C273, event command 9: the script's next byte to $05:872FOgre Battle - The March of the Black Queen (USA) · 0x2C2C4-0x2C2ED — $05:C2C4-$05:C2ED, event commands $10 and $11: a byte and a jump; the jump taken when the Chaos Frame is below the byte ($10) or at or above it ($11)Ogre Battle - The March of the Black Queen (Super Famicom Development Wiki) · Ogre Battle ROM Map — the wiki's list of the event commands at 0x3894C9=Add Following Value to Chaos FrameRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.The search finds absolute and long operands and direct calls; an indexed or indirect reference, or a call through a pointer, can't be ruled out by it, but none of the routines read here makes one. The tax routine at $00:BB84 adds 150 to the Chaos Frame in its formula for each town's income; that wasn't read further.
The ending routine picks one of 13 endings, numbered 0 to 12 here. On Dragon's Haven it gives 12, whatever else holds. Otherwise it scores the Lord's alignment plus the Chaos Frame plus how many of 15 treasures the army has: BRUNHILD, GRAIL, ARMBAND and the 12 gems from GARNET to TURQUOISE, each counted once, in the stock or held by any character in the army. From 125 up: all 15 with Rauny and Tristan both in the army give 0; failing that, BRUNHILD, GRAIL and ARMBAND give 1 for a male Lord and 2 for a female; failing that, a male Lord gets 3 with Rauny and 5 without, a female Lord 4 with Tristan and 6 without. From 50 to 124: 7 with Tristan, 8 without. Below 50: 9 with Galf in the army; without him, 10 if the Lord's Charisma is 50 or more and 11 if not. ogre-battle-snes/ending
Value: endings 13 · high 125 · low 50 · charisma 50 · treasures 7, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199 · three 7, 186, 187 · bride RAUNY · groom TRISTAN · devil GALF · final stage Temple Shalina · dragon stage Dragon's Haven · dragon ending 12
VerifiedOgre Battle - The March of the Black Queen (USA) ·0x2B90D-0x2B9F7 — $05:B90D-$05:B9F7: the count of items $BA-$C7 and $07 found ($05:B90D); $05:B932: stage $1D gives $0C; else count + $0C1A + $157C (8 bits); $7D (125) or more: all of $BC-$C7, $BA, $BB and $07 ($05:B9CD) with numbers $67 and $63 gives 0; else $BA, $BB, $07 ($05:B9E0) gives 1 or 2 by $7E:F620; else by $7E:F620 0: $67 3, none 5; not 0: $63 4, none 6; $32 (50) or more: $63 7, else 8; below: $7D 9, else $7E:F42C at $32 or more 10, else 11Ogre Battle - The March of the Black Queen (USA) · 0x2BA05-0x2BA19 — $05:BA05-$05:BA19: whether any of the 100 slots' numbers ($07BA) is the one askedOgre Battle - The March of the Black Queen (USA) · 0x2BA49-0x2BA71 — $05:BA49-$05:BA71: whether an item is at an even place of the stock ($157E + 0 to $7C) or held ($7E:F5BC) by a slot whose number isn't 0Ogre Battle - The March of the Black Queen (USA) · 0x2B8D6-0x2B8E4 — $05:B8D6-$05:B8E4: the result stored at $1668 and doubled to pick a script from the 13 words at $07:B950Checked by claude, 2026-11-16 — ran probes/ogre-battle/endings/ending.mjs in MesenCE: 82 calls of the ending step at $05:B8D9 to its store at $1668, with stage, stock, army, alignment, Charisma, Chaos Frame and sex written: scores of 124, 125, 49 and 50 from alignment and meter alone and with treasures tipping them, 124 with all 15 treasures and both characters (ending 7 for both sexes), both sexes, every treasure with both characters, with each alone, with one gem, the last gem or one of the three missing, the three alone, the gems alone, the middle band with and without Tristan and Rauny, the bottom band with Galf and Charisma 0, 49, 50 and 100, treasures held by characters and by a slot numbered 0, a treasure at an odd place and at the stock's last place, Rauny in slot 0 and Galf in slot 99, Dragon's Haven with everything and with nothing, and Antanjyl; all 13 endings were reached and all matchRevised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/ending.mjsItem numbers are ogre-battle-snes-tables/items' ($07 BRUNHILD, $BA GRAIL, $BB ARMBAND, $BC GARNET to $C7 TURQUOISE); character numbers are the names table's (82 + its last 44 entries): $63 (99) TRISTAN, $67 (103) RAUNY, $7D (125) GALF. The sex is new-game's byte at $7E:F620, the Lord's alignment and Charisma character 0's. A treasure held by a slot whose number is 0 (an empty one) doesn't count, nor one at an odd place of the stock, which holds counts. The US booklet gives 12 endings (ogre-battle/endings); the code has 13 scripts, the thirteenth only for Dragon's Haven. Scripts 0 to 4 run with the stage number set to $20 and 5 to 12 with $21 ($05:B8F7). The endings' text wasn't decoded, so they are numbered, not named. $0C1A is the alignment of ogre-battle-snes/alignment-after-kill and $7E:F42C the Charisma of ogre-battle-snes/charisma-after-kill, here character 0's, the Lord's (ogre-battle-snes/chaos-stage-clear's evidence: the Lord's compatibility from character 0's class).
The game runs the ending routine when the stage-clear routine finishes Temple Shalina (stage 24), after a closing sequence, or Dragon's Haven (stage 29), straight away. ogre-battle-snes/ending-trigger
0x2A524-0x2A53B — $05:A524-$05:A53B, the stage-clear routine's end: stage $1D or $18 goes to $05:C776Ogre Battle - The March of the Black Queen (USA) · 0x2C776-0x2C791 — $05:C776-$05:C791: stage $1D straight to the ending step $05:B8D6; else $05:C792 (which sets stage 6 for a while) and $05:A15A firstRevised after a check by a second AI model, 2026-11-16.Checked by a second AI model, 2026-11-16.Stage numbers are ogre-battle-snes-tables/stages': 24 Temple Shalina, 29 Dragon's Haven. What the closing sequence at $05:C792 shows wasn't read.
Each ending's script shows messages from the game's text. Matched by the message numbers in each script, whose commands weren't decoded, ending 0 shows "King Tristan Zenobia", "Queen Rauny Zenobia" and "the Hero and friends headed again for the wilderness". Endings 1 and 2 show "You are now following the Way of Kings", and Prince Fichs Tristoram "a loyal supporter of the new King of Zenobia". Ending 3 shows Tristan saying "I have no need for a kingdom" and "With Rauny taking the throne". Ending 4 shows Tristan saying "Tomorrow is our wedding day". Endings 5 and 6 show Tristan saying "You should become king", the line "My journey is only just beginning", and "long peace under King Tristan". Ending 7 shows "I want you to become the general over my armies" and "As general, you served your king well". Ending 8 shows Tristan saying "we cannot allow you to live" and Lans "Hero! Prepare yourself!". Ending 9 shows Galf saying he will "create an empire of absolute evil". Ending 10 shows "The empire you built" known as the "Black Empire". Ending 11 shows "Liberation Forces led by a young Prince Tristan" that "destroyed you and your army". Ending 12, Dragon's Haven's, shows that the war "was only beginning". ogre-battle-snes/ending-scenes
Value
{
"table": 506192,
"split": 5,
"stages": [
32,
33
],
"scenes": [
[
0,
61,
"King Tristan Zenobia"
],
[
0,
62,
"Queen Rauny Zenobia"
],
[
0,
85,
"the Hero and friends headed again for the wilderness"
],
[
1,
108,
"You are now following the Way of Kings."
],
[
1,
99,
"Prince Fichs Tristoram. Became a loyal supporter of the new King of Zenobia."
],
[
2,
108,
"You are now following the Way of Kings."
],
[
2,
99,
"Prince Fichs Tristoram. Became a loyal supporter of the new King of Zenobia."
],
[
3,
114,
"Tristan:My mother and father have been avenged. I have no need for a kingdom."
],
[
3,
115,
"With Rauny taking the throne"
],
[
4,
139,
"Tristan:Tomorrow is our wedding day."
],
[
5,
5,
"Tristan:You are the people's Hero. You should become king."
],
[
5,
10,
"My journey is only just beginning."
],
[
5,
26,
"enjoyed long peace under King Tristan."
],
[
6,
5,
"Tristan:You are the people's Hero. You should become king."
],
[
6,
10,
"My journey is only just beginning."
],
[
6,
26,
"enjoyed long peace under King Tristan."
],
[
7,
32,
"I want you to become the general over my armies"
],
[
7,
37,
"As general, you served your king well"
],
[
8,
43,
"Tristan:We have nothing against you, but we cannot allow you to live"
],
[
8,
44,
"Lans:Hero! Prepare yourself!"
],
[
9,
62,
"Galf:I intend to take this world, and create an empire of absolute evil!"
],
[
10,
86,
"The empire you built become known and feared as the 'Black Empire'."
],
[
11,
96,
"One year later, a unit of Liberation Forces led by a young Prince Tristan"
],
[
11,
97,
"destroyed you and your army"
],
[
12,
100,
"Dragon's Haven was protected by you"
],
[
12,
101,
"was only beginning"
]
]
}0x2B8DF-0x2B904 — $05:B8DF-$05:B904: the ending's number doubled picks a word from $07:B950; stage number $20 below ending 5 ($0A doubled), else $21; the script run by $05:C132Ogre Battle - The March of the Black Queen (USA) · 0x2C144-0x2C153 — $05:C144-$05:C153: a script byte of $60 or more shows message (byte - $5F) through $05:BF93Ogre Battle - The March of the Black Queen (USA) · 0x2BF93-0x2BFB2 — $05:BF93-$05:BFB2: the message's stage text loaded by $05:9E85Ogre Battle - The March of the Black Queen (USA) · 0x29E85-0x29ECB — $05:9E85-$05:9ECB: a stage's text unpacked to $7E:D028 by $00:9893 (its source from 3 bytes a stage at $05:FEB3), and message n found at the nth wordOgre Battle - The March of the Black Queen (USA) · 0x3B950-0x3BD42 — $07:B950-$07:BD42: the 13 ending scripts' words and the scripts, each ending in $57 $00Revised after a check by a second AI model, 2026-11-16.Probe: probes/ogre-battle/endings/text.mjsThe text was unpacked by the game's own routine in MesenCE (text.mjs) and the messages matched to the scripts by their bytes: a script byte of $60 or more shows a message, but the commands below $60 and their operands weren't read, so a byte counted as a message could be an operand, and the order and conditions inside a script aren't stated. Code $14 in a message (as in "All thanks to" and "With her marriage to") reads as a name filled in at run time, likely the Lord's, so ending 3 may be Rauny's marriage to the Lord and ending 4 Tristan's; not measured. Scripts 1 and 2 differ in one byte (146 bytes into the script), and 5 and 6 read alike; what the difference does wasn't read. Ending 4 is for a female Lord and 3 for a male (ending).