Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Integer-sequence/ARM-Assembly/integer-sequence.arm
Normal file
15
Task/Integer-sequence/ARM-Assembly/integer-sequence.arm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
.text
|
||||
.global main
|
||||
|
||||
@ An ARM program that keeps incrementing R0 forever
|
||||
@
|
||||
@ If desired, a call to some 'PRINT' routine --
|
||||
@ which would depend on the OS -- could be included
|
||||
|
||||
main:
|
||||
mov r0, #0 @ start with R0 = 0
|
||||
|
||||
repeat:
|
||||
@ call to 'PRINT' routine
|
||||
add r0, r0, #1 @ increment R0
|
||||
b repeat @ unconditional branch
|
||||
Loading…
Add table
Add a link
Reference in a new issue