Pristine Ack-5.5
[Ack-5.5.git] / mach / vax4 / libdb / machdep.s
1 .define ___Get_PC, ___Set_PC, ___u_LiB
2 .sect .text; .sect .rom; .sect .data
3
4 ! $Id: machdep.s,v 1.2 1994/06/24 13:53:18 ceriel Exp $
5
6 ! This is the machine-dependant part of the ACK debugger support.
7 ! ___Get_PC takes a frame pointer (local base) argument and returns the
8 !           return address from this frame.
9 ! ___Set_PC takes a frame pointer (local base) argument plus a return
10 !           address and sets the return address of this frame to the
11 !           return address supplied.
12 ! ___u_LiB  has a special register save mask: it also saves the
13 !           scratch registers.
14
15 .sect .text
16
17 ___Get_PC:
18         .data2 00
19         movl    4(ap),r0
20         beql    1f
21         movl    16(r0),r0
22 1:
23         ret
24
25 ___Set_PC:
26         .data2 00
27         movl    4(ap),r0
28         beql    1f
29         movl    8(ap),16(r0)
30 1:
31         ret
32
33 ___u_LiB:
34         .data2 07777
35         jmp ___uX_LiB+2