git.haldean.org x6502 / master opcode_handlers / flags.h
master

Tree @master (Download .tar.gz)

flags.h @masterraw · history · blame

case CLC:
    set_flag(m, FLAG_CARRY, 0);
    break;

case CLD:
    set_flag(m, FLAG_DECIMAL, 0);
    break;

case CLI:
    set_flag(m, FLAG_INTERRUPT, 0);
    break;

case CLV:
    set_flag(m, FLAG_OVERFLOW, 0);
    break;

case SEC:
    set_flag(m, FLAG_CARRY, 1);
    break;

case SED:
    set_flag(m, FLAG_DECIMAL, 1);
    break;

case SEI:
    set_flag(m, FLAG_INTERRUPT, 1);
    break;