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
/
S-Z
/
VTCAP11.LBR
/
ENTRY.1Z0
/
ENTRY.18°
Wrap
Text File
|
2000-06-30
|
2KB
|
73 lines
; ENTRY
;
; The entry mode function is only an indicator to show you which
; entry mode you are in. The database system allows selectable
; entry in one of three modes.
;
; Example: ESC = 1BH = 27
;
; ASCII - Allows input of character data in ASCII. To input
; the ESC character, you would simply press the ESC
; key or use the '^' leadin character and enter ^[.
;
; HEX - Allows input of character data in HEX format. To
; enter the ESC character, would require the entry
; of two keystrokes, first the '1' and then the 'B'.
;
; DEC - Allows input of character data in DECIMAL. This
; will be more familiar with BASIC programmers. To
; enter the ESC character, would require the entry
; of two keystrokes, first the '2' and then the '7'.
;
; Obviously, the easiest method would depend on your familiarity
; with the different conventions. On a local terminal, it would
; be better to select the ASCII entry mode. This would allow you
; to use single key input. There control key combinations could
; be entered directly without the use of the leadin key. Remote
; terminals, using communications packages, will usually filter
; certain characters. In this case, the leadin key will be used
; to enter these combinations.
entry: ld a,(eflg)
inc a
ld (eflg),a
cp 3
jp nz,gflg
ld a,0
ld (eflg),a
gflg: ld a,(eflg)
cp 0
jp z,ascii
cp 1
jp z,hex
cp 2
jp z,dec
ascii: call gxymsg
db 23,60
db 2,'ASCII',1
db ' HEX '
db ' DEC '
db 0
jp exopt
hex: call gxymsg
db 23,60
db 'ASCII'
db 2,' HEX ',1
db ' DEC '
db 0
jp exopt
dec: call gxymsg
db 23,60
db 'ASCII'
db ' HEX '
db 2,' DEC ',1
db 0
ld a,(obuf)
cp 'E'
jp exopt