System Call Conventions - Sharp mz-3500 Manual For Use

Business computer eos 3.0
Hide thumbs Also See for mz-3500:
Table of Contents

Advertisement

Section A:
System interface
A.2. System call conventions
All
system calls have the same convention:
Register C is loaded with a
function code, additional parameters (if any) are loaded into register E
or
intO register pair DE,
respectively.
Results from the
system
are
returned
in register pair HL,
if any.
Moreover,
register A is loaded
with the contents of L,
and register
8
with the contents of
H,
if
not
stated
otherwise.
The call itself is performed
by
a subroutine CALL to
address 0005H.
For example, if a character is to be sent to the screen,
the system call would look like this:
LD
LD
CALL
C,2
E,•*•
5
function code
output an asterisk
SYSTEM CALL
The system maintains a stack area of its own.
It is thus not
necessary
for the user program to supply extra stack for system calls.
EOS System manual
Daeumling & Zimmermann
Page 4

Advertisement

Chapters

Table of Contents
loading

Table of Contents