Assembler: always add an END at the end of the output

This commit is contained in:
n loewen 2023-08-03 15:53:59 +01:00
parent d3134aa9e6
commit 5fa20c3963
3 changed files with 8 additions and 3 deletions

View File

@ -181,6 +181,10 @@ function decodeInstructions(str) {
} }
} }
// Add an END at the end
machineCode.push('0');
machineCode.push('0');
return new Uint8Array(machineCode); return new Uint8Array(machineCode);
} }

View File

@ -10,7 +10,9 @@
### Features ### Features
- [ ] Assembler: pad to 256 bytes, OR, to start, always add an END - [ ] Assembler:
- [x] Always add an END at the end
- [ ] Pad up to 256 bytes
- [x] Add constants to assembler - [x] Add constants to assembler
- [ ] Keypad - [ ] Keypad
- [ ] Add single-stepping - [ ] Add single-stepping

View File

@ -3,5 +3,4 @@
=bar $02 =bar $02
ADD =foo ADD =foo
STO =bar STO =bar
STO (=bar) STO (=bar)
END