calculator/tests/btohex.s

22 lines
377 B
ArmAsm
Raw Normal View History

# 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