Skip to content

seprov/hello-arm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-arm

Some basic Arm assembly programming on Raspberry Pi

first.s

Compile:
as -o first.o first.s
gcc -o first first.o

Run:

./first

Output: (nothing)

collatz.s

Compile:
as -o collatz.o collatz.s
gcc -o collatz collatz.o

Run:

./collatz ; echo $?

Output: 251

hello-world.s

Compile
as -o hello-world.o hello-world.s
gcc -o hello-world hello-world.o

Run:

./hello-world

Output: Hello, world!

Footnotes

  1. This is the number of iterations to get from n, which by default is 100, to 1 via the Collatz function. See Wikipedia for more details.

About

Some basic Arm assembly programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published