public static function opcode240(Core $core) { $core->registerA = $core->memoryRead(0xff00 + $core->memoryRead($core->programCounter)); $core->programCounter = $core->programCounter + 1 & 0xffff; }