fn address_of_offset_sp(ctx: &mut impl CpuContext) {
    let offset = Operand8::Immediate.read(ctx) as i8;
    let (res, flags) = offset_addr(ctx.cpustate().regs.sp, offset);
    // Interestingly, this instruction is actually faster than `ADD SP,i8`.
    ctx.yield1m();
    ctx.cpustate_mut().regs.set_hl(res);
    ctx.cpustate_mut().regs.flags = flags;
}
/// Loads the result of offsetting the stack pointer by an immediate value into HL.
Loads the result of offsetting the stack pointer by an immediate value into HL.
Loads the result of offsetting the stack pointer by an immediate value into HL .
fn address_of_offset_sp(ctx: &mut impl CpuContext) {
    let offset = Operand8::Immediate.read(ctx) as i8;
    let (res, flags) = offset_addr(ctx.cpustate().regs.sp, offset);
    // Interestingly, this instruction is actually faster than `ADD SP,i8`.
    ctx.yield1m();
    ctx.cpustate_mut().regs.set_hl(res);
    ctx.cpustate_mut().regs.flags = flags;
}
fn address_of_offset_sp ( ctx : & mut impl CpuContext ) { let offset = Operand8 :: Immediate . read ( ctx ) as i8 ; let ( res , flags ) = offset_addr ( ctx . cpustate ( ) . regs . sp , offset ) ; // Interestingly, this instruction is actually faster than `ADD SP,i8`. ctx . yield1m ( ) ; ctx . cpustate_mut ( ) . regs . set_hl ( res ) ; ctx . cpustate_mut ( ) . regs . flags = flags ; }
Loads the result of offsetting the stack pointer by an immediate value into HL.
Loads the result of offsetting the stack pointer by an immediate value into HL .
ctx
&mut impl CpuContext
ctx
&mut impl CpuContext