Commit Graph

8 Commits

Author SHA1 Message Date
mebibytedraco
e28e8eceb0 Move register printout into new 'reg' command 2023-12-22 17:12:22 -05:00
mebibytedraco
b1aa77aa70 Refactor system_breakpoint_handler
Modifies system_breakpoint_handler so that all fox32 registers are saved
on the stack in a predictable order, and they are printed using a loop.
Also comments out two seemingly unneccessary additions in the monitor's
hex printing functions.
2023-12-22 15:20:53 -05:00
jn
34589e501f Make use of data.strz
The ROM is the same before and after this commit:

$ sha256sum fox32-orig.rom fox32.rom
75b169dafbf7dc77cd114f7d05d9c1e8459122bc2bd4178a90aba6fd8dc7372e  fox32-orig.rom
75b169dafbf7dc77cd114f7d05d9c1e8459122bc2bd4178a90aba6fd8dc7372e  fox32.rom


The conversion was performed with a few sed commands and manually
unrolled in monitor/keyboard.asm:

find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0$/data.strz \1/g'
find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0 /data.strz \1 /g'
find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0x00 /data.strz \1 /g'
2023-02-01 23:49:23 +01:00
Ry
1899ed0f67 Show the actual rip value in the monitor when an exception occurs 2023-01-22 16:32:05 -08:00
Ry
1c73faafa1 Show rsp and rip in the brk register dump 2022-11-12 21:02:32 -08:00
Ry
7a3c1509a2 Add a cool register dump thing to the breakpoint exception handler 2022-10-27 19:10:03 -07:00
Ry
2720d0ddff Ignore the pushed value in interrupts and exceptions
Also handle more types of exceptions.
*** First commit compatible with the C rewrite!! ***
2022-10-26 21:50:29 -07:00
Ry
f307c55bdd Add default page fault exception handler, bump version to 0.3.3 2022-08-15 17:32:50 -07:00