At a glance

Module band
PROT entries 0903..=0966, 64 images
Load base
Slot B, 0x801F69D8 - shared by all 64, so an address needs its owning entry to mean anything
Pager
FUN_8003EC70(arg); TOC index = arg + 0x381
Summon dispatch
FUN_801F1ED4 through table 0x801CF4EC, row id - 0x81
Capture dispatch
FUN_801F2160 through table 0x801CF56C, row = the spell record's sub-id
Stager table
0x801F6734, 64 words, called by move-VM opcode 0x20
Phase byte
ctx+0x279, a module-local space under the battle state
Port
engine-cast (cast_module_ticks, cast_arm_ticks, seru_magic_ticks, cast_module_camera, cast_presentation, cast_fatal_decision); engine-battle-vm (battle_cast_dispatch, battle_cast_cue); spawn pool overlay-images::cast_effect_pool
PROTClassReached byWhat it is
0903..=0913player Seru magicaction ids 0x81..=0x8Bthe eleven base Seru, Gimard to Nova
0914..=0934evolved summons and item castsids 0x8C..=0xA0the high summons; one entry is a null stub with no tick arm
0935..=0966capture classspell sub-id 0x00..=0x1Fmonster specials and boss cinematics

How an action reaches a module

A module is a library, not a program: nothing inside it names its own entry points. Each has two callable routines, a tick and a stager, and three tables in the battle overlay name them - fixed at link time.

Queued action idcaster +0x1DF Summon: row = id - 0x81PROT 903 + row Capture class: row = sub-idPROT 935 + row Pager loads the module into slot B0x801F69D8 Stagertable row → move-VM opcode 0x20 Tick, every framephase machine on ctx+0x279 returns non-zero: busy returns 0: the band exits no timer, no bail-outa gate that never opens parks
The tick is re-entered every frame and the battle advances only when it returns zero. A capture-class row may point at a trampoline inside the module that picks a body by action id; an id the trampoline does not name returns zero and nothing ticks.

While a module is resident, the word at the slot-B base is the module's own first word - a third meaning for an address the corpus maps twice already. It is not an entry address: it is arm 0 of the head jump table where the image has one, and the first instruction where it does not.

Image anatomy

RegionContents
headthe jump table of one switch, 0 to 256 words; the first function's prologue is the first word past it
tickthe phase machine
stagerthe spawn switch
taildata: the spawn and emitter records, plus the module's scratch words

Which switch owns the head table varies - read the bound. In some images the head table is the tick's, in others the stager's, and many head with code and no table. A function in these images is recovered by frame matching: it starts where the stack is lowered and ends at the first return whose delay slot restores the same amount. That recovers 196 framed functions across the band, between one and eight per image. Most images call only the executable and the resident battle overlay, so dumps have to be driven from an address list rather than a call graph.

Some images carry an inherited tail: bytes of the previous, larger module left behind in the window. A call site found there belongs to the neighbour, not to the image being read. The byte-level layout is on the slot-B module layout page.

The module phase machine

A tick body is a dispatcher over its own phase byte. The tick seeds its result with “busy” and returns it, so busy is the default answer; only a terminal arm clears it.

PhaseWhat the arm doesExits
0first tick: typically the opening camera cutadvances to 1
1..=Nstage clips, spawn records, move the camera, roll damage, write statsholds while its gate is closed; then +1, or a literal store that skips arms
in-range terminal armspends the countdown, tests the settle state, clears busy; stores no phasetick returns 0
past the boundthe default arm: nothingreturns busy forever
0xFFthe Done latch of chain-dispatched bodiestick returns 0 after exactly one tick

Tick ABI

Caster
actor_table[ctx+0x13], with the table at 0x801C9370
Victim
actor_table[caster+0x1DD]
Staging
Store a clip id to +0x1DA and bump +0x1DC; victim reactions come from the victim's own reaction map
Counts
ctx[+0] is the party count and ctx[+1] the monster count - two bounds over disjoint halves of the table
Seats
Party 0..2, monsters 3..7 whatever the party size; the summoned creature takes seat 7
Return
Non-zero = busy, 0 = done

The seat-0 hardcode. In the boss-cinematic exemplars every damage apply site loads actor_table[0] instead of the derived victim. Retail never notices, because a boss cinematic's victim is the party's first seat. Any reuse that points the cast at a monster inherits friendly fire from those sites - the main thing a player-caster port of a module has to change.

