home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
NUBYE
/
NUBY-SUP.LBR
/
TRANWL.PQT
/
TRANWL.PAT
Wrap
Text File
|
2000-06-30
|
3KB
|
131 lines
NUBYE PATCH
for
TRANTOR (WL) BIOS
Systems with the Trantor (WL) bios will need to incorporate the
following patches into your personal copy of NUBYE.
- Tom Brady
---------------------------------------------
CCPL EQU 0 ; Number of sectors for CCP size (norm=8)
Systems with Trantor (WL) bios should set this NUBYE equate to
0 and install the patches shown shown below. For older versions
of Trantor bios, start with 24 and work down until it stops
working (typically 24 or 16). An updated Trantor (WL) bios is
advised for RCP/M use if running a large BBS program.
---------------------------------------------
Simple to fix up NUBYE for your system - just use WordStar,
or similar and insert this block of code in place of the code
already in NUBYE (i.e. the entire BEGIN section).
; Prepare to branch to the NUBYE program
;
BEGIN: LHLD BDOS+1
PUSH H
LXI D,BEGOBJ
LHLD OFFSET ; Get prgram offset
DAD D ; Form address of new BDOS address
SHLD BDOS+1 ; Update BDOS vector
PUSH H ; Find where it's at
CALL FNDWL
POP D
JC NOWL
MOV M,E
INX H
MOV M,D
;
NOWL: XCHG
INX H
POP D
MOV M,E
INX H
MOV M,D
INX H
PCHL ; Jump to relocated NUBYE program
;
HHSIG EQU 12
HSSIG EQU 14
HHSHL EQU 16
HLSHL EQU 18
HBSHL EQU 36
HDRVR EQU 22
HPCT EQU 25
PCMGR EQU 4*2
WWHSIG EQU 'W'
WWLSIG EQU 'H'
SIGWBT EQU 'B'
SIGUB EQU 'L'
SIGSD EQU 'S'
;
;
; FNDWL...
; Input: none:
; Output:
; CY set. Trantor Universal Bios is not loaded
; CY clr. HL -> var where adrs of lowest shell has to
; be stored.
; BC -> lowest shell.
; DE is preserved.
;
FNDWL: PUSH D
;
; Scan downwards from High memory trying to find
; any WW shell.
;
LXI B,0FF06H
;
ASHELL: LXI H,HHSIG
DAD B
MOV A,M
CPI WWHSIG
JNZ NSHELL
INX H
MOV A,M
CPI WWLSIG
JZ WWLINK
;
NSHELL: DCR B
LDA 7
DCR A
CMP B
JC ASHELL
STC
POP D
RET
;
; Locate the Warm boot shell.
;
WWLINK: LXI H,HSSIG
DAD B
MOV A,M
CPI SIGWBT
JZ WBFND
LXI H,HHSHL
DAD B
MOV C,M
INX H
MOV B,M
JMP WWLINK
;
; Build pointer to wb.lowestshell
;
WBFND: LXI H,HBSHL
DAD B
ORA A
WLEXIT: POP D
RET
;
;
; The following table defines the 3-byte load instructions used in the
; 8080 instruction set.
---------------------------------------------
end