fn offset_sp(ctx: &mut impl CpuContext) {
    let offset = Operand8::Immediate.read(ctx) as i8;
    let (res, flags) = offset_addr(ctx.cpustate().regs.sp, offset);
    // This instruction takes two more cycles after loading the offset.
    ctx.yield1m();
    ctx.yield1m();
    ctx.cpustate_mut().regs.sp = res;
    ctx.cpustate_mut().regs.flags = flags;
}
/// Offsets the stack pointer by an immediate value.
Offsets the stack pointer by an immediate value.
Offsets the stack pointer by an immediate value .
fn offset_sp(ctx: &mut impl CpuContext) {
    let offset = Operand8::Immediate.read(ctx) as i8;
    let (res, flags) = offset_addr(ctx.cpustate().regs.sp, offset);
    // This instruction takes two more cycles after loading the offset.
    ctx.yield1m();
    ctx.yield1m();
    ctx.cpustate_mut().regs.sp = res;
    ctx.cpustate_mut().regs.flags = flags;
}
fn offset_sp ( ctx : & mut impl CpuContext ) { let offset = Operand8 :: Immediate . read ( ctx ) as i8 ; let ( res , flags ) = offset_addr ( ctx . cpustate ( ) . regs . sp , offset ) ; // This instruction takes two more cycles after loading the offset. ctx . yield1m ( ) ; ctx . yield1m ( ) ; ctx . cpustate_mut ( ) . regs . sp = res ; ctx . cpustate_mut ( ) . regs . flags = flags ; }
Offsets the stack pointer by an immediate value.
Offsets the stack pointer by an immediate value .
ctx
&mut impl CpuContext
ctx
&mut impl CpuContext