Damage

Each hit is one call into a roll wrapper with a power baked into the module image, then an apply: clamp the roll against the victim's HP, accumulate into the damage-popup word, write HP back. A cast never reads the move-power table for its magnitude. The capture-class wrappers differ in the stat they read and in the resist ladder: FUN_801DD4B0 reads the INT word (+0x168) and respects the party's elemental resists, FUN_801DD6B4 reads the ATK word (+0x158) and bypasses them (see battle formulas).

Clamp shapeCapCompareCan killNegative roll
A (most sites)live HPunsignedyesreads as huge, rewritten to the whole bar: kills
B (two stagers)HP - 1signedno, leaves 1 HPpasses unclamped: the subtract raises HP
C (seven tick sites)HP - 1unsignednorewritten to HP - 1

These modules write HP with the paired accumulate convention, so they keep the invariant the HP-readout gate depends on.

A few player summons split the roll: Zenoir's sites land a quarter, three quarters and two thirds, Swordie's four slashes and Mushura's run-over hits a quarter each. Their hits are the whole of the cast's damage, so the band folds nothing on top, and the rolls still train the spell and feed the spirit gauge. Theeder's swinging ray is the same: its spell record names one enemy, but every monster the ray crosses takes the module's hit, and Zenoir's splash reaches every monster within reach of the spot its creature lands on.

A cast can owe no damage at all. Call Wave shares PROT 0946 with Big Wave, but its branch never reaches the module's one damage site: arms 1 and 2 step on and arm 3 ends the module once its countdown drains. It is Zeto's warning, not a hit, so the port folds nothing for it; folded as a hit, it had landed on its own target, Zeto himself, and played his knockback cues where retail is silent.

Nighto owes none either: its body holds no damage call, only the kill or confuse fork. A recording of retail's confused Nighto keeps the Gobu Gobu at 76 HP to the end of the cast; the port's fold had dealt it a full Seru hit. The cast's whole spell XP is arm 0's: 4 resisted, 8 confused, 12 killed.

Instant kills and the records page

Five modules kill without a roll: Nighto, Aluru, Kemaro, Ultimate Rave and Jedo. Each adds one to the caster's Monsters Defeated word (record +0x9C) from its own arm, because its victim never plays the knockdown the battle's death arm credits from. Ultimate Rave is the exception that counts twice: its finale stages the knockdown on zero HP, so the death arm credits the same kill again. Nighto and Aluru also write the result line on the bottom message bar, the victim's name followed by the module's own string ("has been annihilated", "is confused"); the port reads the string from the module image and the HUD supplies the name, twin letter included. Nighto's fork takes down the attack name it put up as the line rises, so the result line reads alone. A frame-by-frame recording of Aluru's Done band reads .916 with the line, against .747 without it.

The module owns the camera

Neither band's tick state calls a framing case of the action state machine. The camera is the module's, moved with two kernels: a shot - pitch / yaw / roll, translation and a negated focus handed to the same tween builder the battle camera uses - and drifts, values added straight into the pose globals on every pass an arm runs. A module with no camera arms leaves the held pose alone.

A shot lands each component on its own. The tween builder runs once, on the arm’s pass, and gives every component (pitch, yaw, roll, the three translation words and the focus) a per-vsync increment of ceil(|gap| / frames); the walker adds that times the pass’s frame step and stores the endpoint once the component reaches it. So a shot is not an arrive-together glide: a gap that does not divide by its duration runs on the rounded-up increment and lands early, and a component the shot leaves alone keeps whatever the drifts give it. Vera’s arm-1 shot turns the yaw 1000 units over 0x60 frames at 11 a vsync, which a retail recording of the cast and the summon’s frame-step table both read. The two angle lanes count down their own shortest arc and store the endpoint when the arc runs out, never comparing the live angle, so a turn across the 0x1000 wrap ends after its own arc.

An arm’s step opens on its second pass. The frame driver stores the step a frame’s cost reads for the next frame, and waits the current one out on the step it ran at. A module arm that draws a whole-screen effect therefore runs its first pass on the cheaper step the frames before it left and the clamped step from its second pass on: Nova’s arm 3 runs 1 then 4, Vera’s arm 4 2, 2, 2 then 4. The port pushes each arm’s cost through the same sixteen-frame ring, which put Vera’s arm 4 on retail’s frames (a frame-by-frame recording of the cast scores the arm .943, against .365 when the arm took its step on its first pass) and Ozma’s lightning volleys on retail’s frames, word for word in the rand() stream.

