-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvtentry.macro
More file actions
24 lines (24 loc) · 1 KB
/
vtentry.macro
File metadata and controls
24 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
***********************************************************************
* VTENTRY generates a vector table entry for the memory-resident GCC *
* runtime routines. It must be called from within the VTABLE macro. *
* *
* Robert O'Hara, Redmond Washington, May 2009. *
* Bob Bolch and Adrian Sutherland, July 2020. *
***********************************************************************
MACRO
&NAME VTENTRY ,
GBLA &OFFSET
GBLC &CODE
AIF ('&CODE' EQ 'STUBS').A1
DC V(&NAME)
AGO .A2
.A1 ANOP
*
&NAME DS 0H Stub to call the real routine
ENTRY &NAME
L 15,GCCPTR Load address of CMSVTAB
L 15,&OFFSET.(,15) Load address of real routine
BR R15 Go directly there
.A2 ANOP
&OFFSET SETA &OFFSET+4 Increment for next call
MEND