holey-toys/examples/example.S

25 lines
437 B
ArmAsm
Raw Normal View History

2024-03-04 14:24:03 -06:00
; holey-bytes vm
; https://git.ablecorp.us/AbleOS/holey-bytes/src/branch/trunk/spec.md
; TODO:
; .origin 0x1000
2024-03-17 06:00:54 -05:00
; 'c' char literals
2024-03-05 08:17:19 -06:00
; .struct
2024-03-04 14:24:03 -06:00
start:
jmp end
un
add16 r1, r2, r255
addi8 r1, r2, -128
lra r1, r0, start
jmp start
end:
tx
2024-03-17 05:42:11 -05:00
hello_string:
2024-03-17 05:49:23 -05:00
.db "Hello,\x20world\n", 0
2024-03-17 05:42:11 -05:00
hello_string_end:
.db 42, "hi", 43
; TODO .db 'H', 'e', 'l', 'l', 'o', '\0'
.align 4
.dw 42
.dd 42
.dq 42