fn reset(ctx: &mut impl CpuContext, dest: u8) {
    // There's an extra delay at the start of an RST instruction.
    ctx.yield1m();
    push_helper(ctx, ctx.cpustate().regs.pc);
    ctx.cpustate_mut().regs.pc = dest as u16;
}
/// Executes the reset instruction. Similar to call with a fixed destination.
Executes the reset instruction. Similar to call with a fixed destination.
Executes the reset instruction . Similar to call with a fixed destination .
fn reset(ctx: &mut impl CpuContext, dest: u8) {
    // There's an extra delay at the start of an RST instruction.
    ctx.yield1m();
    push_helper(ctx, ctx.cpustate().regs.pc);
    ctx.cpustate_mut().regs.pc = dest as u16;
}
fn reset ( ctx : & mut impl CpuContext , dest : u8 ) { // There's an extra delay at the start of an RST instruction. ctx . yield1m ( ) ; push_helper ( ctx , ctx . cpustate ( ) . regs . pc ) ; ctx . cpustate_mut ( ) . regs . pc = dest as u16 ; }
Executes the reset instruction.
Executes the reset instruction .
ctx
&mut impl CpuContext
dest
u8
ctx
&mut impl CpuContext
dest
u8