Skip to content

Commit

Permalink
Tidy up the assembly a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
adamransom committed Nov 8, 2016
1 parent 74a6ba0 commit cb02f21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions led01/src/kernel.s
Expand Up @@ -34,7 +34,7 @@ PropertyInfoEnd:
.section .text
_start:
mailbox .req r0 @; Alias mailbox to r0
ldr r0, =0x3f00b880 @; Load the mailbox's base address into r0
ldr mailbox, =0x3f00b880 @; Load the mailbox's base address into r0

wait1$:
status .req r1 @; Alias status to r1
Expand All @@ -49,5 +49,5 @@ _start:
str message, [mailbox, #0x20] @; Put the message in the mailbox
.unreq message @; Unset the alias

wait2$:
b wait2$ @; Give the CPU something to do ad infinitum
hang:
b hang @; Give the CPU something to do ad infinitum

0 comments on commit cb02f21

Please sign in to comment.