6 .equ SPB_FWVEC_ADDR, 0x80001020
8 .equ FW_HALT_OFFS, 0x0c
9 .equ FW_RST_INTERACT_OFFS, 0x1c
10 .equ FW_WRITE_OFFS, 0x6c
55 addiu a0, a0, -8 # bd: address of the jal instruction to arg0
75 li t3, 8 # 8 nibbles to format
79 srl t1, a0, t1 # shift to low nibble
80 andi t1, t1, 0xf # and mask off everything above
85 addiu t1, t1, '0' # bd
94 sb zero, (t0) # zero-terminate
101 addiu sp, sp, 20 # bd
109 # compute string length -> a2
117 move a1, a0 # buffer pointer
119 move a3, sp # count pointer
121 lw t0, SPB_FWVEC_ADDR
122 addiu t0, t0, FW_WRITE_OFFS
123 lw t0, (t0) # grab the write entry point in t0
129 addiu sp, sp, 20 # bd
135 lw t0, SPB_FWVEC_ADDR
136 addiu t0, t0, FW_HALT_OFFS
146 hellostr: .asciiz "Hello SGI!\n"
147 foobar: .asciiz "This is a test!\n"