diff --git a/index.html b/index.html index 7b43ee2..20c9333 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,13 @@ './roms/7-beep.ch8', './roms/8-scrolling.ch8', './roms/Maze[David Winter, 199x].ch8', + './roms/Airplane.ch8', + './roms/Cave.ch8', + './roms/Life [GV Samways, 1980].ch8', + './roms/Pong (1 player).ch8', + './roms/SQRT Test [Sergey Naydenov, 2010].ch8', + './roms/Timebomb.ch8', + './roms/Worm V4 [RB-Revival Studios, 2007].ch8' ]; // Set user keys @@ -75,7 +82,7 @@ emulator.startAudio(audioContext, volume); // Load ROM - fetch(fullDirRoms[6]) + fetch(fullDirRoms[3]) .then(response => response.arrayBuffer()) .then(arrayBufferRom => { let romData = new Uint8Array(arrayBufferRom); @@ -90,7 +97,7 @@ emulator.emulateCycle(); emulator.drawToCanvas(emulatorCanvas, 8); } - }, 60); + }, 10); \ No newline at end of file diff --git a/roms/Airplane.ch8 b/roms/Airplane.ch8 new file mode 100755 index 0000000..cac8804 Binary files /dev/null and b/roms/Airplane.ch8 differ diff --git a/roms/Cave.ch8 b/roms/Cave.ch8 new file mode 100755 index 0000000..d5a865f Binary files /dev/null and b/roms/Cave.ch8 differ diff --git a/roms/Chip8 Picture.ch8 b/roms/Chip8 Picture.ch8 new file mode 100755 index 0000000..74ab4bf Binary files /dev/null and b/roms/Chip8 Picture.ch8 differ diff --git a/roms/Fishie [Hap, 2005].ch8 b/roms/Fishie [Hap, 2005].ch8 new file mode 100755 index 0000000..ca1eaf3 Binary files /dev/null and b/roms/Fishie [Hap, 2005].ch8 differ diff --git a/roms/Life [GV Samways, 1980].ch8 b/roms/Life [GV Samways, 1980].ch8 new file mode 100755 index 0000000..d35039a Binary files /dev/null and b/roms/Life [GV Samways, 1980].ch8 differ diff --git a/roms/Pong (1 player).ch8 b/roms/Pong (1 player).ch8 new file mode 100755 index 0000000..65d6310 Binary files /dev/null and b/roms/Pong (1 player).ch8 differ diff --git a/roms/SQRT Test [Sergey Naydenov, 2010].ch8 b/roms/SQRT Test [Sergey Naydenov, 2010].ch8 new file mode 100755 index 0000000..5648551 Binary files /dev/null and b/roms/SQRT Test [Sergey Naydenov, 2010].ch8 differ diff --git a/roms/Timebomb.ch8 b/roms/Timebomb.ch8 new file mode 100755 index 0000000..76828c8 Binary files /dev/null and b/roms/Timebomb.ch8 differ diff --git a/roms/Worm V4 [RB-Revival Studios, 2007].ch8 b/roms/Worm V4 [RB-Revival Studios, 2007].ch8 new file mode 100755 index 0000000..03bc7b8 Binary files /dev/null and b/roms/Worm V4 [RB-Revival Studios, 2007].ch8 differ diff --git a/src/keyboard.ts b/src/keyboard.ts index b2ad974..fe13ae6 100644 --- a/src/keyboard.ts +++ b/src/keyboard.ts @@ -7,8 +7,8 @@ const KEYS = 16; // 7 8 9 E // A 0 B F class Keyboard { + // keys keys : Uint8Array; - userKeyboardMap: Map; constructor() {