mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 08:54:17 +00:00
72 lines
2.7 KiB
Plaintext
72 lines
2.7 KiB
Plaintext
;**************************************************************************
|
|
;* IBM Z80 Emulator System Interfacing Functions for CP/M 3 *
|
|
;* *
|
|
;* Date : 26th April 1995 *
|
|
;* Programmer : S.J.Kay *
|
|
;* *
|
|
;**************************************************************************
|
|
;
|
|
kbd1in equ 000h ;keyboard #1 initialize
|
|
kbd1st equ 001h ;keyboard #1 status
|
|
kbd1ip equ 002h ;keyboard #1 input
|
|
;
|
|
kbd2in equ 010h ;keyboard #2 (STDIN) initialize
|
|
kbd2st equ 011h ;keyboard #2 (STDIN) status
|
|
kbd2ip equ 012h ;keyboard #2 (STDIN) input
|
|
;
|
|
crt1in equ 020h ;CRT #1 initialize
|
|
crt1st equ 021h ;CRT #1 status
|
|
crt1op equ 022h ;CRT #1 output
|
|
;
|
|
crt2in equ 030h ;CRT #2 (STDOUT) initialize
|
|
crt2st equ 031h ;CRT #2 (STDOUT) status
|
|
crt2op equ 032h ;CRT #2 (STDOUT) output
|
|
;
|
|
lptini equ 040h ;CEN initialize
|
|
lptsta equ 041h ;CEN status
|
|
lptout equ 042h ;CEN output
|
|
;
|
|
comini equ 050h ;COM initialize
|
|
comist equ 051h ;COM input status
|
|
cominp equ 052h ;COM input
|
|
comost equ 053h ;COM output status
|
|
comout equ 054h ;COM output
|
|
;
|
|
gettme equ 060h ;get time from system clock
|
|
settme equ 061h ;set time in system clock
|
|
getdte equ 062h ;get date from system clock
|
|
setdte equ 063h ;set date in system clock
|
|
;
|
|
rdflop equ 080h ;read floppy disk sector
|
|
wrflop equ 081h ;write floppy disk sector
|
|
rdhard equ 082h ;read HDD file disk sector
|
|
wrhard equ 083h ;write HDD file disk sector
|
|
gtboot equ 084h ;get boot drive
|
|
gthard equ 085h ;get HDD file drive
|
|
flhard equ 086h ;flush HDD file data
|
|
;
|
|
blkcnt equ 090h ;return count of blocks available
|
|
blkget equ 091h ;get 128 bytes from storage
|
|
blkput equ 092h ;put 128 bytes into storage
|
|
blkfil equ 093h ;fill 128 bytes in storage with value
|
|
;
|
|
gtzseg equ 0a0h ;return current Z80 memory map segment
|
|
intfnc equ 0a1h ;interface to 8086 software interrupts
|
|
;
|
|
bnkuse equ 0f0h ;selects banked system and bank size
|
|
bnksel equ 0f1h ;select bank #0, #1
|
|
bnkmve equ 0f2h ;memory move (use bnkdta 1st if interbank)
|
|
bnkdta equ 0f3h ;select banks for interbank memory move
|
|
bnkdma equ 0f4h ;sets bank for DMA access
|
|
;
|
|
prmsta equ 0f8h ;return status of any Z80 Emulator parameters
|
|
prmget equ 0f9h ;return Z80 Emulator parameters address
|
|
vidsta equ 0fah ;return status of video output
|
|
vidset equ 0fbh ;turn video system on/off
|
|
usrbyt equ 0fch ;get/set user byte in emulator
|
|
failed equ 0fdh ;boot strap failure
|
|
rstz80 equ 0feh ;reset the Z80 emulator
|
|
extemu equ 0ffh ;exit the Z80 Emulator
|
|
;
|
|
; end of file
|