()
| 68 | abstract public Card getOwner(); |
| 69 | |
| 70 | public void handleMLI() { |
| 71 | Emulator.withComputer(computer -> { |
| 72 | int returnCode = prodosMLI().intValue; |
| 73 | MOS65C02 cpu = (MOS65C02) computer.getCpu(); |
| 74 | cpu.A = returnCode; |
| 75 | // Clear carry flag if no error, otherwise set carry flag |
| 76 | cpu.C = (returnCode == 0x00) ? 00 : 01; |
| 77 | }); |
| 78 | } |
| 79 | |
| 80 | private MLI_RETURN prodosMLI() { |
| 81 | return Emulator.withMemory(memory -> { |
no test coverage detected