您的位置:首页 > 大数据 > 人工智能

大型机汇编(mainframe assembler/HLASM)之中断向量表

2012-11-21 16:53 393 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: