Added a bunch of roms
This commit is contained in:
parent
e6bdded35e
commit
6535ef4dc3
11
index.html
11
index.html
@ -39,6 +39,13 @@
|
|||||||
'./roms/7-beep.ch8',
|
'./roms/7-beep.ch8',
|
||||||
'./roms/8-scrolling.ch8',
|
'./roms/8-scrolling.ch8',
|
||||||
'./roms/Maze[David Winter, 199x].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
|
// Set user keys
|
||||||
@ -75,7 +82,7 @@
|
|||||||
emulator.startAudio(audioContext, volume);
|
emulator.startAudio(audioContext, volume);
|
||||||
|
|
||||||
// Load ROM
|
// Load ROM
|
||||||
fetch(fullDirRoms[6])
|
fetch(fullDirRoms[3])
|
||||||
.then(response => response.arrayBuffer())
|
.then(response => response.arrayBuffer())
|
||||||
.then(arrayBufferRom => {
|
.then(arrayBufferRom => {
|
||||||
let romData = new Uint8Array(arrayBufferRom);
|
let romData = new Uint8Array(arrayBufferRom);
|
||||||
@ -90,7 +97,7 @@
|
|||||||
emulator.emulateCycle();
|
emulator.emulateCycle();
|
||||||
emulator.drawToCanvas(emulatorCanvas, 8);
|
emulator.drawToCanvas(emulatorCanvas, 8);
|
||||||
}
|
}
|
||||||
}, 60);
|
}, 10);
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
BIN
roms/Airplane.ch8
Executable file
BIN
roms/Airplane.ch8
Executable file
Binary file not shown.
BIN
roms/Cave.ch8
Executable file
BIN
roms/Cave.ch8
Executable file
Binary file not shown.
BIN
roms/Chip8 Picture.ch8
Executable file
BIN
roms/Chip8 Picture.ch8
Executable file
Binary file not shown.
BIN
roms/Fishie [Hap, 2005].ch8
Executable file
BIN
roms/Fishie [Hap, 2005].ch8
Executable file
Binary file not shown.
BIN
roms/Life [GV Samways, 1980].ch8
Executable file
BIN
roms/Life [GV Samways, 1980].ch8
Executable file
Binary file not shown.
BIN
roms/Pong (1 player).ch8
Executable file
BIN
roms/Pong (1 player).ch8
Executable file
Binary file not shown.
BIN
roms/SQRT Test [Sergey Naydenov, 2010].ch8
Executable file
BIN
roms/SQRT Test [Sergey Naydenov, 2010].ch8
Executable file
Binary file not shown.
BIN
roms/Timebomb.ch8
Executable file
BIN
roms/Timebomb.ch8
Executable file
Binary file not shown.
BIN
roms/Worm V4 [RB-Revival Studios, 2007].ch8
Executable file
BIN
roms/Worm V4 [RB-Revival Studios, 2007].ch8
Executable file
Binary file not shown.
@ -7,8 +7,8 @@ const KEYS = 16;
|
|||||||
// 7 8 9 E
|
// 7 8 9 E
|
||||||
// A 0 B F
|
// A 0 B F
|
||||||
class Keyboard {
|
class Keyboard {
|
||||||
|
// keys
|
||||||
keys : Uint8Array;
|
keys : Uint8Array;
|
||||||
|
|
||||||
userKeyboardMap: Map<number, number>;
|
userKeyboardMap: Map<number, number>;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
Loading…
Reference in New Issue
Block a user