EMAC PRIMER Instruction Manual page 88

Table of Contents

Advertisement

SERVICE 0
DEMO
INPUT
OUTPUT
SERVICE 1
CONIN
INPUT
OUTPUT
SERVICE 2
CONSTAT
INPUT
OUTPUT
SERVICE 3
CONOUT
INPUT
OUTPUT
SERVICE 4
PSTRING
INPUT
OUTPUT
SERVICE 5
UPRINT
INPUT
OUTPUT
SERVICE 6
SPRINT
INPUT
OUTPUT
SERVICE 7
MULT
INPUT
OUTPUT
OUTPUT
SERVICE 8
DIV
INPUT
OUTPUT
Demonstration; this service routine sends a pitch of increasing frequency to the speaker
while flashing the output LEDs at an increasing rate.
REGISTER C: 0
NONE
Console input; this service waits for a key from the terminal keyboard to be pressed. This
service requires the optional serial port.
REGISTER C: 1
REGISTER L: ASCII character returned from keyboard.
Console input status; this service returns a 0FFH if a key was pressed otherwise a 00H.
This service is used in conjunction with a PC/Terminal device connected to the serial
port. This service requires the optional serial port.
REGISTER C: 2
REGISTER L: Console status.
Console output; this service outputs a ASCII character to the terminal CRT. This service
is used in conjunction with a PC/Terminal device connected to the serial port. This
service requires the optional serial port.
REGISTER C: 3
REGISTER E: ASCII character.
NONE
Print string; this service prints to the terminal display the string of ASCII characters
starting at the address in the DE register pair until a "$" is encountered. The "$" delimiter
is not printed. This service is used in conjunction with a PC/Terminal device connected
to the serial port. This service requires the optional serial port.
REGISTER C: 4
REGISTER PAIR DE: Starting character string address.
REGISTER PAIR DE: Address of character after the "$" character.
Unsigned print; this service prints to the terminal display a 16 bit number, in decimal
without use of sign. This service is used in conjunction with a PC/Terminal device
connected to the serial port. This service requires the optional serial port.
REGISTER C: 5
REGISTER PAIR DE: 16 bit unsigned number to print.
NONE
Signed print; this service prints a 16 bit number to the terminal display, in decimal with
use of sign (2's complement). This service is used in conjunction with a PC/Terminal
device connected to the serial port. This service requires the optional serial port.
REGISTER C: 6
REGISTER PAIR DE: 16 bit signed number to print.
NONE
Multiply; this service multiplies two 16 bit numbers. The HL register is returned as the
most significant word and the DE register is returned as the least significant word.
REGISTER C: 7
REGISTER PAIR DE: 16 bit multiplicand.
REGISTER PAIR HL: 16 bit multiplier.
REGISTER PAIR HL: Most significant word of product.
REGISTER PAIR DE: Least significant word of product.
Unsigned division; this service divides HL by DE (HL/DE). The quotient is returned in HL
and the remainder in DE.
REGISTER C: 8
REGISTER PAIR HL: 16 bit dividend.
REGISTER PAIR DE: 16 bit divisor.
REGISTER PAIR HL: 16 bit quotient.
REGISTER PAIR DE: 16 bit remainder.
88

Advertisement

Table of Contents
loading

Table of Contents