Assembler: always add an END at the end of the output
This commit is contained in:
parent
d3134aa9e6
commit
5fa20c3963
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,4 @@
|
||||||
=bar $02
|
=bar $02
|
||||||
ADD =foo
|
ADD =foo
|
||||||
STO =bar
|
STO =bar
|
||||||
STO (=bar)
|
STO (=bar)
|
||||||
END
|
|
||||||
Loading…
Reference in New Issue