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
/
QTERM
/
QTPAT42.LBR
/
QT-PCB.ZY
/
QT-PCB.ZY
Wrap
Text File
|
2000-06-30
|
2KB
|
81 lines
; QT-PCB.Z - Patch to solve upload bug in PC Board
;
; Due to an intermittent bug in PC Board (the MS-DOS BBS), there are PCB's
; that will not take uploads. One fix that has been found to work is to
; add a delay between each character when transmitting the file. This
; patch when applied to QTERM does just that. The ^\ U user function can
; be used to specify the amount of delay. 0 is no delay, (use this for
; everything except uploads), in most cases a value between 5 and 10 will
; allow an upload to work. Note that uploading scripts can use this: the
; sequence
;
; !u 7
; !s xky FILENAME.EXT
; !u 0
;
; will enable the delay for just the transmission.
.var free 0x0400 ; where in the patch we can place things
.org 0x0134
ret z
jp delay
.org 0x01ce
speed:
.org 0x0276 ; patch into the user function
jp user ; go do ours
.org 0x027c
ilprmt:
.org free
user:
call ilprmt ; prompt for and get an answer
db 'Delay? \0'
ld hl,0x7f ; point just before it
ld e,0
byp: inc hl
ld a,(hl) ; get the next character
cp ' ' ; space?
jr z,byp ; yes, skip over it
numlp: sub '0'
cp 10
jr nc,usee
ld d,a
ld a,e
add a,a
add a,a
add a,e
add a,a
add a,d
ld e,a
inc hl ; point to next character
jr numlp
usee: ld a,e
ld (delcon),a
ret
delay: ld a,(delcon)
or a
jr z,incret
ld c,a
del1lp: ld a,(speed)
or a
jr nz,spdok
inc a
spdok: ld b,a
dellp: ld hl,150
delhl: dec hl
ld a,h
or l
jr nz,delhl
djnz dellp
dec c
jr nz,del1lp
incret: inc a
ret
delcon: db 0