chipformer / data.js
divagr1925's picture
chipformer v0.1.0
a893c6e verified
Raw History Blame Contribute Delete
10.7 kB
// Generated by chipformer/web.py (python -m chipformer.web space). Do not edit by hand.
export const ASSET_BASE = "./assets";
export const ASSET_VERSION = "604312eb3c";
export const MACHINE = {"VAL_BASE": 0, "ADDR_BASE": 4096, "STEP": 8705, "TICK": 8706, "BOOT": 8707, "NULL": 4608, "CLS": 4118, "PC": 4113, "RNG": 4117, "KEYS": 4144, "DISPLAY": 4352, "QUIRKS": 4119, "QUIRK_NAMES": ["shift", "loadstore", "clip", "logic", "jump", "vforder"]};
export const MODEL_FACTS = {"layers": 18, "dModel": 382, "heads": 42, "ffnUnits": 22276, "params": 32328660, "nonzero": 139229, "vocab": 8708, "modelBytes": 2244711, "wasmBytes": 223894};
export const LIBRARY = {"total": 119, "verified": 118};
/** Per layer: the names of its attention heads (in model order) and its FFN unit count. */
export const LAYERS = [{"heads": ["write_addr", "rec_start", "last_tick"], "units": 2}, {"heads": ["PC", "I", "SP", "DT", "ST", "RNG", "V0", "key0", "key1", "key2", "key3", "key4", "key5", "key6", "key7", "key8", "key9", "keyA", "keyB", "keyC", "keyD", "keyE", "keyF", "q.shift", "q.loadstore", "q.clip", "q.logic", "q.jump", "q.vforder", "old", "old.cls"], "units": 91}, {"heads": ["op_hi"], "units": 16477}, {"heads": ["op_lo", "stack_top"], "units": 1054}, {"heads": ["VX"], "units": 1108}, {"heads": ["VY"], "units": 1117}, {"heads": [], "units": 1080}, {"heads": [], "units": 65}, {"heads": [], "units": 52}, {"heads": ["ctx"], "units": 88}, {"heads": [], "units": 31}, {"heads": ["vread"], "units": 4}, {"heads": [], "units": 1007}, {"heads": [], "units": 64}, {"heads": [], "units": 8}, {"heads": [], "units": 2}, {"heads": ["last_collision"], "units": 2}, {"heads": [], "units": 24}];
export const GAMES = [
{
"id": "tetris",
"title": "Tetris",
"authors": [
"Fran Dachille"
],
"year": "1991",
"description": "TETRIS by Fran Dachille This is my first release of the famous Tetris game on the HP48S. I was inspired by the lack enjoyable games for our favorite handheld. [Not since the Goodies Disks have been available! -jkh-] This game, though it lacks some of the whistles and bangs of…",
"license": "freely distributable (Revival Studios CHIP-8 pack)",
"source": "https://github.com/kripod/chip8-roms/blob/master/games/Tetris%20%5BFran%20Dachille%2C%201991%5D.ch8",
"quirks": [
"shift",
"loadstore",
"clip",
"jump"
],
"ipf": 15,
"keys": {
"left": 5,
"right": 6,
"down": 7,
"a": 4
},
"controls": "Left/Right move, Down drops faster, Space rotates",
"tap": [
"a"
],
"gameOver": {
"rows": [
6,
7
],
"cols": [
27,
35
],
"seconds": 5,
"message": "The well is full"
}
},
{
"id": "space-invaders",
"title": "Space Invaders",
"authors": [
"David Winter"
],
"year": "1996",
"description": "Space Invaders (1978), by David Winter The well known game. Destroy the invaders with your ship. Shoot with 5, move with 4 and 6. Press 5 to begin a game.",
"license": "freely distributable (Revival Studios CHIP-8 pack)",
"source": "https://github.com/kripod/chip8-roms/blob/master/games/Space%20Invaders%20%5BDavid%20Winter%5D.ch8",
"quirks": [
"shift",
"loadstore",
"clip",
"jump"
],
"ipf": 30,
"keys": {
"left": 4,
"right": 6,
"a": 5
},
"controls": "Left/Right move, Space fires (press Space to start)",
"tap": [],
"gameOver": null
},
{
"id": "brix",
"title": "Brix",
"authors": [
"Andreas Gustafsson"
],
"year": "1990",
"description": "Brix - by Andreas Gustafsson (1990) ----------------------------------- This game is an \"arkanoid\" precursor. You have 5 lives, and your goal is the destruction of all the brixs. Use 4 and 6 to move your paddle. The game ends when all the brixs are destroyed.",
"license": "freely distributable (Revival Studios CHIP-8 pack)",
"source": "https://github.com/kripod/chip8-roms/blob/master/games/Brix%20%5BAndreas%20Gustafsson%2C%201990%5D.ch8",
"quirks": [
"clip",
"logic"
],
"ipf": 15,
"keys": {
"left": 4,
"right": 6
},
"controls": "Left/Right move the paddle",
"tap": [],
"gameOver": null
},
{
"id": "blinky",
"title": "Blinky",
"authors": [
"Hans Christian Egeberg"
],
"year": "1991",
"description": "Blinky (1991), by Hans Christian Egeberg Pacman clone. 3, 6 - down/up. 7, 8 - left/right",
"license": "freely distributable (Revival Studios CHIP-8 pack)",
"source": "https://github.com/kripod/chip8-roms/blob/master/games/Blinky%20%5BHans%20Christian%20Egeberg%2C%201991%5D.ch8",
"quirks": [
"shift",
"loadstore",
"clip",
"jump"
],
"ipf": 30,
"keys": {
"up": 6,
"down": 3,
"left": 7,
"right": 8
},
"controls": "Arrow keys steer through the maze",
"tap": [],
"gameOver": null
},
{
"id": "pong",
"title": "Pong",
"authors": [
"Paul Vervalin"
],
"year": "1990",
"description": "OK. here is PONG version 1.1. The ball is a little faster in this version making play a little more realistic. I know PONG 1.0 was just posted yesterday, but I think this version is significantly better, so here it is. Use keys 7 and 4 move left player and / and * move right…",
"license": "freely distributable (Revival Studios CHIP-8 pack)",
"source": "https://github.com/kripod/chip8-roms/blob/master/games/Pong%20%5BPaul%20Vervalin%2C%201990%5D.ch8",
"quirks": [
"clip",
"logic"
],
"ipf": 15,
"keys": {
"up": 1,
"down": 4,
"player2Up": 12,
"player2Down": 13
},
"controls": "Left paddle A/D (or W/S), right paddle Left/Right (or Up/Down)",
"tap": [],
"gameOver": null
},
{
"id": "super-pong",
"title": "Super Pong",
"authors": [
"offstatic"
],
"year": "2021",
"description": "A fast pong-like.",
"license": "CC0",
"source": "https://github.com/JohnEarnest/chip8Archive/master/roms/superpong.ch8",
"quirks": [],
"ipf": 30,
"keys": {
"up": 5,
"left": 7,
"down": 8,
"right": 9,
"a": 6
},
"controls": "WASD moves the paddles, Space (E) resets",
"tap": [],
"gameOver": null
},
{
"id": "ufo",
"title": "UFO",
"authors": [
"Lutz V"
],
"year": "1992",
"description": "Here's how to play UFO: You have a stationary missle launcher at the bottom of the screen. You can shoot in three directions; left diagonal, straight up, and right diagonal.. using the keys 4, 5, and 6 respectively.. You try to hit one of two objects flying by.. at apparently…",
"license": "freely distributable (Revival Studios CHIP-8 pack)",
"source": "https://github.com/kripod/chip8-roms/blob/master/games/UFO%20%5BLutz%20V%2C%201992%5D.ch8",
"quirks": [
"clip",
"logic"
],
"ipf": 15,
"keys": {
"left": 4,
"a": 5,
"right": 6
},
"controls": "Left/Space/Right fire left, up, right",
"tap": [],
"gameOver": null
},
{
"id": "missile-command",
"title": "Missile Command",
"authors": [
"David Winter"
],
"year": "1996",
"description": "Missile Command - by David Winter (19xx) ---------------------------------------- You must shoot the 8 targets on the screen using key 8. Your shooter moves a little bit faster each time you shoot. You have 12 missiles to shoot all the targets, and you win 5 points per target…",
"license": "freely distributable (Revival Studios CHIP-8 pack)",
"source": "https://github.com/kripod/chip8-roms/blob/master/games/Missile%20%5BDavid%20Winter%5D.ch8",
"quirks": [
"clip",
"logic"
],
"ipf": 15,
"keys": {
"a": 8
},
"controls": "Space fires",
"tap": [],
"gameOver": null
},
{
"id": "br8kout",
"title": "Br8kout",
"authors": [
"SharpenedSpoon"
],
"year": "2014",
"description": "You can't even imagine how amazing this breakout clone is!",
"license": "CC0",
"source": "https://github.com/JohnEarnest/chip8Archive/master/roms/br8kout.ch8",
"quirks": [],
"ipf": 7,
"keys": {
"up": 5,
"left": 7,
"down": 8,
"right": 9,
"a": 6
},
"controls": "Left/Right move the paddle",
"tap": [],
"gameOver": null
},
{
"id": "cave-explorer",
"title": "Cave Explorer",
"authors": [
"JohnEarnest"
],
"year": "2014",
"description": "Do you have what it takes to be a Cave Explorer?",
"license": "CC0",
"source": "https://github.com/JohnEarnest/chip8Archive/master/roms/caveexplorer.ch8",
"quirks": [],
"ipf": 20,
"keys": {
"up": 5,
"left": 7,
"down": 8,
"right": 9,
"a": 6
},
"controls": "Arrow keys move",
"tap": [],
"gameOver": null
},
{
"id": "outlaw",
"title": "Outlaw",
"authors": [
"JohnEarnest"
],
"year": "2014",
"description": "An adaptation of the Atari 2600 game \"Outlaw\" for the Chip8.",
"license": "CC0",
"source": "https://github.com/JohnEarnest/chip8Archive/master/roms/outlaw.ch8",
"quirks": [],
"ipf": 15,
"keys": {
"up": 5,
"left": 7,
"down": 8,
"right": 9,
"a": 6
},
"controls": "Arrow keys move, Space shoots",
"tap": [],
"gameOver": null
},
{
"id": "flight-runner",
"title": "Flight Runner",
"authors": [
"TodPunk"
],
"year": "2014",
"description": "A simple flight runner for the Chip8.",
"license": "CC0",
"source": "https://github.com/JohnEarnest/chip8Archive/master/roms/flightrunner.ch8",
"quirks": [],
"ipf": 15,
"keys": {
"up": 5,
"left": 7,
"down": 8,
"right": 9,
"a": 6
},
"controls": "Up/Down steer",
"tap": [],
"gameOver": null
},
{
"id": "down8",
"title": "down8",
"authors": [
"tinaun"
],
"year": "2015",
"description": "you fall down an endless hole and then you die!",
"license": "CC0",
"source": "https://github.com/JohnEarnest/chip8Archive/master/roms/down8.ch8",
"quirks": [],
"ipf": 15,
"keys": {
"up": 5,
"left": 7,
"down": 8,
"right": 9,
"a": 6
},
"controls": "Left/Right move",
"tap": [],
"gameOver": null
},
{
"id": "dino-run",
"title": "Dino Run",
"authors": [
"Andrezinrc"
],
"year": "2026",
"description": "An endless runner game for Chip-8.",
"license": "CC0",
"source": "https://github.com/JohnEarnest/chip8Archive/master/roms/dinorun.ch8",
"quirks": [
"clip",
"logic"
],
"ipf": 15,
"keys": {
"up": 5,
"left": 7,
"down": 8,
"right": 9,
"a": 6
},
"controls": "Up or Space jumps",
"tap": [],
"gameOver": null
}
];