16 lines
178 B
ArmAsm
16 lines
178 B
ArmAsm
|
.define _write
|
||
|
.extern _write
|
||
|
.text
|
||
|
_write:
|
||
|
enter[], 0
|
||
|
save [r0,r1,r2,r3]
|
||
|
movd 4,r0
|
||
|
movd 12(fp),r1
|
||
|
movd 16(fp),r2
|
||
|
movd 0,r3
|
||
|
svc
|
||
|
movd 16(fp),r4
|
||
|
restore [r0,r1,r2,r3]
|
||
|
exit[]
|
||
|
ret 0
|