Skip to content

FHArchive/ARMv7.HeyThere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARMv7.HeyThere

ARMv7 assembly code that outputs the text "Hey there" to standard output (the screen)

Language information

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.

How to run

Method 1

  1. Download or clone this GitHub repository
  2. (If downloaded) Extract the zip archive
  3. Compile the .s file
as –o model.o model.s
  1. 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
  1. Run the program
./model
  1. Display Register 0
echo $?

Method 2

  1. Download or clone this GitHub repository
  2. (If downloaded) Extract the zip archive
  3. Run the program
./model
  1. Display Register 0
echo $?

Debug the program

  1. Compile the .s file
as –g –o model.o model.s
  1. Link the .o files (as above)
ld –o model model.o
  1. Debug the program with
gdb model

Noteworthy commands

  • 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

About

ARMv7 assembly code that outputs the text "Hey there" to standard output (the screen)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published