Docs: Update todos re: invoking the cpu/assembler; move notes on this from `run-cpu.js` to `todo.md`
This commit is contained in:
parent
12f8e39c54
commit
ffe96962a4
|
|
@ -33,10 +33,7 @@
|
||||||
|
|
||||||
## Run-scripts
|
## Run-scripts
|
||||||
|
|
||||||
- [ ] Change interface to run in non-debug mode by default, and use a flag to select debug mode:
|
- [ ] Replace with running `./cpu.js` and `./assembler.js` diretly
|
||||||
- `./run-cpu.js foo.asm`
|
|
||||||
- `./run-cpu.js --debug foo.asm`
|
|
||||||
- `./run-cpu.js -d foo.asm`
|
|
||||||
|
|
||||||
## Simulator
|
## Simulator
|
||||||
|
|
||||||
|
|
@ -47,8 +44,23 @@
|
||||||
|
|
||||||
### CPU
|
### CPU
|
||||||
|
|
||||||
- [/] Add single-stepping
|
- [ ] Make single-stepping work with simulated keypad
|
||||||
- [ ] Make it work with simulated keypad
|
|
||||||
|
- [ ] Allow running pre-compiled machine code
|
||||||
|
|
||||||
|
I'm thinking of an interface like this...
|
||||||
|
|
||||||
|
$ ./cpu.js -mc code.bin
|
||||||
|
$ ./cpu.js code.asm
|
||||||
|
$ ./cpu.js --debug code.asm
|
||||||
|
|
||||||
|
Full list of flags I want:
|
||||||
|
|
||||||
|
-d --debug
|
||||||
|
-s --singlestep
|
||||||
|
-p --prettydisplay
|
||||||
|
-mc --machinecode
|
||||||
|
|
||||||
|
|
||||||
### Possible under-the-hood improvements
|
### Possible under-the-hood improvements
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,6 @@
|
||||||
// Run with single-stepping: `./run-cpu.js step assembly.asm`
|
// Run with single-stepping: `./run-cpu.js step assembly.asm`
|
||||||
// Debug with single-stepping: `./run-cpu.js stepdebug assembly.asm`
|
// Debug with single-stepping: `./run-cpu.js stepdebug assembly.asm`
|
||||||
|
|
||||||
// TODO: allow running pre-compiled machine code.
|
|
||||||
//
|
|
||||||
// i'm thinking of an interface like this...
|
|
||||||
//
|
|
||||||
// $ ./run-cpu -mc code.bin
|
|
||||||
// $ ./run-cpu code.asm
|
|
||||||
// $ ./run-cpu --debug code.asm
|
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const computer = require('./cpu.js');
|
const computer = require('./cpu.js');
|
||||||
const assembler = require('./assembler.js');
|
const assembler = require('./assembler.js');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue