21 lines
377 B
ArmAsm
21 lines
377 B
ArmAsm
# Test for btohex
|
|
|
|
.org 0
|
|
# Provide program starting address to linker
|
|
.global _start
|
|
|
|
.extern btohex
|
|
.extern regdump
|
|
|
|
/* newlib system calls */
|
|
.set SYSEXIT, 93
|
|
|
|
.text
|
|
_start:
|
|
li a0, 0xA5
|
|
jal btohex
|
|
jal regdump
|
|
|
|
li t0, SYSEXIT # "exit" syscall
|
|
la a0, 0 # Use 0 return code
|
|
ecall # invoke syscall to terminate the program
|