Compare commits
9 Commits
39df51900d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 93da83704f | |||
| 2d53a59399 | |||
| 7a893076fb | |||
| 4c7073657f | |||
| 2252e1fa75 | |||
| 20d8953220 | |||
| cc868fa6ec | |||
| daad92956e | |||
| 1d8b889771 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,3 +3,5 @@
|
|||||||
/chip8
|
/chip8
|
||||||
/mos6502
|
/mos6502
|
||||||
/riscv64
|
/riscv64
|
||||||
|
/riscv64-linux-musl-cross
|
||||||
|
/dump
|
||||||
6
LICENSE
6
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
BSD 3-Clause License
|
BSD 2-Clause License
|
||||||
|
|
||||||
Copyright (c) 2025-2026, Antoni Piasecki
|
Copyright (c) 2025-2026, Antoni Piasecki
|
||||||
|
|
||||||
@@ -12,10 +12,6 @@ modification, are permitted provided that the following conditions are met:
|
|||||||
this list of conditions and the following disclaimer in the documentation
|
this list of conditions and the following disclaimer in the documentation
|
||||||
and/or other materials provided with the distribution.
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
3. Neither the name of the copyright holder nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Emulators written in C and C++
|
Emulators written in C and C++
|
||||||
|
|
||||||
* `riscv64.cc` - [RV64IM instruction set](https://en.wikipedia.org/wiki/RISC-V) (more extensions coming soon-ish)
|
* `riscv64.cc` - [RV64IMAC instruction set](https://en.wikipedia.org/wiki/RISC-V) (more extensions coming soon-ish)
|
||||||
* `chip8.c` - [CHIP8](https://en.wikipedia.org/wiki/CHIP-8)
|
* `chip8.c` - [CHIP8](https://en.wikipedia.org/wiki/CHIP-8)
|
||||||
* `mos6502.c` - [MOS 6502](https://en.wikipedia.org/wiki/MOS_Technology_6502)
|
* `mos6502.c` - [MOS 6502](https://en.wikipedia.org/wiki/MOS_Technology_6502)
|
||||||
|
|
||||||
|
|||||||
2
chip8.c
2
chip8.c
@@ -345,7 +345,7 @@ void chip8_step(CHIP8 *c) {
|
|||||||
break;
|
break;
|
||||||
case 0x0A: {
|
case 0x0A: {
|
||||||
uint8_t key_pressed = 0;
|
uint8_t key_pressed = 0;
|
||||||
while (!key_pressed && WindowShouldClose()) {
|
while (!key_pressed && !WindowShouldClose()) {
|
||||||
for (size_t i = 0; i < 16; i++) {
|
for (size_t i = 0; i < 16; i++) {
|
||||||
if (IsKeyDown(keyboard_map[i])) {
|
if (IsKeyDown(keyboard_map[i])) {
|
||||||
key_pressed = 1;
|
key_pressed = 1;
|
||||||
|
|||||||
1290
riscv64.cc
1290
riscv64.cc
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user