How it works · write-up
Main CPU RAM map
Working notes, rendered as they are: they were written while building the game, so expect ROM addresses, register names and references to source files that are not published.
This is an address reference for Commando (World), matching the project's
MAME 0.287 baseline. The main Z80 sees 12 KiB of RAM at $D000–$FFFF:
4 KiB of tile video RAM followed by 8 KiB of work RAM, which includes the sprite
output table. Every address belongs to a region below; individual fields are
named where the audited source establishes their role. Unknown does not mean
unused.
Architecture · Interactive address explorer · Address regions · Absolute fields · Record layouts · Mode overlays · Evidence and limits
The interactive explorer reads the tables in this document.
Search an address such as $E613, select a 16-byte map cell, then inspect its
individual bytes. Switch the interpretation to name entry to see its overlays.
This is a static source reference, not a live memory viewer.
Reading the map
Addresses, lengths prefixed with $, and record offsets are hexadecimal.
Counts and the Bytes column are decimal. Ranges include both endpoints.
For repeated records, address = base + slot × stride + offset, with slots
numbered from zero. Thus $E613 is core slot 0's subtype, and $E633 is core
slot 1's subtype. A sprite output slot is not an actor slot.
BE means most significant byte first; LE means least significant byte first. Although Z80 word instructions use LE, many game records deliberately store coordinate and script words in BE order. An 8.8 fixed-point coordinate has an integer byte and a fraction in units of 1/256 pixel. Packed BCD stores two decimal digits per byte. In the score records one stored unit represents ten displayed points.
The TypeScript owners below are paths within FirstSectionGame or its
ArcadeCommandContext, abbreviated game and commands.
The production game uses named state and separate buffers; it does not keep
this address space as one mutable RAM array. The native snapshot/replay
adapters translate addresses at the verification boundary. A source address in
an enum or pointer is often provenance, not an index into live production RAM.
Allocation, reuse and aliasing
The audited game code uses fixed-address storage and first-free record
scans, rather than a general variable-size heap or a malloc/free service.
An actor allocation selects an existing slot, usually by finding state byte
zero. Release changes ownership/state; it need not erase the remaining bytes.
A later initializer writes only its own fields. Source records do not compact
when a neighbour is removed.
There is significant, purposeful reuse. Name entry overlays gameplay player
and projectile storage; scene-specific renderers reuse the same sprite output
slots; subtype layouts reinterpret offsets within actor records. These are
different from adjacent fields merely holding similar values. For example,
shadow progress at $E05B, working progress at $EF00, and the saved checkpoint
at $EDA2 are separate state with different write phases and encodings.
The fixed storage counts do not prove every source allocator is bounded:
- Scenery's first-free scan at
$A35Chas no explicit end guard. The current implementation owns 18 records and rejects exhaustion with an error. The ordinary update/display pass scans nine; contact passes have their own bounds. Eighteen is the modeled storage count, not proof that native overflow is impossible. - Name-entry letter allocation at
$9B9Elikewise has no end guard. Ten four-byte records are normally updated at$9C03. The model initially retains an eleventh slot because$E2E8can be touched after that pass, and can extend the effect list for a later free slot. Eleven is not a proved native overflow limit. - JavaScript objects, arrays, snapshots and presentation projections use normal browser allocation and garbage collection. The absence of an original general-purpose heap does not make the TypeScript implementation allocation-free.
See capacity and allocator rules for admission thresholds, restricted child allocations and same-pass births. Linked actors and subtype collections represent existing source slots; they do not add RAM pools. The shared blast uses globals and sprite output rather than a second grenade actor pool.
Address regions
Each row is exclusive of every other row. Together they cover all 12,288 CPU-visible RAM bytes. Category names are also the explorer's colour key. A known record block can still contain retained or unidentified fields.
| Range | Bytes | Category | Purpose | Implementation |
|---|---|---|---|---|
$D000–$D3FF |
1024 | video | Foreground codes | commands.foreground.video |
$D400–$D7FF |
1024 | video | Foreground attributes | commands.foreground.color |
$D800–$DBFF |
1024 | video | Background codes | commands.background.output.video |
$DC00–$DFFF |
1024 | video | Background attributes | commands.background.output.color |
$E000–$E0FF |
256 | globals | Session, IRQ, controllers and difficulty | Named fields; see absolute fields |
$E100–$E11F |
32 | actors | Player control; name-entry overlay | commands.playerRuntime.player / commands.nameEntry |
$E120–$E13F |
32 | unknown | Role not established in this map | Do not assume unused |
$E140–$E15F |
32 | actors | Player grenade control | commands.playerRuntime.grenade |
$E160–$E17F |
32 | actors | Cinematic vehicle controller | commands.cinematic.vehicle |
$E180–$E1FF |
128 | unknown | Role not established in this map | Do not assume unused |
$E200–$E2BF |
192 | actors | Six player projectiles; name-entry overlay | commands.projectiles.records[0..5] |
$E2C0–$E3BF |
256 | actors | Eight enemy projectiles; name-entry overlay | commands.projectiles.records[6..13] |
$E3C0–$E41F |
96 | unknown | Role not established in this map | Do not assume unused |
$E420–$E43F |
32 | actors | Cinematic deployment / pulse controller | commands.cinematic.pulse |
$E440–$E4FF |
192 | unknown | Role not established in this map | Do not assume unused |
$E500–$E5FF |
256 | actors | Eight scripted actor slots | game.scriptedPool + subtype owners / residue |
$E600–$E6FF |
256 | actors | Eight core enemy slots | game.corePool + subtype owners / residue |
$E700–$E7FF |
256 | unknown | No ninth core slot; incidental E702 write | Bounded name-entry cleanup write at E702; other roles not established |
$E800–$E91F |
288 | scenery | Eighteen scenery storage records | commands.scenery.slots; display pass scans nine |
$E920–$ECFF |
992 | unknown | Role not established in this map | Do not assume free heap space |
$ED00–$ED3F |
64 | commands | Main command ring: 32 pairs | commands.queue.bytes |
$ED40–$ED5F |
32 | commands | Sound command ring: 32 bytes | commands.irq.soundQueue |
$ED60–$ED7F |
32 | unknown | Role not established in this map | Do not assume unused |
$ED80–$ED89 |
10 | commands | Queue pointers and current command | commands.queue / commands.irq |
$ED8A–$ED9F |
22 | unknown | Role not established in this map | Do not assume unused |
$EDA0–$EDBF |
32 | session | Active player bank | playerRuntime + hud + shared checkpoint |
$EDC0–$EDDF |
32 | session | Saved player 1 bank | commands.hud.savedPlayers[0] |
$EDE0–$EDFF |
32 | session | Saved player 2 bank | commands.hud.savedPlayers[1] |
$EE00–$EE5A |
91 | session | Seven high-score rows, 13 bytes each | commands.hud.highScores |
$EE5B–$EE81 |
39 | session | High-score end marker and cold-copy tail | hud.tableEndMarker / coldCopyTailEE5C |
$EE82–$EE90 |
15 | unknown | Role not established in this map | Do not assume unused |
$EE91–$EEA3 |
19 | session | Two scores, top score and entered name | commands.hud |
$EEA4–$EEBF |
28 | unknown | Role not established in this map | Do not assume unused |
$EEC0–$EEC9 |
10 | session | Ten RNG shift-register bytes | commands.scene.randomRegisters |
$EECA–$EEFF |
54 | unknown | Role not established in this map | Do not assume unused |
$EF00–$EF13 |
20 | background | Background streaming work record | commands.background.work |
$EF14–$EFFF |
236 | stack | Call-stack vicinity; lower bound not proved | Original SP starts at F000 and pushes toward lower addresses |
$F000–$F7FF |
2048 | background | Expanded background tile data | commands.background.expandedTiles |
$F800–$FBFF |
1024 | background | Live collision category / mirror ring | commands.background.collision |
$FC00–$FDFF |
512 | unknown | Role not established in this map | Not executable code merely because the listing decodes data as calls |
$FE00–$FF7F |
384 | sprites | Ninety-six four-byte sprite records; final exit also reads its subset as state | commands.spriteOutput; final-exit source owner at FED8–FF27 |
$FF80–$FFFF |
128 | unknown | RAM outside the 96 sprite records | Do not extend sprite capacity to the end of RAM |
The original hardware map and the additional video-board sprite buffering are
described in the hardware chapter.
The sprite table above is inside the 8 KiB work RAM; it is not an additional
384-byte main-CPU allocation. Main ROM ($0000–$BFFF), input/output ports
($C000 and following), palette PROMs and the audio CPU's RAM are outside this map.
Stack and unresolved ranges
Boot at $004A sets SP to $F000; pushes write toward lower addresses, so an
initial word push occupies $EFFE–$EFFF, not $F000–$F001. The source clears
$E000–$FFFF at $0060–$006B. Native domain comparisons exclude the
$EF14–$EFFF stack vicinity. That comparison boundary is not a proved
stack reservation or measured high-water mark. Its exact stack use and lower
bound remain unresolved.
Unidentified ranges such as $E920–$ECFF, $FC00–$FDFF and $FF80–$FFFF
are not labelled heap space, executable RAM or extra sprite slots.
A disassembler decoding a table word as CALL $FC07 is not evidence that
$FC07 contains code. Source-role uncertainty is explicit here rather than
filled with inferred uses.
Absolute fields
These entries describe identified globals outside the repeated layouts.
Addresses omitted within $E000–$E0FF remain unidentified in this map.
Evidence filenames refer to the linked source index.
A snapshot codec establishes representation at its selected boundary; it does
not independently establish all readers, lifetimes or gameplay effects.
| Address | Field | Owner or meaning | Evidence |
|---|---|---|---|
$E000 |
Main dispatch mode | irq.mainStateE000 | frame-irq.ts; main-scene.ts |
$E001 |
Gameplay / scene phase | scene.phase | session-snapshot.ts; session-state.ts |
$E002 |
Global tick byte | irq.tickE002 | frame-irq.ts |
$E003–$E005 |
Sampled system / P1 / P2 pressed masks | irq.systemE003 / player1E004 / player2E005; one byte each | frame-irq.ts |
$E006–$E007 |
Decoded DIP banks 1 / 2 | dipSwitches; complemented and bit-reversed from hardware ports | dip-switches.ts |
$E008–$E00D |
Player-bank 1 six input histories | irq.historyE008; right/left/down/up/fire/grenade | frame-irq.ts |
$E010–$E015 |
Player-bank 2 six input histories | irq.historyE010; bank routing depends on cabinet/flip | frame-irq.ts |
$E017 |
Name-entry completion flag | nameEntry.complete | session-snapshot.ts |
$E018 |
Coin processing disabled | irq.coinDisabledE018 | frame-irq.ts |
$E019 |
Selected player | irq.activePlayerE019 | frame-irq.ts; player-bank.ts |
$E01A |
Two-player session flag | scene.twoPlayers | session-snapshot.ts |
$E020–$E023 |
Coin awards A/B then divisors A/B | irq.coinAwardE020/E021 and coinDivisorE022/E023; one byte each | cold-start.ts |
$E024 |
Configured starting lives | scene.livesSetting | session-snapshot.ts; typed owners |
$E025 |
Upright cabinet setting | scene.uprightSetting | session-snapshot.ts; typed owners |
$E026 |
First bonus-life policy value | hud.bonusFirst | session-snapshot.ts; typed owners |
$E027 |
Starting area setting | scene.areaSetting | session-snapshot.ts; typed owners |
$E028 |
Repeating bonus-life policy value | hud.bonusRepeat | session-snapshot.ts; typed owners |
$E029 |
Shared-stick / cabinet control routing | irq.cabinetE029 | session-snapshot.ts; typed owners |
$E02A |
Demo-sound disabled setting | scene.demoSoundDisabledE02A | session-snapshot.ts; typed owners |
$E02C |
Difficulty setting | scene.difficultySetting | session-snapshot.ts; typed owners |
$E030 |
BCD credits | irq.creditsE030 | session-snapshot.ts; typed owners |
$E031 |
Coin A fractional credit | irq.coinFractionE031 | session-snapshot.ts; typed owners |
$E032 |
Coin B fractional credit | irq.coinFractionE032 | session-snapshot.ts; typed owners |
$E033 |
Coin A history | irq.coinHistoryE033 | session-snapshot.ts; typed owners |
$E034 |
Coin B history | irq.coinHistoryE034 | session-snapshot.ts; typed owners |
$E035 |
Coin A pulse timer | irq.coinTimerE035 | session-snapshot.ts; typed owners |
$E036 |
Coin A pending pulses | irq.coinPendingE036 | session-snapshot.ts; typed owners |
$E037 |
Coin B pulse timer | irq.coinTimerE037 | session-snapshot.ts; typed owners |
$E038 |
Coin B pending pulses | irq.coinPendingE038 | session-snapshot.ts; typed owners |
$E039 |
Player flip selection | irq.playerFlipE039 | session-snapshot.ts; typed owners |
$E03A |
Pending sound-latch value | irq.soundE03A | session-snapshot.ts; typed owners |
$E03B |
Retained C804 control output | irq.outputE03B | session-snapshot.ts; typed owners |
$E044 |
Service sound selection | service.soundSelectorE044 | session-snapshot.ts; typed owners |
$E045 |
Leading-digit/significance scratch | hud.significant | session-snapshot.ts; typed owners |
$E046 |
Digit writer remaining count | hud.digitsRemaining | session-snapshot.ts; typed owners |
$E047 |
Scene timer | scene.timer | session-snapshot.ts; typed owners |
$E048 |
Diagnostic image/code selection | SourceInspectionSelection.code_E048; isolated inspection entry | source-display-inspection.ts; original 9D91/9D99 |
$E049 |
Diagnostic palette selection | SourceInspectionSelection.palette_E049; isolated inspection entry | source-display-inspection.ts; original 9D91/9D99 |
$E055 |
Core pass count / admission input | scene.coreCount; source count phase matters | session-snapshot.ts; typed owners |
$E057–$E058 |
Pending scroll fixed-point word | LE; game.cameraControl.pendingScrollFixed88 | player-snapshot.ts; active-player.ts |
$E05B–$E05D |
Shadow progress high / low / fraction | BE whole word then fraction; background.progressPixels / progressFraction | background-snapshot.ts |
$E05E–$E05F |
Scenery placement pointer | LE; scenery.cursor encoded into source table address | scenery-snapshot.ts |
$E062 |
Scroll pulse | scene.scrollPulse | session-snapshot.ts; typed owners |
$E064 |
High-score display row count | hud.rowCount | session-snapshot.ts; typed owners |
$E065 |
High-score display row index | hud.rowIndex | session-snapshot.ts; typed owners |
$E066 |
High-score display row-end scratch | hud.rowEnd | session-snapshot.ts; typed owners |
$E06B–$E06C |
Name-entry character destination pointer | LE; nameEntry.namePointer | session-snapshot.ts |
$E06F |
Name-entry BCD seconds | nameEntry.secondsBcd | session-snapshot.ts; typed owners |
$E070 |
Name-entry second divider | nameEntry.divider | session-snapshot.ts; typed owners |
$E078 |
Start 1 input history | irq.startHistoryE078 | session-snapshot.ts; typed owners |
$E07C |
Player burst allocation cooldown | game.shotQueue.cooldown | shot-queue.ts; kernel-snapshot.ts |
$E080 |
Shared blast remaining timer | playerRuntime.blast.remaining | session-snapshot.ts; typed owners |
$E089 |
Queued burst requests | game.shotQueue.pending; not live projectile count | shot-queue.ts; kernel-snapshot.ts |
$E08A |
Scenery phase flag | scene.sceneryPhase | session-snapshot.ts; typed owners |
$E08F–$E090 |
Scripted placement pointer | LE; scene.actorPointer | session-snapshot.ts |
$E091–$E092 |
Name-entry selection-table pointer | LE; nameEntry.selectionPointer | session-snapshot.ts |
$E094 |
Requested opening/gate action | scene.gateRequest | session-snapshot.ts; typed owners |
$E096–$E097 |
Core-wave record pointer | LE; scene.wavePointer | session-snapshot.ts |
$E098 |
Retained core-birth placement distance scratch | Source writes at 9526/95A6; no audited gameplay reader; represented by the replay adapter's write residue rather than live gameplay state | core-birth-source-flow.ts; research212 |
$E09B |
Section effect ready flag | scene.effectReady | session-snapshot.ts; typed owners |
$E09C |
Scripted-parent grenade contact latch | playerRuntime.blast.parentContactLatch | session-snapshot.ts; typed owners |
$E09D |
Latched grenade contact native Y | playerRuntime.blast.contactY | session-snapshot.ts; typed owners |
$E09E |
Latched grenade contact native X | playerRuntime.blast.contactX | session-snapshot.ts; typed owners |
$E09F |
Section-script / gate latch | scene.sectionScript | session-snapshot.ts; typed owners |
$E0A0 |
Remaining gate placements | scene.gatePlacementsRemaining | session-snapshot.ts; typed owners |
$E0A1 |
Section ready flag | scene.sectionReady | session-snapshot.ts; typed owners |
$E0A2 |
Section animation phase | scene.sectionAnimationPhase | session-snapshot.ts; typed owners |
$E0A4 |
Bridge-gun request | scene.bridgeGunRequest | session-snapshot.ts; typed owners |
$E0A5 |
Bridge overlay suppression | scene.bridgeOverlaySuppression | session-snapshot.ts; typed owners |
$E0A6–$E0A7 |
Current score destination pointer | LE; hud.scorePointer | session-snapshot.ts |
$E0A9 |
Wave template rotation | scene.waveRotation | session-snapshot.ts; typed owners |
$E0AA–$E0AB |
Ranked-score pointer | LE; hud.rankScorePointer | session-snapshot.ts |
$E0AC–$E0AD |
High-score row pointer | LE; hud.rankRowPointer | session-snapshot.ts |
$E0AE |
Section badge ones | hud.badgeOnes | session-snapshot.ts; typed owners |
$E0AF |
Section badge fives | hud.badgeFives | session-snapshot.ts; typed owners |
$E0B0 |
Section badge tens | hud.badgeTens | session-snapshot.ts; typed owners |
$E0B1–$E0B2 |
Section text destination | LE; scene.sectionTransition.textDestination | session-snapshot.ts |
$E0B3–$E0B4 |
Section text source pointer | LE; scene.sectionTransition.textPointer | session-snapshot.ts |
$E0B5–$E0B6 |
Section exit scroll remaining | LE; scene.sectionTransition.exitScrollRemaining | session-snapshot.ts |
$E0B7 |
Section final-exit phase | scene.sectionTransition.exitPhase | session-snapshot.ts; typed owners |
$E0B8 |
Name-entry draining flag | nameEntry.draining | session-snapshot.ts; typed owners |
$E0B9 |
Name-entry letter selection | nameEntry.selection | session-snapshot.ts; typed owners |
$E0BA |
Terrain/burst phase | background.terrainPhase | session-snapshot.ts; typed owners |
$E0BB |
Terrain/burst parameter | background.terrainParameter | session-snapshot.ts; typed owners |
$E0BC |
Linked 01/02 side counter | linkedActors.sideCounter | native-linked-actors.ts; linked-snapshot.ts |
$E0F0 |
Enemy-shot admission capacity | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F1 |
Minimum firing distance | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F2 |
Shot cooldown reload | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F3 |
Live shot cooldown | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F4 |
Core admission threshold | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F5 |
Spawn cooldown reload | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F6 |
Live spawn cooldown | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F7 |
Random countdown reload | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F8 |
Live random countdown | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0F9 |
Projectile speed index | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0FA |
Spawn mode | background.difficulty; source F0..FA fields | background-record.ts; background-snapshot.ts |
$E0FB |
Loaded difficulty/settings page | background.settingsPage | background-record.ts; background-snapshot.ts |
$E0FC |
Loaded terrain/transport flag | background.terrainFlag | background-record.ts; background-snapshot.ts |
$E702 |
Incidental name-entry cleanup write | Possible core-scan-end plus 2; no ninth actor and no audited gameplay reader | high-score-entry.ts: clearRetainedTarget; original 9BFE |
$ED80–$ED81 |
Main command write pointer | LE source pointer; runtime stores ring offset | complete-context-snapshot.ts |
$ED82–$ED83 |
Main command read pointer | LE source pointer; runtime stores ring offset | complete-context-snapshot.ts |
$ED84 |
Current command parameter | queue.parameterED84 | main-command-queue.ts |
$ED85 |
Current command ID | queue.commandED85 | main-command-queue.ts |
$ED86–$ED87 |
Sound-ring write pointer | LE ED40-based pointer; runtime stores offset | complete-context-snapshot.ts |
$ED88–$ED89 |
Sound-ring read pointer | LE ED40-based pointer; runtime stores offset | complete-context-snapshot.ts |
$EE5B |
High-score table end marker | hud.tableEndMarker; also name-entry retained-pointer clear target | session-snapshot.ts; high-score-entry.ts |
$EE5C–$EE81 |
Retained cold-start copy tail | 38 bytes; copied from ROM; no current gameplay consumer established | cold-start.ts; hud-state.ts |
$EE91–$EE93 |
Player 1 BCD score | Three bytes, most significant first; units are ten points | session-snapshot.ts |
$EE94–$EE96 |
Player 2 BCD score | Three bytes, most significant first; units are ten points | session-snapshot.ts |
$EE97–$EE99 |
Top BCD score | Three bytes, most significant first | session-snapshot.ts |
$EE9A–$EEA3 |
Entered high-score name | Ten character-code bytes | session-snapshot.ts |
$EEC0–$EEC9 |
Random-generator shift registers | Ten retained bytes; scene.randomRegisters | core-enemy-spawn.ts; session-snapshot.ts |
Command storage
$ED00–$ED3F is a 64-byte main-command ring with 32 two-byte entries:
command ID first, then parameter. The write pointer wraps within that range;
enqueueing has no full-queue rejection and can overwrite unread entries.
The current parameter and ID are copied to $ED84 and $ED85.
The consumer checks the command byte for $FF, then clears the consumed pair;
it does not infer emptiness solely from pointer equality.
The separate $ED40–$ED5F sound ring contains 32 one-byte entries, with
$FF used as the cleared/empty entry value. Its pointers are at $ED86 and
$ED88; it is not another actor or projectile pool. See
command scheduling and
main-command-queue.ts,
frame-irq.ts for consumption and sound output.
Browser playback observes the already-published $C800/$C804 writes through
GameAudioController; it does not consume this
main-RAM ring again. The translated audio driver
owns a separate 2 KiB state corresponding to sound-CPU $4000–$47FF. That is
a different CPU address space and does not add RAM or actor capacity here.
Record layouts
The following assignments connect base addresses to offset tables. This is a storage inventory, not a sum of concurrent objects: name-entry rows overlay earlier rows, compound entities can occupy several actor/sprite records, and sprites have separate scene-dependent output ownership.
| Record family | Base | Stride | Stored count | Layout |
|---|---|---|---|---|
| Player control | $E100 |
$20 |
1 | Player control |
| Grenade control | $E140 |
$20 |
1 | Player control |
| Cinematic vehicle | $E160 |
$20 |
1 | Cinematic vehicle |
| Player projectiles | $E200 |
$20 |
6 | Projectile |
| Enemy projectiles | $E2C0 |
$20 |
8 | Projectile |
| Cinematic pulse | $E420 |
$20 |
1 | Player control |
| Scripted actors | $E500 |
$20 |
8 | Scripted actor |
| Core enemies | $E600 |
$20 |
8 | Core script |
| Scenery storage | $E800 |
$10 |
18 | Scenery |
| Main-command entries | $ED00 |
$02 |
32 | Main command entry |
| Sound-command entries | $ED40 |
$01 |
32 | Sound command entry |
| Active / saved P1 / saved P2 banks | $EDA0 / $EDC0 / $EDE0 |
$20 |
3 | Player bank |
| High-score rows | $EE00 |
$0D |
7 | High score row |
| Background work | $EF00 |
$14 |
1 | Background work |
| Sprite output | $FE00 |
$04 |
96 | Sprite |
| Name-entry player / cursor movers | $E100 / $E108 |
$08 |
2 | Name entry mover |
| Name-entry letter shots | $E200 |
$10 |
4 | Name entry shot |
| Name-entry ordinary letter effects | $E2C0 |
$04 |
10 | Name entry letter effect |
| Name-entry first extra / retained letter slot; not an overflow limit | $E2E8 |
$04 |
1 | Name entry letter effect |
Player control
Applies to the shared control representation at $E100, $E140 and $E420;
individual callers use a subset. In particular, the cinematic pulse owns its
phase at +$14. Do not give every retained offset a player meaning.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
State | Active/death/controller state byte |
+$01 |
Target heading | Movement target direction |
+$02 |
Current heading whole byte | Fraction is separately stored at +19 |
+$03–+$04 |
Accepted native Y | BE 8.8 |
+$05–+$06 |
Accepted native X | BE 8.8 |
+$07–+$08 |
Candidate native Y | BE 8.8; retained independently of accepted Y |
+$09–+$0A |
Candidate native X | BE 8.8 |
+$0B–+$0C |
Velocity Y | BE signed 8.8 |
+$0D–+$0E |
Velocity X | BE signed 8.8 |
+$0F |
Retained / unspecified here | No shared control meaning assigned |
+$10 |
Walk counter | Source pose clock |
+$11 |
Previous target heading | Turning state |
+$12 |
Retained / unspecified here | Do not borrow the core draw-flags meaning |
+$13 |
Flags | Player draw/control flags |
+$14 |
Controller-specific | Cinematic pulse phase at E434; not a general player phase field |
+$15 |
Timer | Source controller countdown |
+$16 |
Throw delay / draw suppression | Role depends on caller |
+$17–+$18 |
Heading interpolation step | BE fixed-point |
+$19 |
Current heading fraction | Pairs with non-adjacent whole byte +02 |
+$1A |
Exit flag | Forced-exit control |
+$1B |
Terrain variant | Control state |
+$1C |
Exit music delay | Control state |
+$1D |
Retained / unspecified here | No shared control meaning assigned |
+$1E |
Composite layout | Presentation selector |
+$1F |
Retained / unspecified here | No shared control meaning assigned |
Core script
This is the shared core-script layout used by the audited script movers
(subtypes $00/$01). Other core subtypes can interpret auxiliary offsets
differently. Use the actor catalog and the subtype's source
before extrapolating this layout to every $E600 occupant.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
State | Zero free; active/death states depend on source path |
+$01 |
Heading | Movement/aim direction |
+$02 |
Pose heading | Art direction |
+$03–+$04 |
Accepted native Y | BE 8.8 |
+$05–+$06 |
Accepted native X | BE 8.8 |
+$07–+$08 |
Candidate native Y | BE 8.8 |
+$09–+$0A |
Candidate native X | BE 8.8 |
+$0B–+$0C |
Velocity Y | BE signed 8.8 |
+$0D–+$0E |
Velocity X | BE signed 8.8 |
+$0F |
Movement speed index | ROM table selection |
+$10 |
Walk counter | Animation clock |
+$11 |
Turn flag | Can bypass script timing |
+$12 |
Draw flags | Source condition bits |
+$13 |
Core subtype | ArcadeEnemyKind; not E500 kind IDs |
+$14 |
Motion phase | Core-script state machine |
+$15 |
Timer | Phase/script countdown |
+$16–+$17 |
Script pointer | BE source address |
+$18 |
Terrain grace | Movement-contact state |
+$19–+$1D |
Subtype-specific / retained | No universal core-script meaning assigned here |
+$1E |
Composite layout | Source art layout |
+$1F |
Shot phase | Shared firing phase |
Scripted actor
The common $E500 header is intentionally a union of subtype conventions,
not one universal position/velocity structure. For example, linked movers
and static/vehicle families disagree on the interpretation of +$04.
Reserved child pointers belong to their parent's existing record.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
State / ownership byte | Zero is free; special active/death values depend on kind |
+$01–+$02 |
Kind-specific heading / pose / auxiliary | No one field layout fits every kind |
+$03 |
Native Y whole byte | Common placement header |
+$04 |
Y fraction or X high/page byte | Linked/moving 8.8 paths use Y fraction; header/static/vehicle paths can interpret the same byte as high X |
+$05 |
Native X whole/low byte | Interpret with the current kind's coordinate convention |
+$06 |
Native X fraction / kind-specific | Retained unless the initializer writes it |
+$07–+$0A |
Kind-specific anchor / facing / auxiliary | Follow the actual subtype codec/routine |
+$0B–+$0E |
Velocity words where used | BE Y/X in linked and moving paths |
+$0F–+$10 |
Speed / acceleration / reserved child pointer | For 0B, a BE reserved E500 child pointer occupies this word |
+$11–+$12 |
Flags or reserved child-sprite pointer | For 0B, a BE reserved sprite pointer; other kinds have different fields |
+$13 |
Scripted kind | ArcadeActorKind |
+$14 |
Phase or variant | Kind-specific selector |
+$15 |
Timer | Kind-specific countdown |
+$16–+$19 |
Auxiliary state | Departure, contact, phase data or retained bytes depending on kind |
+$1A |
Sprite count | Source 2A0E table/header |
+$1B–+$1C |
First sprite pointer | BE source address; runtime stores a sprite-slot index |
+$1D |
Kind-specific / retained | No universal meaning assigned |
+$1E |
Composite layout where used | Kind-specific |
+$1F |
Pool phase / remaining-slot count | Placement allocator writes 8 minus slot; later interpretation follows the kind |
Projectile
The same stride serves six player and eight enemy slots. The shared source updater does not make every offset an actor-control field.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
State | Ownership/flight/contact/expiry state |
+$01 |
Heading | Native aim direction |
+$02 |
Reserved / retained | No shared shot-updater consumer identified |
+$03–+$04 |
Native Y | BE 8.8 |
+$05–+$06 |
Native X | BE 8.8 |
+$07–+$0A |
Reserved / retained | Not a shared candidate-coordinate pair |
+$0B–+$0C |
Velocity Y | BE signed 8.8 |
+$0D–+$0E |
Velocity X | BE signed 8.8 |
+$0F |
Speed index | ROM speed selection |
+$10–+$11 |
Reserved / retained | No shared shot-updater consumer identified |
+$12 |
Flight lifetime | Not core draw flags |
+$13 |
Flags | Terrain and source projectile flags |
+$14 |
Phase | Launch/travel/expiry selector |
+$15 |
Phase timer | Includes launch warmup |
+$16–+$18 |
Reserved / retained | No shared shot-updater consumer identified |
+$19 |
Direction / pose sector | Projectile art direction |
+$1A–+$1E |
Reserved / retained | No shared shot-updater consumer identified |
+$1F |
Pool / terrain phase | Source staggering field |
Scenery
Eighteen records are stored; nine are normally updated/displayed. Other contact routines scan eight or twelve depending on the caller. Storage count, scan count and visible sprite-pair budget are separate limits.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
State | Standing, hit-pending, breakup or free |
+$01–+$02 |
Reserved / retained | No shared meaning assigned |
+$03 |
Native Y | Whole pixel |
+$04–+$05 |
Native X word | BE whole-coordinate/page word; not an 8.8 position |
+$06 |
Kind / explosion eligibility | Internal scenery record kind; distinct from catalog image identity |
+$07 |
Image code | Standing art selector |
+$08 |
Attribute | Packed source style |
+$09 |
Contact Y bias | Source hit parameters |
+$0A |
Contact span | Source hit parameters |
+$0B–+$0F |
Reserved / retained | No shared meaning assigned |
Main command entry
Thirty-two entries occupy $ED00–$ED3F. The producer writes command ID
before parameter; the consumer tests ID for $FF and clears the consumed pair.
There is no full-ring guard. See command storage.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
Command ID | MainCommandId; $FF is the empty/cleared sentinel |
+$01 |
Parameter | Meaning depends on the command ID |
Sound command entry
Thirty-two one-byte entries occupy $ED40–$ED5F, independently of the main ring.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
Sound command | One-byte audio request; $FF is empty/cleared |
Player bank
The active bank at $EDA0 is saved into $EDC0 or $EDE0 and restored on
player turns. It is not three simultaneously active players. Copied tail bytes
remain retained data even when no current gameplay reader has been established.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
Lives | Active bank maps to playerRuntime.lives |
+$01 |
Entrance / restart controller | hud.entrance |
+$02–+$03 |
Checkpoint camera | LE; shared playerCheckpoint owner |
+$04 |
Section-level / loop setting | hud.sectionLevel |
+$05–+$07 |
Next bonus threshold | Three packed-BCD bytes, most significant first |
+$08 |
Grenade stock | Packed BCD |
+$09 |
Section index | hud.section |
+$0A–+$1F |
Retained copied bytes | Saved/restored with the bank; no consumer established for these offsets |
Cinematic vehicle
The controller at $E160 has a 24-bit X coordinate whose source accesses
overlap. Treat +$04–+$06 as one value; independent 16-bit owners would lose
writes through the shared middle byte.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
State | Vehicle controller |
+$01–+$02 |
Retained / unspecified here | No live role assigned |
+$03 |
Native Y | Whole byte |
+$04–+$06 |
Native X fixed coordinate | One 24-bit value; source word accesses overlap at +05 |
+$07–+$08 |
Velocity | BE word |
+$09–+$0A |
Acceleration | BE word |
+$0B |
Acceleration remaining | Counter |
+$0C–+$0D |
Shadow X word | BE |
+$0E–+$12 |
Retained / unspecified here | No shared role assigned |
+$13 |
Pose | Art selection |
+$14 |
Phase | Cinematic state machine |
+$15–+$16 |
Timer | BE word |
+$17 |
Shadow frame | Art phase |
+$18–+$1F |
Retained / unspecified here | No live role assigned |
Name entry mover
Name entry only: player mover at $E100, cursor mover at $E108.
These fields overlay the ordinary 32-byte player controller.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
Remaining movement count | Mover state |
+$01 |
Direction | Source mover direction |
+$02 |
Retained | Not a direction fraction |
+$03 |
Native Y | E10B in the cursor record also receives the firing-path Y copy |
+$04 |
Native X page | Source page/high value |
+$05 |
Native X low byte | Whole pixel |
+$06–+$07 |
Retained | No shared mover role assigned |
Name entry shot
Name entry only: four 16-byte records at $E200–$E23F. Their visible
coordinates are stored in the corresponding sprite output records, rather
than being a second copy in this source layout.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
Remaining / active state | One of four 16-byte records |
+$01 |
Letter code | Selected character |
+$02–+$03 |
Target tile address | BE foreground destination |
+$04 |
Target X | Shot destination |
+$05–+$0F |
Retained / not this shot layout | Screen Y/X are read/written through the corresponding sprite record |
Name entry letter effect
Name entry only: ten ordinary four-byte records at $E2C0–$E2E7.
$E2E8 is an additional retained/touched state byte. The unbounded free scan
can proceed farther; this table does not impose an artificial overflow bound.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
Remaining timer | Ten ordinary updated records; allocator can scan beyond them |
+$01 |
Letter code | Character being animated |
+$02–+$03 |
Target tile address | BE foreground destination |
High score row
Seven rows begin at $EE00, with the last row at $EE4E–$EE5A.
$EE5B is a separate end marker; $EE5C–$EE81 is the retained cold-copy tail,
not additional ranked rows.
| Offset | Field | Meaning |
|---|---|---|
+$00–+$02 |
Score | Packed BCD, most significant byte first; ten displayed points per stored unit |
+$03–+$0C |
Name | Ten character-code bytes |
Background work
The 20-byte source work record begins at $EF00. Its coordinate and
pointer fields are BE, unlike the LE placement and command-ring pointers.
The shadow progress globals and saved checkpoint remain separate values.
| Offset | Field | Meaning |
|---|---|---|
+$00–+$01 |
Progress pixels | BE whole word |
+$02 |
Progress fraction | Low fraction of the live camera coordinate |
+$03–+$04 |
Map stream pointer | BE |
+$05 |
Map cycle count | Streaming state |
+$06–+$07 |
Expansion pointer | BE |
+$08–+$09 |
Collision source pointer | BE |
+$0A–+$0B |
Collision destination pointer | BE |
+$0C–+$0D |
Video source pointer | BE |
+$0E–+$0F |
Video destination pointer | BE |
+$10–+$11 |
Collision read pointer | BE; current terrain window |
+$12 |
Scroll phase/count | Streaming/contact phase |
+$13 |
Chunk count | Streaming state |
Sprite
There are 96 records from $FE00 through $FF7F. The hardware publishes
sprite data to a separate video-side buffer; that publication does not create
more main-RAM slots. Hiding a sprite usually changes only +$02 (Y), retaining
its image, attribute and X. See arcade-sprite.ts.
| Offset | Field | Meaning |
|---|---|---|
+$00 |
Image low byte | Image bank is in attribute bits 6/7 |
+$01 |
Attribute | Bits 6/7 bank; 4/5 palette; 2/3 flips; bit 0 signed X page; bit 1 retained |
+$02 |
Native Y | Unsigned whole pixel; hiding usually writes only this byte |
+$03 |
Native X low byte | Combine with attribute bit 0 for complete signed X |
Mode overlays
These are established examples, not a claim that no other aliases exist. Interpret them with the current main mode, subtype and caller. Distinct TypeScript owners can model different source uses without sharing a live JavaScript byte array.
| Range | Context | Meaning | Evidence |
|---|---|---|---|
$E100–$E10F |
name-entry | Player/cursor movers reuse the gameplay player record; cursor starts at E108 | high-score-entry.ts; session-snapshot.ts |
$E200–$E23F |
name-entry | Four 16-byte letter shots overlay gameplay player-projectile storage | high-score-entry.ts |
$E2C0–$E2E7 |
name-entry | Ten 4-byte letter effects overlay enemy-projectile storage | high-score-entry.ts |
$E2E8–$E2EB |
name-entry | First extra/retained letter slot; source free scan has no end guard, so this is not an overflow limit | name-entry-state.ts; original 9B9E/9C03 |
$E702 |
name-entry | A retained IY at core-pool end permits a write at +02; no ninth core actor | high-score-entry.ts: clearRetainedTarget |
$E164–$E166 |
scenes | Vehicle words at E164/E165 and E165/E166 overlap within one 24-bit coordinate | cinematic-state.ts; session-snapshot.ts |
$FE18–$FE1B |
scenes | First cinematic shadow sprite; a source role also used by descending explosive output | arcade-sprite.ts; native-scripted-effects.ts |
$FE30–$FE33 |
gameplay | Core-emitted kind 0D in scripted slot 0 writes this sprite, overlapping the first normal scenery output record | native-scripted-effects.ts: FIRST_SPRITE_FE14 + (7 - slot) * 4 |
$FE30–$FE47 |
gameplay | Linked 01/02 placements also select fixed pairs inside normal scenery output: first group uses FE30, FE38 and FE40. Later actor output or release can replace scenery pieces without changing the scenery owner | ROM placements71BA/71C0/71C6; A399/A498 then1D01/1D69→2B88 or3AA7 |
$FE3C–$FE3F |
scenes | First cinematic pulse piece overlaps the ordinary scenery-output span | arcade-sprite.ts; start-cinematic.ts |
$FE4C–$FE4F |
scenes | First cinematic vehicle piece overlaps the ordinary scenery-output span | arcade-sprite.ts; start-cinematic.ts |
$FEAC–$FF3B |
scenes | Alternate scenery display span overlaps normal core/player output | native-scenery.ts |
$FED8–$FF27 |
scenes | Final-exit 87F1/883C reuses twenty normal core sprite records as canonical positions and column-removal state, not merely a write-only projection | player-exit.ts; final-exit-object.ts |
$FF40–$FF43 |
name-entry | Name cursor sprite is also the third player sprite record | arcade-sprite.ts; high-score-entry.ts |
Name-entry cleanup at $9BF5/$9BFE can also write through retained IX/IY
targets into earlier records or marker state. That is an ordered source effect,
not a new allocation. In particular, $E702 can receive an incidental clear
after a core scan ends at $E700; there is no ninth core actor and no audited
gameplay reader for that byte.
Sprite output ownership
The following are normal gameplay output spans; rows can overlap. Scene output can use different starts and overlap them further. A record's presence does not imply a visible sprite; Y and composition rules still determine output.
| Range | Slots | Normal role |
|---|---|---|
$FE00–$FE03 |
0 | Reserved first output record |
$FE04–$FE13 |
1–4 | Four shared-blast pieces |
$FE14–$FE33 |
5–12 | Eight possible core-emitted kind 0D sprite positions, selected by descending scripted slot; overlap scene shadows and the first scenery record |
$FE30–$FEBF |
12–47 | Eighteen scenery sprite pairs; normal pass consumes within this budget |
$FEC0–$FED7 |
48–53 | No universal normal owner assigned here; other actor/scene layouts can use this area |
$FED8–$FF37 |
54–77 | Eight core output groups of three pieces; final exit reuses slots 54–73 as five groups of four |
$FF38–$FF43 |
78–80 | Three player pieces; last piece is also the name cursor |
$FF44–$FF47 |
81 | Grenade |
$FF48–$FF7F |
82–95 | Fourteen projectile pieces: six player, eight enemy |
The normal scenery budget ends at $FEBF, before the core output group.
The kind $0D emission selects $FE14 + (7 - scriptedSlot) × 4, so its
last possible record at $FE30 aliases the first normal scenery record.
The alternate scenery start at $FEAC reaches $FF3B and overlaps the
normal core/player output. These output reservations must not be summed as
independent guaranteed visible objects.
During final exit, $87F1/$883C also reads back image and X fields in
$FED8–$FF27 to animate, scroll and remove columns. Those twenty records are
the effect's canonical state, retained in the same typed sprite owner and
included in gameplay snapshots. The isolated semantic adapter produces one
effect with five components and visibility masks without a duplicate position
array. This is a source-proved exception to ordinary output-only sprite use;
it adds no actor pool. See player-exit.ts,
final-exit-object.ts and
source structures.
Scripted headers also carry first-sprite/count descriptors, and compound draw routines can share reservations or emit several pieces. Consult capacity and output aliases and the actor catalog for per-kind ownership.
Evidence and limits
This is source-established address/layout documentation, cross-checked against current typed owners and independent native snapshot codecs. It adds no new controlled MAME capture or ordinary-route claim. Existing native verification applies only to its documented caller/state boundaries; it does not certify that every byte listed as unknown is irrelevant. Physical stack limits, unchecked allocation overflow and unclassified RAM uses remain open.
| Source | What it establishes here |
|---|---|
| MAME 0.287 World driver | CPU-visible RAM ranges and video-device mapping |
Local supplied arcade/commando.asm and raw main ROM, not tracked in Git |
Boot $004A/$0060, fixed-address users, scenery scan $A35C, name-entry $9B9E/$9BF5/$9BFE/$9C03; source data must not be interpreted as instructions merely because the listing decodes it |
STATE_OWNERSHIP.md, video-commands.ts, FirstSectionGame |
Production ownership and the absence of a shared emulated RAM array |
frame-irq.ts, dip-switches.ts, cold-start.ts |
Input, settings, credits, queues and initialization |
player-initialization.ts, player-snapshot.ts, shot-queue.ts, kernel-snapshot.ts |
Player/grenade fields, blast state, scroll and burst globals |
native-core-script.ts, core-script-snapshot.ts, native-shots.ts, projectile-snapshot.ts |
Core mover and projectile layouts |
scripted-runtime-snapshot.ts, linked-snapshot.ts, covered-vehicle-snapshot.ts, armored-snapshot.ts, native-linked-actors.ts |
Common actor headers, subtype differences, retained fields and shared physical slots |
native-scenery.ts, scenery-slots.ts, scenery-snapshot.ts |
Scenery storage/scan/output bounds and record layout |
main-command-queue.ts, complete-context-snapshot.ts |
Ring entry order, pointer addresses and overwrite semantics |
session-state.ts, hud-state.ts, player-bank.ts, session-snapshot.ts |
Session globals, saved banks, high-score rows, name-entry and cinematic mappings |
high-score-entry.ts, name-entry-state.ts, cinematic-state.ts, start-cinematic.ts |
Mode overlays, retained cleanup targets and unchecked letter allocation |
background-record.ts, background-snapshot.ts, source-display-inspection.ts, arcade-sprite.ts |
Background work/difficulty and buffers, diagnostic globals and packed sprite representation |
| Actor catalog, routine reviews, architecture, research, obligation ledger | Detailed per-kind identity, routine review, evidence and unresolved scope |
The explorer and SVG are documentation sources. Their colours describe
address ownership, not activity, measured usage or proof of safety. Keep
detailed new source evidence in RESEARCH.md; do not treat this map as a
replacement for the authoritative obligation or ROM-coverage ledgers.