public static function opcode50(Core $core) { $core->memoryWrite($core->registersHL, $core->registerA); $core->registersHL = $core->unswtuw($core->registersHL - 1); }