ack/mach/vax4/libsysV_2/shm.s

59 lines
617 B
ArmAsm
Raw Normal View History

1990-01-11 16:00:19 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
shm = 52
.define _shmat
.define _shmctl
.define _shmdt
.define _shmget
1987-02-02 16:06:51 +00:00
_shmat:
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
_shmdt:
1990-01-11 16:00:19 +00:00
.data2 0x0000
1987-02-02 16:06:51 +00:00
pushl 4(ap)
pushl $2
1990-01-11 16:00:19 +00:00
calls $2,Isys
1987-02-02 16:06:51 +00:00
ret
_shmctl:
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 $1
1990-01-11 16:00:19 +00:00
calls $4,Isys
1987-02-02 16:06:51 +00:00
ret
_shmget:
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 $3
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
Isys:
.data2 0x0000
1987-02-02 16:06:51 +00:00
chmk $shm
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
clrl r0
ret
1990-01-11 16:00:19 +00:00
Isys1:
.data2 0x0000
1987-02-02 16:06:51 +00:00
chmk $shm
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