mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:43:15 -06:00
* added hack to handle tunes * quiet clean * added chmod for execution * suppress warnings * Multi-boot fixes * the windows build somehow thinks that these filesystems are cpm3. * credit and primitive instructions * Update sd.asm Cosmetic fix. * make compile shut up about conditionals * Add bin2asm for linus and update build to process font files under linix * fixed quoted double quote bug, added tests * added tests * added bin2asm for font file source creation * Revert linux bin2asm font stuff * added rule for font source generation * build fonts * added directory mapping cache. if the same directory is being hit as last run, we don't need to rebuild the map. will likely break if you are running more than one at a time, in that the cache will be ineffective. also, if the directory contents change, this will also break. * removed strip. breaks osx * added directory tag so . isn't matched all over the place * added real cache validation * fixed build * this file is copied from optdsk.lib or optcmd.lib * install to ../HBIOS * prerequisite verbosity * diff soft failure and casefn speedup * added lzsa * added lzsa * removed strip. breaks on osx * added clobber * added code to handle multiple platform rom builds with rom size override * added align and 0x55 hex syntax * default to hd64180 * added N8 capability * added SBC_std.rom to default build * added support for binary diff * diff fixes * clean, identical build. font source generator emitted .align. this does not match the windows build * Upgrade NZCOM to latest * Misc. Cleanup * fixed expression parser bug : ~(1|2) returned 0xfe * added diff build option * Update Makefile Makefile enhancement to better handle ncurses library from Bob Dunlop. * Update sd.asm Back out hack for uz80as now that Curt fixed it. * Misc. Cleanup * UNA Catchup UNA support was lacking some of the more recent behavior changes. This corrects most of it. * Add github action for building RomWBW * Bump Pre-release Version * Update build.yml Added "make clean" which will remove temporary files without removing final binary outputs. * Update Makefile Build all ROM variants by default in Linux/Mac build. * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update for GitHub Build Case issue in TASM includes showing up in GitHub build. This should correct that. * Added an gitignore files to exclude generated files * Removed Tunes/clean.cmd and Tunes/ReadMe.txt - as make clean removes them * Build.sh: marked as executable chmod +x Build.sh * Fix to HBIOS/build.sh When adding files to rom disk, if files were missing, it would error out. It appears the intent is to skip non-existing files. Updated to log out correctly for missing files - and continue operation. * Update Microsoft NASCOM BASIC.docx Nascom manual, text version by Jan S (full name unknown) * Fix issue with Apps/Tune not making If dest directory does not exist, fails to make Apps * Create ReadMe.txt * Update Makefile * Update Build.sh * Make .gitignores for Tools/unix more specific * cpmtools Update Updated cpmtools applications (Windows only). Removed hack in diskdefs that is no longer required. * HBIOS Proxy Temp Stack Enhancement Reuse the bounce buffer area as the temporary stack space required briefly in HBX_INVOKE when transitioning banks. Increases size of temporary stack space to 64 bytes. * Update ReadMe.txt * HBIOS - clean up TMPSTK * Update hbios.asm Minor cosmetic changes. * Build Process Updates Minor udpates to build process to improve consistency between Windows and Mac/Linux builds. * Update hbios.asm Add improved interrupt protection to HBIOS PEEK, POKE, and BNKCPY functions. * hbios - wrap hbx_bnkcpy * hbios - adjust hbx_peek hbx_poke guards * Update hbios.asm Adjusted used of DI/EI for PEEK and POKE to regain a bit of INTSTK space. Added code so that HB_INVBNK can be used as a flag indicating if HBIOS is active, $FF is inactive, anything else means active. * Add HBIOS MuTex * Initial Nascom basic ecb-vdu graphics set and reset for 80x25b screen with 256 character mod * Finalize Pre-release 34 Final support for FreeRTOS * Update nascom.asm Optimization, cleanup, tabs and white spaces * IDE & PPIDE Cleanup * Clean up Make version include files common. * Update Makefile * Update Makefile * Build Test * Build Test * Build Fixes * Update nascom.asm Cleanup * Update nascom.asm Optimization * hbios - temp stack tweak * Update hbios.asm Comments on HBX_BUF usage. * Update nascom.asm Optimization * Update nascom.asm Setup ECB-VDU build option, remove debug code * Update nascom.asm Set default build. update initialization * Update nascom.asm Make CLS clear vdu screen * Update nascom.asm Fixup top screen line not showing * Add SC131 Support Also cleaned up some ReadMe files. * HBIOS SCZ180 - remove mutex special files * HBIOS SCZ180 - adjust mutex comment * Misc. Cleanup Includes some minor improvements to contents in some disk images. * Delete FAT.COM Changing case of FAT.COM extension to lowercase. * Create FAT.com Completing change of case in extension of FAT.com. * Update Makefile Remove ROM variants that just have the HBIOS MUTEX enabled. Users can easily enable this in a custom build. * Cleanup Removed hack from Images Makefile. Fixed use of DEFSERCFG in various places. * GitHub CI Updates Adds automation of build and release assets upon release. * Prerelease 36 General cleanup * Build Script Cleanups * Config File Cleanups * Update RomWBW Architecture General refresh for v2.9.2 * Update vdu.asm Removed a hack in VDU driver that has existed for 8 years. :-) * Fix CONSOLE Constant Rename CIODEV_CONSOLE constant to CIO_CONSOLE because it is a unit code, not a device type code. Retabify TastyBasic. * Minor Bug Fixes - Disk assignment edge case - CP/M 3 accidental fall thru - Cosmetic updates * Update util.z80 * Documentation Cleanup * Documentation Update * Documentation Update * Documentation Updates * Documentation Updates * Create Common.inc * Documentation Updates * Documentation Updates * doc - a few random fixes * Documentation Cleanup * Fix IM 0 Build Error in ACIA * Documentation Updates * Documentation Cleanup * Remove OSLDR The OSLDR application was badly broken and almost impossible to fix with new expanded OS support. * Bug Fixes - Init RAM disk at boot under CP/M 3 - Fix ACR activation in TUNE * FD Motor Timeout - Made FDC motor timeout smaller and more consistent across different speed CPUs - Added "boot" messaging to RTC * Cleanup * Cleanup - Fix SuperZAP to work under NZCOM and ZPM3 - Finalize standard config files * Minor Changes - Slight change to ZAP configuration - Added ZSDOS.ZRL to NZCOM image * ZDE Upgrade - Upgraded ZDE 1.6 -> 1.6a * Config File Tuning * Pre-release for Testing * cfg - mutex consistent config language * Bump to Version 3.0 * Update SD Card How-To Thanks David! * update ReadMe.md Remove some odd `\`. * Update ReadMe.txt * Update ReadMe.md * Update Generated Doc Files * Improve XModem Startup - Extended startup timeout for XM.COM so that it doesn't timeout so quickly while host is selecing a file to send. - Updated SD Card How-To from David Reese. * XModem Timing Refinements * TMS Driver Z180 Improvements - TMS driver udpated to insert Z180 I/O waitstates internally so other code can run at full speed. - Updated How-To documents from David. - Fixed TUNE app to properly restore Z180 I/O waitstates after manipulating them. * CLRDIR and ZDE updates - CLRDIR has been updated by Max Scane for CP/M 3 compatibility. - A minor issue in the preconfigured ZDE VT100 terminal escape sequences was corrected. * Fix Auto CRT Console Switch on CP/M 3 * Handle lack of RTC better DSRTC driver now correctly returns an error if there is no RTC present. * Minor RTC Updates * Finalize v3.0.1 Cleanup release for v3.0 * New ROMLDR and INTRTC driver - Refactored romldr.asm - Added new periodic timer based RTC driver * CP/M 3 Date Hack - Hack to allow INTRTC to increment time without destroying the date * Update romldr.asm Work around minor Linux build inconsistency * Update Apps for New Version * Revert "Update Apps for New Version" This reverts commitad80432252. * Revert "Update romldr.asm" This reverts commit4a9825cd57. * Revert "CP/M 3 Date Hack" This reverts commit153b494e61. * Revert "New ROMLDR and INTRTC driver" This reverts commitd9bed4563e. * Start v3.1 Development * Update FDISK80.COM Updated FDISK80 to allow reserving up to 256 slices. * Update sd.asm For Z180 CSIO, ensure that xmit is finished, before asserting CS for next transaction. * Add RC2014 UART, Improve SD protocol fix - RC2014 and related platforms will autodetect a UART at 0xA0 and 0xA8 - Ensure that CS fully brackets all SD I/O * ROMLDR Improvements .com files can now be started from CP/M and size of .com files has been reduced so they always fit. * Update commit.yml Run commit build in all branches * Update commit.yml Run commit build for master and dev branches * Improved clock driver auto-detect/fallback * SIO driver now CTC aware The SIO driver can now use a CTC (if available) to provide much more flexible baud rate programming. * CTC driver fine tuning * Update xmdm125.asm Fixed a small issue in core XM125 code that caused a file write error message to not be displayed when it should be. * CF Card compatibility improvement Older CF Cards did not reset IDE registers to defaults values when reset. Implemented a work around. * Update ACIA detection ACIA should no longer be detected if there is also a UART module in the system. * Handle CTC anomaly Small update to accommodate CTC behavior that occurs when the CTC trigger is more than half the CTC clock. * Update acia.asm Updated ACIA detection to use primary ACIA port instead of phantom port. * Update acia.asm Fix bug in ACIA detection. Thanks Alan! * MacOS Build Improvement Build script updated to improve compatibility with MacOS. Credit to Fredrik Axtelius for this. * HBIOS Makefile - use env vars for target Allow build ROM targets to be restricted to just one platform thru use of ENV vars: ROM_PLATFORM - if defined to a known platform, only this platform is build - defaults to std config ROM_CONFIG - sets the desired platform config - defaults to std if the above ENVs are not defined, builds all ROMs * Added some more gitignores * Whitespace changes (crlf) * HBIOS: Force the assembly to fail for vdu drivers if function table count is not correct * Whitespace: trailing whitespaces * makefile: updated some make scripts to use when calling subdir makefiles * linux build: update to Build.sh fix for some platforms The initialization of the Rom dat file used the pipe (|) operator to build an initial empty file. But the pipe operator | may sometimes return a non-zero exit code for some linux platforms, if the the streams are closed before dd has fully processed the stream. This issue occured on a travis linux ubuntu image. Solution was to change to redirection. * Bump version * Enhance CTC periodic timer Add ability to use TIMER mode in CTC driver to generate priodic interrupts. * HBIOS: Added support for sound drivers New sound driver support with initial support for the SN76489 chip New build configuration entry: * SN76489ENABLE Ports are currently locked in with: * SN76489_PORT_LEFT .EQU $FC ; PORTS FOR ACCESSING THE SN76489 CHIP (LEFT) * SN76489_PORT_RIGHT .EQU $F8 ; PORTS FOR ACCESSING THE SN76489 CHIP (LEFT) * Miscellaneous Cleanup No functional changes. Co-authored-by: curt mayer <curt@zen-room.org> Co-authored-by: Wayne Warthen <wwarthen@gmail.com> Co-authored-by: ed <linux@maidavale.org> Co-authored-by: Dean Netherton <dnetherton@dius.com.au> Co-authored-by: ed <ed@maidavale.org> Co-authored-by: Phillip Stevens <phillip.stevens@gmail.com> Co-authored-by: Dean Netherton <dean.netherton@gmail.com>
435 lines
16 KiB
Plaintext
435 lines
16 KiB
Plaintext
The following has been taken direct from the ZPM3 source and is
|
||
provided as a reference. No guarantees are made with regard to
|
||
its accuracy. The only SCB entries that you should manipulate in
|
||
CP/M 3.0 are the ones published by its authors.
|
||
|
||
|
||
;-------------------------------------------------------------------------------
|
||
;68 TRAPS FOR WARM BOOT and CONSOLE FUNCTIONS
|
||
;-------------------------------------------------------------------------------
|
||
; This table allows you to replace certain BIOS functions with new ones in the
|
||
; TPA. Because of the banked nature of CP/M 3, simply changing the BIOS
|
||
; vector could cause a problem as some BIOS functions need to be in the
|
||
; system bank. If you redirect any of these functions, you should replace
|
||
; the first jump (0c3h) in each group with a LD HL, (21h). When restoring
|
||
; the jumps check first that the BIOS vectors you are restoring are in
|
||
; fact to the BIOS and not to another redirection. To do this, make sure
|
||
; that the BIOS jumps are pointing above themselves, not down into TPA.
|
||
|
||
; For ZPM, the need for the traps has been eliminated.
|
||
; Because pre-ZPM programs may attempt to write to the first byte of each
|
||
; trap, these bytes can only be used for other things with some caution!
|
||
|
||
; Warm boot trap
|
||
jp ?wboot ;68
|
||
jp dotpa ;6b
|
||
; Console status trap
|
||
jp ?const ;6e
|
||
jp dotpa ;71
|
||
; Console input trap
|
||
jp ?conin ;74
|
||
jp dotpa ;77
|
||
; Console output trap
|
||
jp ?conout ;7a
|
||
jp dotpa ;7d
|
||
|
||
;;; List output trap
|
||
;; jp ?list ;80
|
||
;; jp dotpa ;83
|
||
|
||
|
||
db 0c3h ;80 This first byte should not be used as it
|
||
; could get changed by programs which attempt to
|
||
; redirect the printer
|
||
|
||
db 0 ;81 Not used yet
|
||
|
||
db 0 ;82 Function 59 load user number. Normally
|
||
; function 59 loads from the current user
|
||
; however by setting this byte to a user
|
||
; number + 1, function 59 will load from
|
||
; that user area instead (only works with
|
||
; the ZCCP loader RSX). 0=current user number.
|
||
|
||
dw 0 ; -19 83
|
||
; This word is set to the address of the
|
||
; ZCPR system environment. If it is 0000h
|
||
; the BDOS assumes that the normal CP/M 3
|
||
; CCP system is running. Otherwise, the BDOS
|
||
; will perform certain functions differently.
|
||
; For example function 152 will use named
|
||
; directories if available, function 10
|
||
; will the use message buffers for CCP running
|
||
; flag and wheel protection of files is enabled.
|
||
|
||
; Note that Z3PLUS users can set this word
|
||
; once Z3PLUS is installed to enable the
|
||
; extra functions. ZCCP users need not worry
|
||
; as it will be done automatically.
|
||
|
||
db 0 ; -17 85
|
||
; This byte holds control flags for various ZPM3
|
||
; functions.
|
||
; bit 7: Setting this bit will clear the function
|
||
; 10 history buffer. Write only.
|
||
; bit 6: Controls enabling of the function 10 AUTO
|
||
; COMMAND facility. If set, control-Q toggles
|
||
; the facility on and off. If clear, control-Q
|
||
; has no effect. Read/Write.
|
||
; bit 5: After function 152 has been called, if a DU:
|
||
; D:,U: or DIR: spec has been found, this
|
||
; bit is set and the drive and user is
|
||
; set in the FCB.
|
||
; bit 4: This flag is for system use only. It is
|
||
; set after a function 55 call, but is reset
|
||
; after any other call.
|
||
; bit 3: After function 152 has been called, if a
|
||
; DIR: spec has been parsed, this bit is set
|
||
; and the user and drive is set in the FCB.
|
||
; bits 2-0: Not used yet
|
||
;-------------------------------------------------------------------------------
|
||
; SYSTEM CONTROL BLOCK (unofficial)
|
||
;-------------------------------------------------------------------------------
|
||
; None of these is accessed by the resident BDOS or the user
|
||
dw 0 ; -16 86
|
||
dw 0 ; -14 88
|
||
dw 0 ; -12 8a
|
||
dw 0 ; -10 8c
|
||
dw 0 ; -e 8e
|
||
|
||
dw 0 ; Bit mapped vector of drives -c 90
|
||
; with open files since last warm boot.
|
||
dw 0 ; Bit mapped vector of drives -a 92
|
||
; accessed since last warm boot.
|
||
|
||
dw 0 ; -8 94
|
||
dw 07h ; -6 96
|
||
dw base+6 ; This word is the address -4 98
|
||
; of the entry to the BDOS.
|
||
; It can be used to find the
|
||
; actual BDOS as opposed to
|
||
; the top of TPA.
|
||
db 0 ; -2 9a
|
||
db 0 ; -1 9b
|
||
;------------------------------------------------------------------------------
|
||
;9c SYSTEM CONTROL BLOCK
|
||
;------------------------------------------------------------------------------
|
||
; The official system control block starts here. In reality, the control block
|
||
; begins before this point, but this is the data section that we are
|
||
; told about in the DRI literature
|
||
; In this section, a code is used to signify which sections of the code
|
||
; access the bytes: a * means that that user may read and write the bytes
|
||
; a + means that the resident portion of the BDOS accesses the bytes
|
||
; a ~ means the banked portion of the BDOS accesses the bytes
|
||
; a ~~ means the banked portion of ZPM3 accesses the bytes, but CPM doesn't
|
||
scb:
|
||
db 0 ;+ Reserved 0 9c
|
||
dw 0 ;+ Reserved 1 9d
|
||
db 0 ; Reserved 3 9f
|
||
db 0 ; Reserved 4 a0
|
||
|
||
db 31h ; BDOS version number (in BCD) 5 a1
|
||
|
||
; The following four bytes may be used for any purpose.
|
||
; Note that CCP104 used 8 and 9. ZCCP and ZPM3 do not
|
||
; affect these bytes at all.
|
||
db 0 ;* Reserved for user 6 a2
|
||
db 0 ;* Reserved for user 7 a3
|
||
db 0 ;* Reserved for user 8 a4
|
||
db 0 ;* Reserved for user 9 a5
|
||
|
||
db 0 ; Reserved 0a a6
|
||
db 0 ; Reserved 0b a7
|
||
db 0 ; Reserved 0c a8
|
||
db 0 ; Reserved 0d a9
|
||
db 0 ; Reserved 0e aa
|
||
db 0 ; Reserved 0f ab
|
||
|
||
dw 0 ;* Program Error Return Code. 10 ac
|
||
; This 2-byte field can be used by a program to pass
|
||
; an error code or value to chained programs. CP/M 3's
|
||
; conditional command facility also uses this field to
|
||
; determine if a program executes successfuly. The
|
||
; BDOS Function 108 (Get/SET Program Return Code) is
|
||
; used to get/set this value
|
||
|
||
; Following byte holds the base page of the top
|
||
; multiple command RSX (only used by CCP).
|
||
db 0 ; Reserved 12 ae
|
||
|
||
; The following bytes are the default disk and user
|
||
; of the CCP. When the CCP is run, the disk and user
|
||
; is restored to these values unless flagged not to
|
||
; by the chain command.
|
||
db 0 ; CCP disk 13 af
|
||
db 0 ; CCP user number 14 b0
|
||
|
||
; The following word holds the address of the next
|
||
; command to get if running multiple commands or
|
||
; shells. It should not be set by the user.
|
||
|
||
dw 0 ; Multiple command pointer. CCP 15 b1
|
||
|
||
db 0 ; System flag CCP use 17 b3
|
||
; This byte is bit mapped as follows:
|
||
; Bit 0 Submit flag (set if a file beginning with '$'
|
||
; is found, cleared by CCP)
|
||
; 1 RSX flag (set by loader when it loads a null
|
||
; file with RSXs attached (indicates to CCP
|
||
; not to attempt to remove the RSXs until the
|
||
; second warm boot). May be set by RSXs
|
||
; 2-5 unknown (probably used by utilities)
|
||
; 6 Change default DU to last program's DU
|
||
; when chaining.
|
||
; 7 Chain flag. Set to indicate to CCP that
|
||
; there is a command to chain to at 080h.
|
||
|
||
db 0 ; System flag CCP use 18 b4
|
||
; This byte is bit mapped as follows:
|
||
; Bit 0 Display command flag
|
||
; 1 Display command flag
|
||
; 2 Unknown
|
||
; 3 File type search order
|
||
; 4 File type search order
|
||
; 5 Reset disk system
|
||
; 6 "GET" RSX flag (set if GET RSX is redirecting)
|
||
; 7 CCP running flag
|
||
; Bit 7 is the only one used by the BDOS (in function 10)
|
||
|
||
db 0 ; System flag CCP use 19 b5
|
||
; This byte is bit mapped as follows:
|
||
; Bit 0 Unknown
|
||
; 1 Cold boot flag
|
||
; 2-7 Unknown
|
||
|
||
db 0 ;* Console Width 1a b6
|
||
; This byte contains the number of columns
|
||
; (characters) per line on your console relative
|
||
; to zero. Most systems default this value to
|
||
; 79. You can set this default value by using
|
||
; GENCPM or the DEVICE utility. The console width
|
||
; value is used by CP/M 3 in BDOS function 10. It
|
||
; is not used by ZPM3. Typing a character into the
|
||
; last position of the screen, as specified by the
|
||
; Console Width field, must not cause the terminal
|
||
; to advance to the next line.
|
||
|
||
db 0 ; Console Column Position 1b b7
|
||
; This byte contains the current console column postion
|
||
|
||
db 0 ;* Console Page Length 1c b8
|
||
; This byte contains the number of lines (rows) on your
|
||
; console relative to zero. Most systems default this
|
||
; value to 23. This default value may be changed by
|
||
; using GENCPM or the DEVICE utility.
|
||
|
||
db 0 ; Reserved 1d b9
|
||
; The following word is used by function 10 and points
|
||
; to the next character to get in an initialised
|
||
; function 10 buffer. If a ^C termination occurs or
|
||
; if a null terminator is found before a CR or LF,
|
||
; this word is set 0. By setting DE NZ and pointing
|
||
; this word to a buffer before calling it, you
|
||
; can have it initialize buffers other than
|
||
; the default DMA.
|
||
|
||
dw 0 ;+~Reserved 1e ba
|
||
; The following word is used by multiple commands and
|
||
; shells. When function 10 retrieves information from
|
||
; an initialised buffer, it stores the next character
|
||
; position at offset 1e and here at 20. If a ^C
|
||
; termination occurs, 1e is set to 00, but 20 is left
|
||
; as it was so that the next command can be retrieved.
|
||
; Therefore, if 1e is 00 and 20 is NZ it means that
|
||
; a ^C termination happened
|
||
|
||
dw 0 ;~ Reserved 20 bc
|
||
|
||
|
||
; Redirection flags (following) for each of the five
|
||
; logical character devices. If your system's BIOS
|
||
; supports assignment of logical devices to physical
|
||
; devices, you can direct each of the five logical
|
||
; character devices to any combination of up to 12
|
||
; physical devices. The 16 bit word for each device
|
||
; represents the following:
|
||
;
|
||
; Each bit represents a physical device where bit 15
|
||
; corresponds to device zero and bit 4 corresponds to
|
||
; device 11. Bits zero through 3 are reserved for
|
||
; system use and are used for redirection to disk files.
|
||
;
|
||
dw 0 ;* CONIN Redirection Flag 22 be
|
||
dw 0 ;* CONOUT Redirection Flag 24 c0
|
||
dw 0 ;* AUXIN Redirection Flag 26 c2
|
||
dw 0 ;* AUXOUT Redirection Flag 28 c4
|
||
dw 0 ;* LIST Redirection Flag 2a c6
|
||
|
||
db 0 ;* Page Mode 2c c8
|
||
; If this byte is set to zero, some CP/M 3 utilities
|
||
; and CCP built in commands display one page of data
|
||
; at a time; you display the next page by pressing
|
||
; any key. If this byte is not set to zero, the system
|
||
; displays data on the screen without stopping. To
|
||
; stop and start the display, you can press CTRL-S and
|
||
; CTRL-Q respectively.
|
||
|
||
db 0 ; Default page mode 2d c9
|
||
|
||
db 0 ;* ~~ 2e ca
|
||
; Determines if CTRL-H is interpreted as a rub/del
|
||
; character. If this byte is set to 0, then CTRL-H is
|
||
; a backspace character (moves back and deletes). If
|
||
; this byte is set to 0ffh, then CTRL-H is a rub/del
|
||
; character, echoes the deleted character.
|
||
; Under ZPM3, the byte has no effect. It should not
|
||
; be used however as it may be written to by
|
||
; applications.
|
||
|
||
db 0 ;* 2f cb
|
||
; Determines if rub/del is interpreted as CTRL-H
|
||
; character. If this byte is set to 0, then rub/del
|
||
; echoes the deleted character. If this byte is
|
||
; set to 0ffh, then rub/del is interpreted as a
|
||
; CTRL-H character (moves back and deletes).
|
||
; Under ZPM3, the byte has no effect. It should not
|
||
; be used however as it may be written to by
|
||
; applications.
|
||
|
||
db 0 ;~ Reserved 30 cc
|
||
|
||
; Following two bytes are probably used by CP/M3 utilities
|
||
db 0 ; Reserved 31 cd
|
||
db 0 ; Reserved 32 ce
|
||
|
||
dw 0 ;*+ Console Mode 33 cf
|
||
; This is a 16 bit system parameter that determines
|
||
; the action of certain BDOS Console I/O functions.
|
||
|
||
dw bnkbuf ; Address of 128 byte buffer 35 d1
|
||
|
||
db '$' ;*+ Output delimiter character. 37 d3
|
||
; The default output delimiter character is $, but
|
||
; you can change this value by using the BDOS Function
|
||
; 110 Get/Set Output Delimiter.
|
||
|
||
db 0 ;* List Output Flag 38 d4
|
||
; If this byte is reset to 0, console output is not
|
||
; echoed to the list device. If this byte is set
|
||
; to 1, console output is echoed to the list device.
|
||
|
||
db 0 ; Scroll flag 39 d5
|
||
; Following bits set when in system bank and:
|
||
; Bit 7 is set when function 11 is checking the status.
|
||
; Bit 6 is set when function 2 is checking input.
|
||
; Note that raw input (function 6 and function 2 raw)
|
||
; will not set these bits.
|
||
|
||
dw scb ; Holds the address of the SCB 3a d6
|
||
|
||
dw 0080h ;+ Current DMA Address. 3c d8
|
||
; This address can be set by BDOS Function 26. The
|
||
; CCP initializes this value to 0080h. BDOS Function
|
||
; 13, Reset Disk System also sets the DMA address to
|
||
; 0080h.
|
||
|
||
db 0 ; Current Disk. 3e da
|
||
; This byte contains the currently selected default
|
||
; disk number. This value ranges from 0-15
|
||
; corresponding to drives a-p, respectively. BDOS
|
||
; Function 24, Return Current Disk, can be used to
|
||
; determine the current disk value.
|
||
|
||
dw 0 ; BDOS variable 'INFO' 3f db
|
||
; This word is used by the banked portion of the
|
||
; BDOS. It is normally an entry parameter.
|
||
|
||
db 0 ; FCB flag 41 dd
|
||
; If this byte = 0ffh, the word at 03fh is a valid
|
||
; FCB address.
|
||
|
||
db 0 ; Same drive flag 42 de
|
||
|
||
db 0 ;+ BDOS function for error 43 df
|
||
|
||
db 0 ; Current User Number. 44 e0
|
||
; This byte contains the current user number. This
|
||
; value ranges from 0-15. BDOS Function 32,
|
||
; Get/Set User Code can change or interrogate
|
||
; the currently active user number. Under ZPM3 you may
|
||
; change the currently active user number directly
|
||
; by writing to this byte.
|
||
|
||
dw 0 ;+ Reserved 45 e1
|
||
; Holds the current directory entry number. Lower
|
||
; two bits are the search return code.
|
||
|
||
dw 0 ;+ Search FCB address 47 e3
|
||
; Holds the FCB address of the last search for
|
||
; first/next operation.
|
||
|
||
db 0 ;+ Search type flag 49 e5
|
||
; 0=? in drive code search.
|
||
; 0fh=normal search.
|
||
|
||
db 01 ;* BDOS Multi-Sector Count. 4a e6
|
||
; This field is set by BDOS Function 44, Set Multi-
|
||
; Sector Count.
|
||
|
||
db 0 ;* BDOS Error Mode. 4b e7
|
||
; This field is set by BDOS Function 45, Set BDOS
|
||
; Error Mode. If this byte is set to 0ffh, the
|
||
; system returns to the current program without
|
||
; displaying any error messages.
|
||
|
||
|
||
db 0 ;* Drive Search Chain 1 4c e8
|
||
db 0ffh ;* Drive Search Chain 2 4d e9
|
||
db 0ffh ;* Drive Search Chain 3 4e ea
|
||
db 0ffh ;* Drive Search Chain 4 4f eb
|
||
|
||
db 0 ;* Temporary File Drive 50 ec
|
||
|
||
db 0 ; Error Drive. 51 ed
|
||
; This byte contains the drive number of the selected
|
||
; drive when the last physical or extended error
|
||
; occured.
|
||
|
||
db 0 ; Reserved 52 ee
|
||
db 0 ; Reserved 53 ef
|
||
|
||
db 0 ; Media Flag 54 f0
|
||
; This flag may be set by the BIOS to indicate that
|
||
; a drive door has opened thus signalling the BDOS
|
||
; to relog the drive if required.
|
||
db 0 ; Reserved 55 f1
|
||
db 0 ; Reserved 56 f2
|
||
|
||
db 080h ; BDOS Flags. 57 f3
|
||
; bit 7= expanded error messages
|
||
; 6= single byte allocation vectors
|
||
|
||
dw 0ffffh ;* Date in days in binary since 1 Jan 78 58 f4
|
||
db 0ffh ;* Hour in BCD 5a f6
|
||
db 0ffh ;* Minutes in BCD 5b f7
|
||
db 0ffh ;* Seconds in BCD 5c f8
|
||
|
||
COMBASE:
|
||
dw 0 ; Common Memory Base address 5d f9
|
||
; This value is zero for nonbanked systems, and
|
||
; nonzero for banked systems. Because the base
|
||
; address must reside on a page boundary, the
|
||
; first byte will always be 0. The second byte
|
||
; is the important one being the common memory
|
||
; base page.
|
||
|
||
jp bnkdos2 ; Pointer to second entry in banked DOS 5f fb
|
||
; This entry handles the displaying of errors to
|
||
; the user
|
||
|
||
dw start ; Top of user TPA 62 fe
|
||
; This word always reflects the top of TPA and
|
||
; should be the same as the word at 0006h unless a
|
||
; transient changes (0006h) without knowing about
|
||
; this word
|
||
|