Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Supervisor Call in Assembly Language

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
jigar solanki

New User


Joined: 09 Dec 2005
Posts: 4

PostPosted: Tue Jan 10, 2006 5:00 pm    Post subject: Supervisor Call in Assembly Language
Reply with quote

Hi,

I want to know about the Supervisor Call (SVC).

like, where it USE. What is the format? etc.

Thanks.
Back to top
View user's profile Send private message
References
PostPosted: Tue Jan 10, 2006 5:00 pm    Post subject: Re: Supervisor Call in Assembly Language Reply with quote

DavidatK

Senior Member


Joined: 22 Nov 2005
Posts: 715
Location: Troy, Michigan USA

PostPosted: Tue Jan 10, 2006 11:22 pm    Post subject:
Reply with quote

Hi jigar solanki,

I suspect you will get better results by posting this on the Assembler forum. My guess is that most COBOL programmers don't know what a SVC call is.
Back to top
View user's profile Send private message
deepamk

New User


Joined: 30 Nov 2005
Posts: 8

PostPosted: Wed Jan 11, 2006 9:39 am    Post subject: Re: Supervisor Call in Assembly Language
Reply with quote

SVC (SuperVisor Call)is an RR type instruction in which the two register address fields are not utilized for register address, but contain a one byte numeric code(N) that identifies the purpose of SVC.

SVC N

where N - a decimal integer from 0 to 255.

When SVC is executed :
- Control is transferred to a fixed location within the operating system.
- the address of the instruction following the SVC is preserved so that the operating system can return control to the user program following completion of the task being requested.
- the state of the computer system is set to supervisor mode so that privileged instructions may be executed while the operating system is performing the task.
- the SVC operand is made available to the operating system through the interruption code field of the program status word.

The operating system determines the purpose of the SVC by examining the SVC operand code and proceeds accordingly.
eg: SVC 13 - means ABEND
SVC 8 --LOAD
SVC 9 -- DELETE etc...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1