大型機彙編(mainframe assembler/HLASM)之中斷向量表

Linkage

Macro

Function

SVC 00

XDAP

Reads or writes direct access volumes

SVC 00

EXCP

Executes a channel program for graphic access method (GAM)

SVC 01

WAIT

Waits for one or more events

SVC 02

POST

Signals event completion

SVC 03

None

Exits from called program

SVC 04

GETMAIN

Acquires user storage

SVC 05

FREEMAIN

Releases user-acquired storage

SVC 06

LINK

Passes control to another program

SVC 07

XCTL

Passes control to another program at the same task level and does not return to the calling program

SVC 08

LOAD

Reads a program into storage

SVC 09

DELETE

Deletes a loaded program

SVC 10

GETMAIN/ FREEMAIN

Manipulates user free storage

SVC 11

TIME

Gets the time of day

SVC 13

ABEND

Terminates processing with user specified completion and reason codes

SVC 14

SPIE

Sets up an exit to be given control under user selected program interrupts

SVC 17

RESTORE

NOP

SVC 18

BLDL

Builds a directory list for a partitioned data set

SVC 18

FIND

Locates a member of a partitioned data set

SVC 19

OPEN

Prepares a DCB for I/O processing

SVC 20

CLOSE

Completes and secures I/O processing on a DCB

SVC 21

STOW

Updates partitioned dataset directories

SVC 22

OPEN TYPE=J

Prepares a DCB for I/O processing after an RDJFCB has been issued

SVC 23

CLOSE TYPE=T

Temporarily deactivates a tape or DASD file

SVC 24

DEVTYPE

Obtains device-type physical characteristics

SVC 25

TRKBAL

NOP

SVC 31

FEOV

Forces an EOV condition on a tape or DASD file

SVC 35

WTO/WTOR

Writes a message to the operator's terminal

SVC 40

EXTRACT

NOP

SVC 41

IDENTIFY

Adds an entry name to a loaded program

SVC 42

ATTACH

Passes control to another program at a new task level

SVC 44

CHAP

NOP

SVC 46

TTIMER

Tests or cancels timer

SVC 46

STIMERM

Tests or cancels multiple timer (real time only)

SVC 47

STIMER/STIMERM

Sets the timer interval and the timer exit routine

SVC 48

DEQ

NOP

SVC 51

SNAP

Dumps specified areas of storage

SVC 56

ENQ

NOP

SVC 57

FREEDBUF

Releases simulated BDAM buffer

SVC 60

STAE

Sets up an abend exit routine in a 370 virtual machine

SVC 60

ESTAE

Sets up an abend exit routine in a 370, XA and XC virtual machine

SVC 62

DETACH

NOP

SVC 63

CHKPT

NOP

SVC 64

RDJFCB

Obtains information from FILEDEF command about an OS/MVS data set

SVC 68

SYNADAF

Provides SYNAD analysis function

SVC 68

SYNADRLS

Releases SYNADAF message and save areas

SVC 69

BSP

Backs up a record on a tape or disk

SVC 93

TGET/TPUT

Reads or writes a terminal line

SVC 94

TCLEARQ

Clears terminal input queue

SVC 96

STAX

Sets or cancels user exit for terminal attention interrupts

SVC 109

ESPIE

Sets up handlers for program interrupts in XA and XC modes

SVC 112

PGRLSE

NOP

SVC 112

PGOUT

NOP

SVC 113

PGLOAD

NOP

SVC 122

LINK, XCTL, LOAD

Performs a link, transfer of control, or load in XA and XC virtual machines

SVC 138

PGSER

NOP

在大型機彙編裏沒有向量中斷表之說,但它本質上實現了PC彙編中的中斷向量表功能(對於中斷向量表相信大家都比較熟悉)。

本表本名爲SVC(Supervisor Calls), 其每一個分支其實都對應着一個響應的宏...

打個比方,在HLASM程序裏我們會經常用GETMAIN/FREEMAIN來獲取/釋放內存,上表就是告訴我們,當我們在用GETMAIN的時候其實是響應了'SVC 04'的中斷,而FREEMAIN響應的是'SVC 05'的中斷。

另外讀者還可以參考本人的另一篇博文大型機彙編(mainframe assembler/HLASM)之S0C4解讀,此處有對'SVC 35'更詳細的解讀。

 

                                                     申明:本文禁止轉載!

有疑問請聯繫349106216

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章