~intarga/i8080e

5fe717318c4eaf2499884fe92c1a62c7d7efc35c — Ingrid 1 year, 2 months ago 7b680a1 master
cpu: use bool to represent condition bits
1 files changed, 7 insertions(+), 6 deletions(-)

M src/cpu.h
M src/cpu.h => src/cpu.h +7 -6
@@ 1,4 1,5 @@
#include<stdint.h>
#include<stdbool.h>

#define CPUDIAG 0



@@ 23,12 24,12 @@ enum Register {
// -- System state --

typedef struct {
    uint8_t z;
    uint8_t s;
    uint8_t p;
    uint8_t cy;
    uint8_t ac;
    //uint8_t pad;
    bool z;
    bool s;
    bool p;
    bool cy;
    bool ac;
    //bool pad;
} Condition_codes;

typedef struct {