The seat pass ticks the creature. The seat installer builds the creature’s node inside the module’s call, and the actor list reaches the new node later in the same pass, so the creature takes its first animation step, and the clip its seat arm stages, on the pass that seats it. Every summon recording reads that first step on the creature’s first row (Ozma: cursor 8, the next clip staged).

frames since the arm’s pass (0 .. 96) yaw: 11 a vsync, lands at frame 91 dashed: an arrive-together glide pitch: small gap, lands early, holds TR z: no shot gap, the drift moves it
One shot, three lanes: each component walks its own rounded-up increment and lands on its own; a drift only moves what the shot leaves alone, or what has already landed.

A drift under a shot in flight is spent. On a component the shot still moves, the walker overwrites the drift with the endpoint when it lands, so the shot ends where it was aimed. The drift survives on components the shot does not move, and on every component once the shot has landed.

A summon band runs on the module’s countdown. From the actor freeze 0x34 on, the summon states only re-enter the module, and the band lasts as long as one word in the module’s own image: armed as a multiple of the frame scalar and drained by scalar × step every battle frame. A walk arm hands the camera back to the action machine’s framing: Gimard’s walk-in calls the creature framing case every pass and swings the action machine’s own yaw counter, which the machine’s prologue keeps drifting beside it, so the closing shot frames the caster from wherever the walk and the drift left that counter.

The port has one director per module, each read off its own tick’s instructions: it runs on the phase the body is about to run, withholds the body’s pass while an arm’s gate holds, and arms the shot both hosts’ battle camera then walks. A module with no director arms no shot and keeps the held pose.

What is data and what is code

A signature cast is half data. Its particle layer is a set of records in the module's tail - the summon part-record shape, a model selector followed by move-VM bytecode - each handed to the pool spawner from a hardcoded call site with a constant pointer and a scale literal. Its lift, timing and camera are module instructions. Editing the look of a cast can therefore be a data edit; changing who it hits or when is a code edit.

The colour wash behind a cast

Both cast dispatchers end by calling the battle overlay’s colour wash FUN_801F2410 whenever the module has armed its alpha (ctx[+0x27A]), so the wash draws on every frame the module ticks. It is a backdrop: retail links it into the farthest ordering-table bucket, so the whole scene, blended parts included, draws over it. A mode byte picks one of two looks.

mode 0: bands two opaque POLY_G4 per band, A to B and back 0909, 0918, 0922, 0930, 0931, 0946, 0950 modes 1 and 2: scanlines one-line POLY_FT4 strips, sine-offset per line 0917, 0923, 0928, 0929 (Mule), 0963, 0965 both: alpha-scaled, opaque, drawn behind the whole scene
Band mode shades colour bands; the scanline modes resample texture page 0xA8 (VRAM (512, 0)) through CLUT (0, 488), one 256-texel row per screen line wrapped across the 320-pixel line. Mode 2 mirrors the second strip.

Both modes are ported whole in render-kernels::cast_colour_wash (scanline_prims for the textured one). Both hosts composite screen primitives after their 3D pass, so they draw the wash as a far-plane primitive ahead of the scene instead. The scanline mode is Mule’s underwater backdrop, without which the creature’s whole performance plays over black. From its ninth arm on, Mule’s module also ends every pass by pointing the backdrop’s sample origin at the live camera (the start column from the yaw and the sideways eye offset, the start row from the pitch and the eye height), so the backdrop pans as the shots turn. Two per-line offset arrays the emitter also adds have no writer anywhere on the disc, so the port reads them as zero.

A module's ramp of the wash can sit behind a test of its own countdown. Kemaro's dive arm fades the wash out only over the last eighth of its countdown, so retail plays the dive over the full blue wash; the decoder that reads the modules' presentation calls off the disc folds that test, and the port runs the ramp only on the passes the countdown allows. Run on every pass, the wash is gone a few frames into the arm and Kemaro's sky draws dark and warm where retail's is lavender.

A retail battle frame normally starts from an opaque black rect in the farthest bucket. A second, subtractive wash (FUN_8004695C, drained by FUN_80046978) takes its place on the frames an arm arms it: those arms draw additive layers with no opaque stage under them, so the frame builds on the frames before it and the wash takes some of it back. The first frame no arm arms it clears, which is how Ozma’s arm 25 rays fade on black. The native target keeps its frame on those frames, on a ring of eight; a target that clears gets no quad, because there it could only darken the frame’s own pixels.

