diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-06-14 14:46:41 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-06-14 14:46:41 +0200 |
commit | bd0055bce96f47898b308232a2418918a4ff7734 (patch) | |
tree | 0be1f0daef8dac90f36502e1a7ba7d0a8686f2d3 /miniemu | |
parent | 22b4dd12c063090acc8a8a1297c41bde74e0de24 (diff) | |
download | compilertests-bd0055bce96f47898b308232a2418918a4ff7734.tar.gz compilertests-bd0055bce96f47898b308232a2418918a4ff7734.tar.bz2 |
flag renames in CPU emulator
Diffstat (limited to 'miniemu')
-rw-r--r-- | miniemu/cpu.c | 1 | ||||
-rw-r--r-- | miniemu/cpu.h | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/miniemu/cpu.c b/miniemu/cpu.c index 92f8a2b..f090d5b 100644 --- a/miniemu/cpu.c +++ b/miniemu/cpu.c @@ -455,5 +455,6 @@ void cpu_print_dump( Cpu *cpu ) print_register( "SP", cpu->SP ); print_register( "Z", cpu->CCR & Z_FLAG ); print_register( "C", cpu->CCR & C_FLAG ); + print_register( "V", cpu->CCR & V_FLAG ); print_register( "F", cpu->error ); } diff --git a/miniemu/cpu.h b/miniemu/cpu.h index 852b1c1..b9695c4 100644 --- a/miniemu/cpu.h +++ b/miniemu/cpu.h @@ -1,8 +1,9 @@ #pragma once typedef enum { - C_FLAG = 0x00, /* carry flag */ - Z_FLAG = 0x01 /* zero flag */ + Z_FLAG = 0x00, /* zero flag */ + C_FLAG = 0x01, /* carry flag */ + V_FLAG = 0x02 /* overflow flag */ } CCRFlag; typedef struct Cpu { |