1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-04-16 00:21:48 +00:00
Files
DoctorWkt.unix-jun72/src/lib/open.s

22 lines
200 B
ArmAsm

/ C library -- open
/ file = open(string, mode)
/
/ file == -1 means error
.globl _open
.data
_open:
1f
.text
1:
mov 2(sp),0f
mov 4(sp),0f+2
sys open; 0:..; ..
bec 1f
mov $-1,r0
1:
rts pc