Lectures‎ > ‎

Week05

Working with Assembly Language on the RPi

To assemble a program:

$ cat first.s
.global main
.func main

main:
    mov r0, #99
    bx lr
$ as -o first.o first.s
$ gcc -o first first.o

This will create a standalone executable called first.


Comments