Riyyi
5d054c90f8
Emulator: Update comment wording
2022-08-31 20:21:44 +02:00
Riyyi
5a690a12d2
Meta: Add script to check for missing opcodes
2022-08-31 10:16:11 +02:00
Riyyi
461fc28c94
Emulator: Add support for negative numbers to DAA opcode
2022-08-31 01:22:36 +02:00
Riyyi
6c2e5d32d4
Emulator: Implement DAA opcode
2022-08-30 18:10:47 +02:00
Riyyi
525391144a
Emulator: Fix increment HL opcode
2022-08-30 16:41:20 +02:00
Riyyi
cfded56dcd
Emulator: Fix offset bug in readMemory() function
2022-08-30 16:24:51 +02:00
Riyyi
024e6aecc3
Emulator: Add comments to cycle waiting amount
2022-08-30 15:20:54 +02:00
Riyyi
baa679904c
Emulator: Implement RET opcodes, minus one
2022-08-29 01:54:31 +02:00
Riyyi
0c4d7b2112
Emulator: Implement JP opcodes
2022-08-29 01:31:02 +02:00
Riyyi
3346b5329a
Emulator: Implement XOR/OR opcodes
2022-08-29 01:12:59 +02:00
Riyyi
275739bd5b
Emulator: Implement SUB/SBC opcodes
2022-08-29 00:26:40 +02:00
Riyyi
d47dddfe69
Emulator: Implement ADC opcode
2022-08-28 22:47:30 +02:00
Riyyi
bf8bd66389
Emulator: Implement 8-bit ADD opcodes
2022-08-28 22:47:12 +02:00
Riyyi
3bac216698
Emulator: Add some missing LD opcodes
2022-08-28 22:16:01 +02:00
Riyyi
7dc569b1a1
Emulator: Add SCF/CCF opcodes
2022-08-28 22:16:01 +02:00
Riyyi
5015b9e59d
Emulator: Implement 16-bit INC opcode
2022-08-28 18:12:19 +02:00
Riyyi
a7169addd8
Emulator: Rename inc() => inc8()
2022-08-28 17:49:49 +02:00
Riyyi
4dffe1a60a
Emulator: Implement push/pop opcodes
2022-08-28 17:44:59 +02:00
Riyyi
69760e349e
Emulator: Fix compiler warnings in cpu-prefix.cpp
2022-08-28 17:44:59 +02:00
Riyyi
200cf12a8f
Emulator: Fix switch case numbers for prefix opcodes
2022-08-28 16:43:01 +02:00
Riyyi
c4ccbecaf7
Emulator: Add warning for illegal opcodes
2022-08-28 16:25:39 +02:00
Riyyi
ec0f8bf02e
Emulator: Implement SLA/SRA/SRL opcodes
2022-08-27 13:43:15 +02:00
Riyyi
ac03d70d83
fixup! Emulator: Implement SWAP opcodes
2022-08-27 13:38:04 +02:00
Riyyi
99c768d400
Emulator: Rename reg => register_
2022-08-27 13:36:07 +02:00
Riyyi
fb6ba43ff1
Emulator: Implement RL/RR opcodes
2022-08-27 13:36:07 +02:00
Riyyi
275cab4da4
Emulator: Implement RLC/RRC opcodes
2022-08-27 13:08:21 +02:00
Riyyi
d53f4759e3
Emulator: Implement SWAP opcodes
2022-08-27 12:43:01 +02:00
Riyyi
67698528e1
Emulator: Implement SET opcodes
2022-08-27 02:17:37 +02:00
Riyyi
e35aa06471
Emulator: Implement RES opcodes
2022-08-27 02:15:18 +02:00
Riyyi
6ada7261e7
Emulator: Add .cpp file for prefix $cb opcodes, implement BIT opcodes
2022-08-27 02:15:18 +02:00
Riyyi
ff2f94fc05
Doc: Added mnemonics for two opcode constants
2022-08-27 00:03:34 +02:00
Riyyi
81fe126068
Emulator: Add cartridge ROM bank loading
2022-08-26 07:22:44 +02:00
Riyyi
27abccf863
Emulator: Implement nop/rst opcodes
2022-08-26 07:14:32 +02:00
Riyyi
e7e1b58d01
Emulator: Add error message when reading/writing unmapped memory space
2022-08-26 06:11:57 +02:00
Riyyi
d33837f118
Emulator: Implement call opcodes
2022-08-26 05:39:09 +02:00
Riyyi
219520965c
Emulator: Implement Accumulator rotate opcodes
2022-08-25 19:53:40 +02:00
Riyyi
462fa09a00
Emulator: Implement AND opcodes
2022-08-25 15:11:03 +02:00
Riyyi
be3ee22086
Emulator: Add error message when reading unloaded cartridge header
2022-08-25 14:56:33 +02:00
Riyyi
c9e2bf9e94
Emulator: Implement 16-bit add opcodes
2022-08-25 14:56:33 +02:00
Riyyi
c81db1d3b5
Emulator: Rename decr16 => dec16 as there is only one variant
2022-08-25 14:55:58 +02:00
Riyyi
69dc545bf0
Emulator: Implement 8-bit decrement opcodes
2022-08-25 14:55:58 +02:00
Riyyi
802995b7d9
Emulator: Implement JR opcodes
2022-08-25 14:55:58 +02:00
Riyyi
eb0f4b6a5f
Doc: Add explanation of flag conditions
2022-08-25 11:42:46 +02:00
Riyyi
67f8bcfca9
Emulator: Implement INC and CP arithmetic opcodes
2022-08-25 02:02:57 +02:00
Riyyi
8e4dacca8a
Emulator: Add cli argument to specify bootrom path
2022-08-25 00:16:32 +02:00
Riyyi
dd2920b2a4
Emulator: Load cartridge header
2022-08-25 00:10:57 +02:00
Riyyi
2aa50d3532
Emulator: Put startup into a Loader class
2022-08-24 23:47:36 +02:00
Riyyi
589faceb9b
Doc: Clarify opcode mnemonic for 16-bit address registers
...
When you see a 16-bit register wrapped by parentheses, its referencing
the value at the address the register is pointing to rather than the
address itself.
2022-08-24 22:54:40 +02:00
Riyyi
e9b47d7d68
Emulator: Implement 16-bit DEC opcode
2022-08-24 22:53:35 +02:00
Riyyi
009938b126
Meta: Update ruc library
2022-08-24 22:10:19 +02:00