An arm can start the wash’s colour before its first instruction: a conditional branch’s delay slot runs on the way into the arm it selects. Thunder Storm enters arm 4 through bne v0,zero,0x801F7048 with lui a0,0x20 in the slot, then ORs 0x2020 into a0 and arms 0x202020. Read from the arm alone the colour was unknown and the port cleared each frame of the arm; with it, each pass’s ribbons land on the passes before and pile up to the white cloud retail shows, and the arm reads .84 on the three Gilium films against .58.

Thunder Storm is also where the camera reaches the dice. Each streak ribbon draws seven rand() words for its bottom segment and four for every segment it chains up the screen, so how many words a pass draws depends on where the ribbon's anchor projects. The hit at the end of arm 5 rolls on what is left. The ring's word gains the frame step once a battle frame, its sparks sit at 0x80 - rand() % 257, and the hit comes after the pass's scatter and ribbons. With all three matched to the disassembly, the port's ribbon calls agree with a retail trace call for call, and on the recording's own frame steps and rand() words both Gilium recordings deal retail’s exact damage.

Blazing Slash’s damage number starts low and climbs because the camera is so close. A trace of the numeral shows its first draw as a square seven pixels wide, then two draws where the square is so near the eye that the renderer pins it to a fixed 32-pixel box at its top-left corner, and only then the usual climb to the top of the screen. The port now has that near-camera rule.

Every battle fade writes its template into one shared block at 0x801C9070 before the spawner reads it, and nothing clears the block between fades. A word an arm does not store therefore keeps the last writer’s value. Gola Gola’s closing white flash stores no end blue, so it fades through red to the dark purple its earlier held fade left in the block. The port keeps the block too, and fills such a word from it.

What the port runs

Both hosts run the band through one seam. The spawn pool indexes all 64 entries and parses each image's spawn records off the user's disc, on a module's first read. The tick bodies are ported one function per address: dispatch bound, simulation-state writes, the damage step (baked power, wrapper, clamp shape, accumulate, HP write, reaction stage) and the phase advance. Left out, per function: the other GPU-packet arms (Theeder's, Swordie's, Slippery's rain, Aluru's light bands and Cross Beam's beam are drawn), the camera arms of modules with no director, and the per-arm frame gating of bodies with no director or countdown table. Death Game's roulette is ported but for its fourth card's heal flash: the pad, the timer, the pick, its two sprites and the labels under the cards.

Death Game (action 0x76, PROT 0957) deals four cards, shuffles them in thirteen swaps and lets the player pick one on the pad, even on the monster's turn; the timer picks for them after five seconds. Each card's own script turns it over through the module's stager. The card decides the result: the victim's whole bar, the caster's, a quarter of each, or a quarter of each back. Two of the Pueras deal a stacked table. While the cards lie face up, two lines under each say what it does - who falls, or what both sides take - centred on the card and read off the module's own strings. The module also takes the move's name label down itself, on the pass that draws the faces, and Evil Seru Magic does the same on its tenth arm; from there the HUD leaves the label off for the rest of the cast.

Directors

A director is the module's arms as the port runs them: per arm, its gate, its shots and drifts, its captions and its seat writes, read off that module's disassembly. There are three kinds, depending on how much of the body the port has.

KindModulesWhat it owns
Body-paced0910..0913The tick body is ported and holds its own arms; the director runs ahead of it, never holds, and lands each arm's camera work on the first tick of the arm the pass moved to.
Whole-chainthe summon creatures whose bodies are not ported (Gola Gola through Ozma)The director is the phase chain: it drains the module's countdown by the module's own product, holds while the gate holds, stores each literal phase, and folds the cast's outcome once the phase passes the hit arm.
Capturekeyed on module and body, such as Thunder Storm, Steal, Void Accessories, Curse All, Power Up, Stone Circle, Earthquake, Element Change, Scythe Wind, V-WindhashRuns in state 0x70 against a held camera; it moves the camera only where the module does, and some own the phase outright.

A capture body with no camera port is the commonest difference a frame-by-frame comparison finds: such a body runs its arms in a tick and draws its cell's whole record set at once. A pass is a battle frame, not a tick. A body re-enters once per VSync(step) while the engine ticks the module every display tick, so a seat made once per pass goes on the tick that opens a battle frame, and an arm's hand-over waits for the next one. Seated every tick, Ultra Charge's arm 1 draws about four times the rays its capture holds.

