Commit Graph

6 Commits

Author SHA1 Message Date
Juhani Krekelä 117a2e24c2 Start work on a calculator program for Thingamajig 2022-08-08 18:52:34 +03:00
Juhani Krekelä 110280ed5e Avoid attempted reads past end of program image
Previously if what could be a load, store, branch, or call instruction
was located within last two bytes of the program image being
disassembled, the disassembler would try to read out of bounds to get
its address parameter. This change marks such cases as not being valid
instructions.
2022-08-08 18:48:23 +03:00
Juhani Krekelä 29cb28fa49 Add raw binary to disassemly 2022-07-23 15:51:11 +03:00
Juhani Krekelä 099b09eee3 Add a hashbang line 2022-07-23 15:46:27 +03:00
Juhani Krekelä 66e28d6ef8 Properly handle non-instruction bytes in the range 0xa0…0xbf
Previously address arguments were extracted without verifying the start
byte corresponded to a valid instruction. In case of a non-instruction
byte this would result in the two following bytes to be silently
skipped.
2022-05-10 11:19:22 +02:00
Juhani Krekelä 57473ee34e First commit 2022-05-08 14:14:36 +02:00