commit | da4803e3a8782aef3a768be73271e5739a981d80 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Thu Aug 06 20:06:04 2020 -0700 |
committer | swissChili <swisschili@fastmail.com> | Thu Aug 06 20:06:04 2020 -0700 |
tree | f093d743aa64e05c5cd0846d343d79a18308fdd1 | |
parent | 62d6d5dac0b6bd70147fa943b048d6c6a6b0e0e9 [diff] [blame] |
Add run(), most instructions
diff --git a/cpu.h b/cpu.h index 651f97f..888972c 100644 --- a/cpu.h +++ b/cpu.h
@@ -138,4 +138,8 @@ void step(cpu_t *cpu); void free_cpu(cpu_t *cpu); void die(const char *message); +// IMPORTANT: all disassembly functions mess with the PC void disas(cpu_t *cpu); +void disas_num(cpu_t *cpu, uint16_t num); +void disas_step(cpu_t *cpu); +void run(cpu_t *cpu);