1985-07-26 12:51:45 +00:00
|
|
|
.define _read
|
1987-01-16 16:34:45 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
.sect .text
|
1985-07-26 12:51:45 +00:00
|
|
|
.extern _read
|
1987-01-16 16:34:45 +00:00
|
|
|
.sect .text
|
1985-07-26 12:51:45 +00:00
|
|
|
_read:
|
|
|
|
enter[], 0
|
|
|
|
save [r0,r1,r2,r3]
|
|
|
|
movd 3,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
|