Mercurial > repos > simple16
diff src/cpu.h @ 6:74a6d629b78f
Added assembler. Removed hand-assembled version of hello world example
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 26 Mar 2016 23:31:08 -0700 |
parents | 6204c81e2933 |
children | 5176efdda5ae |
line wrap: on
line diff
--- a/src/cpu.h Sat Mar 26 23:30:50 2016 -0700 +++ b/src/cpu.h Sat Mar 26 23:31:08 2016 -0700 @@ -45,6 +45,9 @@ cpu* alloc_cpu(uint32_t clock_divider, uint32_t num_regions, memory_region *regions); void run_cpu(cpu *context, uint32_t target_cycle); +extern char * mnemonics[]; +extern char * mnemonics_single_src[]; +extern char * mnemonics_single_reg[]; enum { LDIM, @@ -111,4 +114,7 @@ COND_LEQ }; +#define REG_PC 14 +#define REG_SR 15 + #endif //CPU_H_