mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-27 02:14:19 +00:00
Upload
Digital Research
This commit is contained in:
82
CONTRIBUTIONS/z80em86/bios/tports.lib
Normal file
82
CONTRIBUTIONS/z80em86/bios/tports.lib
Normal file
@@ -0,0 +1,82 @@
|
||||
;**************************************************************************
|
||||
;* CP/M 3 BIOS for Z80em86 Z80 CPU emulator *
|
||||
;* *
|
||||
;* Interfacing Functions for CP/M 3 *
|
||||
;* *
|
||||
;* Copyright (C) 1992-2009 Stewart Kay *
|
||||
;**************************************************************************
|
||||
;
|
||||
; ChangeLog (most recent entries are at top)
|
||||
; ------------------------------------------
|
||||
; v1.0.0 - 16 February 2009, S.J.Kay
|
||||
; - Prepare for public release.
|
||||
;
|
||||
; v1.00 - 26 April 1995, S.J.Kay
|
||||
; - Undocumented changes.
|
||||
;
|
||||
; v0.00 - 1992, S.J.Kay
|
||||
; - Initial creation date.
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user