akkartik / mu

Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
http://akkartik.name/akkartik-convivial-20200607.pdf
Other
1.35k stars 47 forks source link

SubX: Tip in `subx help opcodes` doesn't work #11

Closed tekknolagi closed 5 years ago

tekknolagi commented 5 years ago
willow% ./subx help opcodes     
Opcodes currently supported by SubX:
  01: add r32 to rm32
  03: add rm32 to r32
... SNIP ...
  0f 8e: jump disp16 bytes away if lesser or equal (ZF is set or SF != OF)
  0f 8f: jump disp16 bytes away if greater (ZF is unset, SF == OF)
Run `subx help instructions` for details on words like 'r32' and 'disp8'.
willow% ./subx help instructions
No help found for 'instructions'
Available top-level topics:
  usage
  registers
  opcodes
  syntax
Please check your command for typos.
willow%
akkartik commented 5 years ago

Nice catch. I reverted something a couple of days ago and left this because I figured nobody would notice :p

Everything should be back tonight.

tekknolagi commented 5 years ago

Would it be worth introducing a global subcommand map of sorts?

akkartik commented 5 years ago

Fixed by 431f739ddca73eb105bced65c169963a335e3134.

Yup, we can consider a map. I don't know how many more we're going to have immediately, so seems lower priority than labels and so on. You know, features :)