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

Tree @master (Download .tar.gz)

stack.h @masterraw · history · blame

case PHA:
    STACK_PUSH(m) = m->ac;
    break;

case PHP:
    STACK_PUSH(m) = m->sr;
    break;

case PLA:
    m->ac = STACK_POP(m);
    break;

case PLP:
    m->sr = STACK_POP(m);
    break;