The pass that leaves an arm still moves the whole step. An arm's every-pass moves of the seats and the focus come ahead of its countdown test, scaled by the frame step, so the pass that finishes the arm moves as far as any other. The engine's module ticks stop on the tick that hands over; they now repeat the arm's held moves for the rest of that pass, as they already repeated its camera drift. Gi Delilas' three runs in Blazing Slash had come up some 330 units short of retail's end of the run.

Plasma Strike's close waits for Lu's charge to end. The burst arm stages the victim's knockdown with the commit bump and Lu's closing clip without one, so Lu plays her charge clip out to its last frame and only then turns to the close. Bumped, the close cut in at the burst and Lu stood in another pose through the next arm's shot.

The burst raises its number. Behind its damage roll the burst arm pushes the roll as a popup over the victim and clears the readout flag, which a later arm raises as it passes. Retail's film shows the burst's number over Noa through the column's shot and the DAMAGE cluster after it; the engine had landed the damage with no number. Lu's seven flurry hits draw nothing in retail because Noa's Spirit stance blocks all seven; the engine rolls the same block inputs on its own random words and sometimes lets one through.

A pass drifts, then cuts. Megaton Press and Plasma Strike move the camera ahead of each arm's countdown test and make the arm's cut after it, so a cut lands on its own endpoint. The engine drifted the rest of a handing-over pass after the cut, and each of Plasma Strike's climbing cuts opened a step's drift past retail's; the offset rode into the column's shot. Megaton Press's director had the same order backwards on its sinking-victim cut.

Che jumps at rate 4. Megaton Press's jump arm stores Che's animation rate 2 on every pass and queues her next clip on the last; the clip commit, which runs after the module in the same frame, lifts any rate but 8 to 4. The engine committed the clip first and stored the 2 over the result, so Che jumped at half pace, low and near the camera.

Seating per arm

A module whose arms are not ported has its whole record set seated at the caster on the band's first 0x70 tick. The bodies with ported spawn calls seat them on the passes their arms make them, which also keeps a cell's other bodies' records off the screen. Among them: Evil Seru Magic, Mystic Circle, Ultra Charge, Mystic Shield, Guilty Cross, Call Wave / Big Wave, Megaton Press, Plasma Strike and Final Crisis. Spikefish seats its records per arm the same way on the summon side.

Kiss of Death (PROT 0955) is one of them. Its arm 0 seats the lips that fill the frame over black, hides every standing seat and shows the caster again; arms 1 and 2 seat a burst record on every other pass and keep the handles, and arm 2's last pass halts them all; arm 1's last pass tints the caster a soft red. Without those writes the whole record set went in on the band's first tick and the camera cut to a victim who was still on screen: a frame-by-frame film of the cast read .449 against retail, and .815 with them. Arm 3’s cut then swaps the two: it shows the victim and hides the caster, so arms 4 and 5 frame the victim alone, and the closing arm shows every living seat again. The body draws one random number, on arm 4’s roll, and the “Paralyzed” message bar belongs to the miss leg only; a hit branches past it. With those the film reads .848. Stone Circle's arms 1 and 3 halt the whole part pool on their pass, so the charge and its column are gone once the stones rise.

Scythe Wind turns its caster on arm 2. The arm turns Nova onto the victim’s body point, and every later shot’s yaw subtracts that turned heading; arm 4’s hit turns the victim away from Nova. Left on the walk’s heading, the closing shot stood some 20 units of yaw off retail’s.

The last arm drains twice a pass. Bloody Horns’ arm 6, Scythe Wind’s arm 5 and Rolling Flare’s arm 4 each take scalar × step off their countdown before the shot, which aims on the drained word, and again after it while the word is still positive; a recording of Scythe Wind shows the arm’s yaw falling at twice a single drain’s rate. All three readings are from the module images’ instructions, checked against retail films.

A burning body needs its red, and every draw of it burns. A cast sets a struck body’s impact selector +0x21F, and the anim decode sheds fire off it only once the body’s red lane reaches 0xB0: Rolling Flare (PROT 0950) also stores the soft-red tint state +0x21C = 7 through the end of its arm 3 and clears it on the pass, and Element Change’s strikes (PROT 0964) give the standing-in creature its element’s tint state beside the selector. The burn loop runs inside the draw callback, which the after-image walk calls for every ghost, so a body with two ghosts sheds three times the puffs. Each puff draws on the game’s one rand() stream, which is how a recording’s draw count names a missing burn: Gola Gola’s Rolling Flare and Gaza’s Astral Wave now draw what retail draws, frame for frame.

