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
/
ZCPR33
/
Z3-33
/
Z33RCP02.LBR
/
RCPWHL.LZB
/
RCPWHL.LIB
Wrap
Text File
|
2000-06-30
|
1KB
|
72 lines
page
;
;Section 5K
;Command: WHL/WHLQ
;Function: Set the Wheel Byte on or off
;
;If WHLQUIET equate is true, then RCP does not report wheel status with WHL
;command.
;
;Form:
; WHL -- turn Wheel Byte OFF
; WHL password -- turn Wheel Byte ON if password is correct
; no change if password is wrong
; WHLQ -- find out status of Wheel Byte
whl:
ld hl,fcb1+1 ; Pt to first char
ld a,(hl) ; Get it
cp ' ' ; Turn byte off if no password
jr z,whloff
ld de,whlpass
ld b,8 ; Check 8 chars
call comp ; Compare
jr nz,whlmsg1
; TURN ON WHEEL BYTE
ld a,0ffh ; Turn on wheel byte
jr whlset
; TURN OFF WHEEL BYTE
whloff:
xor a ; Turn off wheel byte
whlset:
ld (z3whl),a ; Set wheel byte and print message
whlmsg1:
if whlquiet
ret
endif
; PRINT WHEEL BYTE MESSAGE
if [not whlquiet] or whlqon
whlmsg:
call print
db ' Wheel Byte',' '+80h
ld a,(z3whl) ; Get wheel byte
or a ; Zero is off
jr z,offm
call print
db 'O','N'+80h
ret
offm:
call print
db 'OF','F'+80h
ret
endif ;[not whlquiet] or whlqon
; WHEEL PASSWORD DEFINED FROM SYSRCP.LIB FILE
db 'Z'-'@' ; Leading ^z to block attempt to type rcp file
whlpass:
wpass ; Use macro
;
; End RCP-WHL.Z80