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
/
ENTERPRS
/
CPM
/
UTILS
/
S
/
ZCNFG21.LZH
/
CFGLIB.LZH
/
SKSP.Z80
< prev
next >
Wrap
Text File
|
1992-11-03
|
512b
|
16 lines
public sksp
; Subroutine to skip over spaces in the buffer pointed to by HL. On return,
; the zero flag is set if we encountered the end of the line or a command
; separator character.
sksp:
ld a,(hl) ; Get next character
inc hl ; Point to the following character
cp ' ' ; Space?
jr z,sksp ; If so, keep skipping
dec hl ; Back up to non-space
ret ; ..and ret with char
end