Stagers

A part's move-VM op 0x20 reaches its module's stager through the table at 0x801F6734, and the stager seats further parts on the caller. So a charge record whose whole program is that call draws nothing itself: Power Up's ground glow and Stone Circle's column come from their stagers, not from the record the arm seats. The port runs the part-called stagers on the summon side and on the capture side, all but two enemy cells' (PROT 0950 and 0963), whose parts' calls are still dropped. Blazing Slash shows why the pacing matters: the flames under the caster are its stager's, paced by two emitters, one seating a rising cone pair eleven frames apart so four pairs stand at staggered heights, the other seating the flame rows once and then the ring alone. Seated whole at once, as the port first did, one cone pair and the rows grew unchecked through the cast. A call runs as soon as the frame's part tick ends, so what it seats is born on its caller's frame, as in retail, where the call runs inside the caller's own step: Element Change's first rays appear on the same frame as their emitter, which arm 0 seats on the crystal's middle (the caster's display point, raised by its pose) rather than on the floor.

Barra's victim rides the creature's flight through the same kind of per-arm writes: taken off its seat onto the stage origin, carried up on the creature's arc, turned round a circle hanging beneath it, both tipped nose-down into the dive and tinted green, hung high, dropped to the ground and put back on its seat once the camera has framed it there. The tipping is a pitch the battle bodies carry on both hosts.

Two more things the modules do themselves. Gizam hides its creature behind both a hidden flag and a cleared colour, so while its bubbles gather the creature is neither drawn nor animated; with the flag alone the port drew it standing at the caster through the whole build-up. Theeder prints its own captions: the spell name as the creature arrives, cleared before the attack, then the attack name once the creature has finished its rise, which stays up until the laser retracts; the port showed none.

Barra's sky slides. Barra's module arms the scanline backdrop as its creature climbs into the clouds, and from then on two words of its own move the backdrop's sample origin a little every frame: down the page and back along it while the clouds rush past, back up for the dive, and down again as the backdrop fades. The tick ends every frame by turning the two words into the backdrop's start column and start row, which the port now does too; drawn from the page's corner throughout, its sky stood still. The same module takes the ground away only halfway through the creature's climb, where the port used to drop it at the climb's start. The white flashes while the clouds rush past are the clouds themselves: four cloud sprites, each a quarter of the cloud texture, are launched at the camera in turn, one a frame, so the frame whitens once every four frames of the game, and where the flashes fall follows the frame pacing, not a random draw.

Some shots frame where the body is drawn, not where it stands. A battle body has two positions: the seat it stands on, which its walks and turns use, and the point its pose has carried it to, which its clip moves as it plays. A few summon shots aim at the second. Barra's last shot frames its victim where the knockdown has laid it, a long way from its seat; aimed at the seat, the camera stood inside the fallen body. Aluru's damage shot, Swordie's closing shots and Zenoir's shots of its strike do the same, and the port now follows each.

Kemaro's victim goes dark. After Kemaro strikes, its victim is drawn as a near-black silhouette through the rest of the cast. The colour comes from the same tint the target cursor uses to dim the monsters it does not point at, and both hosts now draw that tint as retail does, black rather than the lighter dim they used before. The shots of the strike aim a little above the floor, at the height of the effect the cast stood beside the victim. The long streak that crosses the screen as Kemaro strikes is a spear the cast stands beside the creature and then walks, a step each frame, down the line to its victim, resets and walks again, before setting it at the victim's height. The port did not walk it, so its streak was a stub by the creature; now the spear travels as it does in retail, and the last two arms of the cast read close to the recording frame for frame.

Two discs nobody sees. Beside the spear the cast places two flat discs at the victim, turned to the camera's own angle so that they sit far down its line of sight, past the farthest depth the PlayStation's geometry hardware can hold. The console files anything that far into the very last slot of its draw list, which it paints first; the cast's sky gradient was filed into the same slot earlier and so is painted on top, hiding the discs completely. A capture of retail's draw list painted with and without them gives the same picture. The port drew them over the sky as a large disc; it now leaves out whatever would land in that slot while the sky gradient covers it, on both hosts.

V-Windhash's trail sits on the camera's aim. The Ghost Knight's blade leaves a trail of glowing sheets, a new pair each frame. Retail works out the frame's camera aim and puts the pair exactly there. The port runs a frame as several small steps and had placed the pair after the first of them, a step behind the camera, so the older sheets swung round past the camera and painted broad orange fans across the screen where retail shows a narrow V. Placed from the frame's last step, the trail matches retail's draw list, and the swing reads far closer on all three of the cast's films.

Neo Windhash rolls its Curse before its damage. The stronger swing has a one-in-four chance to Curse its victim, and retail rolls that chance just before it rolls the hit. The port skipped the Curse roll, so the damage roll took the random number retail spends on the Curse: on the Ghost Knight's recording the hit landed 807 where retail's lands 771. With the roll in place the port draws the same numbers as retail through the whole cast and lands 771.

Some summon motions step once a frame, not once a tick. Nova’s whirlwind turns its victim, and its camera round it, by a fixed amount each time the game runs a frame, however long that frame took; so does the victim’s spin as it falls. When the battle slows down, retail runs fewer, longer frames and the turn is smaller. The port now takes each turn once per battle frame, and on a film paced to retail’s own frames its camera follows the recording turn for turn. A tipped or banked body, like Kemaro’s frozen victim or Mushura’s banking creature, casts no ground shadow in retail, and now casts none in the port.

Terra’s whirl and orbit are a frame’s too. Terra lifts the parts of its whirlwind, and swings the monster row round in its orbit, by a step each time the game runs a frame. The port had spread both over every tick of the frame, which lost part of a step on the frame an arm hands over and turned the orbit several times too far. Now each runs once a frame: the whirl rises to the heights a recording of retail holds part for part, and the row passes through the very points it does in retail. A frame that moves the camera and then cuts to a new shot keeps the cut where it lands; the port had added the rest of the frame’s camera drift after the cut, which left Terra’s later shots a little off and its film on retail’s frames well below the others.

Mushura’s victim steps back before the stampede. As the creature falls, Mushura pushes its victim a sixth of its body’s width further away and turns it to face straight down the lane, and the reaction to the first hit slides it back along that line. The port did neither, so the victim stopped short, and when the creature’s rampage began it reached the victim at once and knocked it the other way.

Puera's yellow edge glow is a ring locked to the camera so close to the eye that only the GTE's divide cap brings it onto the screen, which the port's PSX mode applies in battle as well as on the field. Its ring of twenty-three spikes is re-seated as crystals that rain down round the monster, and the crystals draw front faces only, as every battle effect mesh whose colour word lacks the double-sided bit does: both-sided, their additive walls stacked to white instead of pink.

Mule's monster-row visibility rides the same per-arm writes: one arm shows every living monster on each of its passes, two hide the row, a later one shows it again, and the hit arm shows the monsters it strikes. Its early arms also move the camera anchor under the opening cut, so the director re-lands that cut on the moved anchor each pass; without that the row fills the screen where retail frames it small in the distance.

Every summon camera is checked against the module itself. The retail kernel differential runs each summon image off your disc, arm by arm from its first to its last, and compares every pass with the director: whether it holds, where the camera is headed and how long its tween runs, and the controller rumble. It is how several writes a reading of the arms missed were found. Slippery’s closing shot frames the whole monster row, its depth twice the row’s spread, where the port framed one monster at half depth. Jedo lifts a camera left below the floor line as it kills the row. Barra puts the camera back on its victim’s seat as it lets go. Palma’s sweep stores the camera on its last pass too, its creature close-up keeps the offset of the shot before it, and a second jolt of the controller was missing. Mushura turns its creature before framing it on each pass of its rampage, so the camera no longer trails it by a frame. Ozma’s last framing aims at a randomly placed part, its spray’s third point, and the port now aims there too; through Ozma’s closing arms the camera had stood about ninety units to one side of retail’s. One difference stays: Palma’s sweep also rolls the camera, which the battle camera cannot.

Clocks the band waits on

Two pieces of retail timing and colour sit outside the tick bodies. A summon's opening arms can wait on the side-band token, the applier stage ctx[+0x276] that stays up while the cast's slots of summon.dat stream off the disc, about 30 vsyncs a slot. The port's side-band is already in memory, so it keeps the token up for that CD time alone, and a director holds on the module's poll arm while it is up, so the opening waits last as long as retail's. The poll holds the arm's way out and not what runs ahead of it: Barra's arm 1 finishes its rise first. And a part can recolour VRAM: Mule's underwater backdrop cycles its colours because one of its parts is a CLUT-cell cycler that captures the backdrop's palette row and swings its hue every frame. Battle parts run that recolour the way field ambient parts do. A module also keeps the handles of the parts and fades it spawns in arrays of its own and later kills them, sometimes a whole array in one loop; the port follows those kills, which is what clears Gilium’s screen after its white-out.

Cort's Mystic Shield is the one module effect retail keeps alive across actions: two records out of the game executable itself, a camera-facing textured sphere and the scroller that animates its texture, seated on Cort by the shield's arm 4 and posed every frame by the actor pass until he is worn to half HP, when a burst replaces it. The port seats, poses and breaks it the same way, in a scene of its own that outlives the cast. The sphere and its scroller are list nodes of the battle pass, so they tick once a battle frame for as many vsyncs as the frame spans; ticked once a vsync, the scroller rolled the sphere’s colour bands a third as fast and the sphere stood blue where retail’s is purple.

Smaller per-module facts the films pinned.

The cast's voice and the CD drive

A cast's spoken line is CD-XA audio streamed off the disc, not a sample in sound RAM, so a module has to point the drive at the voice's file before it can play it. A summon module does that over two arms: a seek arm issues the seek (FUN_8003EAE4; Orb's at 0x801F6B98) and a later poll arm asks the drive whether it is done (CdSync(1) through FUN_8003F2B8(1), 0x801F6BB8), returning busy until it is. Only then does the arm call the head cue that starts the line.

The drive is rarely idle when the seek arm comes round. The battle's seek-ahead selector has just sent it to the caster's fanfare file, and the module's seek command blocks the whole game loop until that earlier seek ends. So a summon's voice waits on two seeks, the first with the game frozen and the second with frames running under the poll.

CD drive seek: the fanfare file seek: the voice file streaming the voice Module arms seek arm: the seek blocks poll arm: busy, holds head cue: the voice starts Game frame frozen; the duck holds frames run; the summon's duck ramps under the voice 0 27 56 vsyncs from the seek arm
Orb's summon, stepped frame by frame from orb_summon_mid_cast with the module phase logged beside mednafen's drive (scripts/mednafen/drive-timeline.py): the seek arm holds 27 vsyncs behind the selector's seek with the audio level frozen at 211, then the voice file's seek runs 29 vsyncs under the poll arm. Every seek of the five summon states fits one law: 0.3 s, plus one second per full-disc traverse, plus two vsyncs of logical seek.

The level lifts to full. A level change under a sounding clip resets the CD input's serial volume to full scale before the sequence volumes are re-set, so a summon's duck that is still ramping when its voice starts lifts the rest of the line to full CD volume. The frozen frames are what leave Orb's duck still ramping.

In the port. battle_cd_drive runs the drive on that seek law, every vsync: the selector's seek once the side-band token drops (retail's selector waits for it, and the seek arm polls the token before its own seek, so the arm first waits on the token and only then freezes behind the selector's seek), the module's own on its seek arm, both arms held while it is busy, the head cue skipped on a busy pass, and the audio frame not stepped while the seek arm blocks. The seek and poll arms are read off each image; the summon images 0903..0934 carry the pair and no capture module does. Measured against mednafen's audio output (real-PCM cast channel), every summon's voice lands within a quarter second of retail's, at retail's level, where they had started up to a second early; Gilium's cast, whose state stands inside that freeze, went from scoring 0.23 to 0.85 once the order was right.

Which line a module speaks. The port finds a module's voice by scanning its tick for the first head-cue call laid out. Two single-body modules fork their arm 0 on the caster's latch ahead of that call, so the first call is not always the one that runs: PROT 0946 lays out Big Wave's line first, while Call Wave calls 0x150 (XA11 channel 0), and PROT 0953 lays out Terio Punch's punch first, while the charge calls 0x159. The port resolves both forks.

See also

The full write-up - the three tables row by row, the capture trampolines, inherited tails, the routine catalogue, per-module notes, the cast voice cues and measured arm timing - is in docs/subsystems/cast-module.md.

Reference A cast, end to end Action state machine Battle formulas Stage and camera Move-table VM Slot-B module layout Summon / readef slots Spell table Monster animation Magic browser