Skip to content

huntiep/legv8debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

legv8debug

A debugging emulator for legv8 assembly.

Supported commands

  • q: quit the debugger
  • r [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-endian
  • p X: prints the contents of register X in little-endian hex and decimal.

Currently implemented instructions

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

About

A Debugger for LEGv8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages