Fixed input bugs.

Input from stdin now works as expected in the emulator.
New program to demo input from the command line.
This commit is contained in:
Anachronaut
2024-11-01 16:41:25 -04:00
committed by GitHub
parent 67eea181b8
commit c512f07305
3 changed files with 63 additions and 12 deletions
+3 -3
View File
@@ -92,9 +92,9 @@ D2 | OUTB | Writes the value of B to an Output specified by the next byte of Pro
### Input Operations: 3 Instructions
Hex Code | Mnemonic | Description
-- | -- | --
E1 | INA | Writes the value of an Input to A. The input port is specified the next byte of Program Memory.
E2 | INB | Writes the value of an Input to B. The input port is specified the next byte of Program Memory.
E3 | IND | Writes the value of an Input to Data Memory at the location referenced by the Data Pointer. The input port is specified by the next byte of Program Memory.
E0 | INA | Writes the value of an Input to A. The input port is specified the next byte of Program Memory.
E1 | INB | Writes the value of an Input to B. The input port is specified the next byte of Program Memory.
E2 | IND | Writes the value of an Input to Data Memory at the location referenced by the Data Pointer. The input port is specified by the next byte of Program Memory.
### Special Operations: 2 Instructions
Hex Code | Mnemonic | Description