ack/mach/vax4/libsysV_2/sem.s

43 lines
480 B
ArmAsm
Raw Permalink Normal View History

1990-01-11 16:00:19 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
sem = 53
.define _semctl
.define _semget
.define _semop
1987-02-02 16:06:51 +00:00
_semop:
1990-01-11 16:00:19 +00:00
.data2 0x0000
1987-02-02 16:06:51 +00:00
pushl 12(ap)
pushl 8(ap)
pushl 4(ap)
pushl $2
1990-01-11 16:00:19 +00:00
calls $4,Isys1
1987-02-02 16:06:51 +00:00
ret
_semctl:
1990-01-11 16:00:19 +00:00
.data2 0x0000
1987-02-02 16:06:51 +00:00
pushl 16(ap)
pushl 12(ap)
pushl 8(ap)
pushl 4(ap)
pushl $1
1990-01-11 16:00:19 +00:00
calls $5,Isys1
1987-02-02 16:06:51 +00:00
ret
_semget:
1990-01-11 16:00:19 +00:00
.data2 0x0000
1987-02-02 16:06:51 +00:00
pushl 12(ap)
pushl 8(ap)
pushl 4(ap)
pushl $0
1990-01-11 16:00:19 +00:00
calls $4,Isys1
1987-02-02 16:06:51 +00:00
ret
1990-01-11 16:00:19 +00:00
Isys1:
.data2 0x0000
1987-02-02 16:06:51 +00:00
chmk $sem
1990-01-11 16:00:19 +00:00
bcc 1f
1987-02-02 16:06:51 +00:00
jmp cerror
1990-01-11 16:00:19 +00:00
1:
1987-02-02 16:06:51 +00:00
ret