GameBoy\Opcode::opcode223 PHP Method

opcode223() public static method

RST 0x18
public static opcode223 ( Core $core )
$core Core
    public static function opcode223(Core $core)
    {
        $core->stackPointer = $core->unswtuw($core->stackPointer - 1);
        $core->memoryWrite($core->stackPointer, $core->programCounter >> 8);
        $core->stackPointer = $core->unswtuw($core->stackPointer - 1);
        $core->memoryWrite($core->stackPointer, $core->programCounter & 0xff);
        $core->programCounter = 0x18;
    }
Opcode