Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
17
lexers/testdata/armasm.actual
vendored
Normal file
17
lexers/testdata/armasm.actual
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
@ Hello World in ARM Assembly for Linux system
|
||||
|
||||
.global _start
|
||||
|
||||
_start:
|
||||
mov r7, #4 @ Setup service call 4 (write)
|
||||
mov r0, #1 @ param 1 - File descriptor 1 = stdout
|
||||
ldr r1, =hello @ param 2 - address of string to print
|
||||
mov r2, #13 @ param 3 - length of hello world string
|
||||
svc 0 @ ask linux to write to stdout
|
||||
|
||||
mov r7, #1 @ Setup service call 1 (exit)
|
||||
mov r0, #0 @ param 1 - 0 = normal exit
|
||||
svc 0 @ ask linux to terminate us
|
||||
|
||||
.data
|
||||
hello: .ascii "Hello World!\n"
|
Loading…
Add table
Add a link
Reference in a new issue