A debugging emulator for legv8 assembly.
q
: quit the debuggerr [X]
: run the program until a breakpoint is hit or the program terminates. If X is provided X breakpoints are skipped which is useful for skipping X loop iterations.b X
: set a breakpoint at line X.s [X]
: run X instructions. If no X is provided defaults to 1.d
: prints registers and memory values in a format similar to hexdump, little-endianp X
: prints the contents of register X in little-endian hex and decimal.
NOTE: these aren't very well tested and may be prone to bugs.
- PRNT, PRNL, DUMP - treated as nops.
- ADDI
- ADD
- SUB
- SUBI
- SUBS
- CBZ
- CBNZ
- B
- B.EQ
- B.GT
- B.GE
- B.LT
- B.LE
- BL
- BR
- STUR
- LDUR
- LSL
- LSR
- ADDIS
- ADDS
- SUBIS
- ORR
- ORRI
- EOR
- EORI
- AND
- ANDS
- ANDI
- ANDIS
- MUL