ARMv7 assembly that outputs the contents of a register in decimal
This program has been written in ARMv7 assembly language as on the Raspberry Pi. These can be purchased online for around £10-30. The starter set can be purchased for approximately £50.
- Download or clone this GitHub repository
- (If downloaded) Extract the zip archive
- Compile the .s file
as –o model.o model.s
- Link the .o file(s)
- For a single .o file
ld –o model model.o
- For multiple files
ld –o model model.o myotherfile.o
- Run the program
./model
- Display Register 0
echo $?
- Download or clone this GitHub repository
- (If downloaded) Extract the zip archive
- Run the program
./model
- Display Register 0
echo $?
- Compile the .s file
as –g –o model.o model.s
- Link the .o files (as above)
ld –o model model.o
- Debug the program with
gdb model
- List the next 10 lines: l
- Set breakpoint: b [line number]
- Run the program: r
- Continue to the next breakpoint: c
- Output register values: i r
- Run next line only: s
- Help: h
- Quit: q