Skip to content

Add a platform for the COSMAC VIP's 2 Page Display for CHIP-8 (64×64) #33

Closed

Description

@rbscholtus

The database has no platform for the COSMAC VIP's two-page 64×64 mode, often called "Hires CHIP-8", and so none of its ROMs. kripod/chip8-roms has 8 of them in its hires/ folder, by Revival Studios, David Winter, zeroZshadow, Sergey Naydenov, RB and Tom Swan. I'd like to add the platform, then the ROMs in a follow-up PR.

Which mode. This is the VIP's two-page 64×64 mode, which runs on an unmodified VIP or Telmac 1800. It's not Tom Swan's HI-RES CHIP-8 (1980), a 64×128 interpreter.

How it works (from the folder's !hires_information.txt): each ROM starts at 0x200 with 1260, a jump over a short machine-code patch that switches the VIP interpreter to 64×64. The CHIP-8 program starts at 0x2C0. 0230 calls the patch's routine that clears the 64×64 screen. An emulator doesn't need to run the patch:

  • when the instruction at 0x200 is 1260, switch to 64×64 and continue at 0x2C0;
  • treat 0230 as a clear screen.

All 8 ROMs have the same patch (apart from 11 bytes of padding), and none calls other machine code. Everything else is VIP CHIP-8, with the VIP's quirks.

Proposed entry for platforms.json:

{
  "id": "hiresChip8",
  "name": "Cosmac VIP Hires CHIP-8",
  "description": "A 64x64 mode for CHIP-8 on the Cosmac VIP, using two pages of display memory. It runs on an unmodified VIP: each program starts with a jump (1260) over a short machine-code patch that switches the interpreter to 64x64, and the CHIP-8 program starts at 0x2C0. 0230 clears the 64x64 screen. Emulators can skip the patch: when the first instruction at 0x200 is 1260, switch to 64x64 and continue at 0x2C0. Not to be confused with Tom Swan's 64x128 HI-RES CHIP-8 (1980).",
  "displayResolutions": ["64x64"],
  "defaultTickrate": 15,
  "quirks": {
    "shift": false,
    "memoryIncrementByX": false,
    "memoryLeaveIUnchanged": false,
    "wrap": false,
    "jump": false,
    "vblank": true,
    "logic": true
  }
}

The quirks and tick rate are originalChip8's. The id follows the existing ones; happy to change it, or the name, to whatever fits best.

I've left out release: I couldn't find when this mode was first published. If you know the VIPER issue or another source that introduced it, I'll add the date.

Reference implementation: Chippie (https://rbscholtus.github.io/chippie/), which plays all 8 ROMs this way (chip8/ops_hires.go in https://github.com/rbscholtus/chippie). Search its library for "hires".

I've opened #34 with the platform and the 8 programs.

Activity

  1. tobiasvl commented on Nov 15, 2026

    @tobiasvl
    Member

    I've left out release: I couldn't find when this mode was first published. If you know the VIPER issue or another source that introduced it, I'll add the date.

    I assume this is "2 Page Display for CHIP-8" by Andy Modla and Jef Winsor (also called Jeff Windsor in the editor's note), which was published in VIPER volume 1 issue 3, in September 1978. We have documented this mode here: https://chip-8.github.io/extensions/#two-page-display-for-chip-8

    It's not Tom Swan's HI-RES CHIP-8 (1980), a 64×128 interpreter.

    Maybe call this one "2 Page Display for CHIP-8" instead of "HI-RES", to avoid this confusion? I don't see the "hi-res" name anywhere in the original publication, so it's probably a later name given to it.

    each ROM starts at 0x200 with 1260, a jump over a short machine-code patch that switches the VIP interpreter to 64×64. The CHIP-8 program starts at 0x2C0.

    Hmm, why would it not start at 0x260? 1260 is a jump to 0x260, not 0x2C0. The aforementioned VIPER issue also says "YOUR CHIP-8 PROGRAMS START AT 0260."

    when the instruction at 0x200 is 1260, switch to 64×64 and continue at 0x2C0;

    This is probably a good heuristic in practice, but any CHIP-8 game could in theory start with a 1260 instruction. Maybe it'd be better, or at least more robust, to read the bytes between 0x202 and 0x250 (the last actual byte of the machine code) and see if they match the provided machine code bytes?

  2. rbscholtus commented on Nov 16, 2026

    @rbscholtus
    ContributorAuthor

    Thanks, that was very helpful: you were right on all three points. I read the article in the VIPER scan (pp. 10–12) and have updated #34 to match.

    Name and date. The platform is now twoPageChip8, "2 Page Display for CHIP-8", with "release": "1978-09", crediting Andy Modla and Jef Winsor.

    0x260. I had this wrong. The article's programs start at 0x260, after the patch at 0x200–0x249 that every program must include. The ROMs in kripod's hires/ folder go one step further so that they run on an unmodified VIP: their CHIP-8 code at 0x260 copies the article's interpreter changes into 0x003–0x1FB (Fx55 stores of data kept at 0x24A), calls 02AC, clears the screen with 0230 at 0x2BE, and only then reaches the program proper at 0x2C0. The description now explains both.

    Detection. Agreed. The suggested rule is now: if 0x200 holds 1260 and 0x202–0x249 hold the article's patch byte for byte, switch to 64×64 and continue at 0x2C0 after the self-patching code, else at 0x260; then treat 0230 as clearing the screen. All 8 ROMs have exactly the article's bytes there. Chippie now works this way (chip8/ops_twopage.go).

    Two more things came up while checking:

    • Hires Test is the article's own test program, byte for byte, moved from 0x260 to 0x2C0. I've credited it to Modla and Winsor (1978-09) and kept kripod's attribution to Tom Swan in its description.
    • Hires Sierpinski and Hires Stars got stuck on the VIP's quirks: Sergey Naydenov's compiler stores back to the address it just loaded from (A684 F065 7001 F055), which assumes Fx65 leaves I alone. The lo-res Stars is already listed as superchip, probably for the same reason. Both are now under quirkyPlatforms, twoPageChip8 with memoryLeaveIUnchanged: true.

    I hope this looks good now.

  3. changed the title [-]Add a platform for the COSMAC VIP's two-page 64×64 "Hires CHIP-8" mode[/-] [+]Add a platform for the COSMAC VIP's 2 Page Display for CHIP-8 (64×64)[/+] on Nov 16, 2026
  4. tobiasvl commented on Nov 16, 2026

    @tobiasvl
    Member

    Yes, it does, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions