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°
Text File  |  2000-06-30  |  2KB  |  73 lines

  1. ; ENTRY
  2. ; The entry mode function is only an indicator to show you which 
  3. ; entry mode you are in. The database system allows selectable
  4. ; entry in one of three modes.
  5. ;
  6. ; Example:     ESC = 1BH = 27
  7. ;
  8. ;     ASCII - Allows input of character data in ASCII. To input
  9. ;         the ESC character, you would simply press the ESC
  10. ;        key or use the '^' leadin character and enter ^[.
  11. ;
  12. ;    HEX   -    Allows input of character data in HEX format. To
  13. ;        enter the ESC character, would require the entry
  14. ;        of two keystrokes, first the '1' and then the 'B'.
  15. ;
  16. ;    DEC   - Allows input of character data in DECIMAL. This
  17. ;        will be more familiar with BASIC programmers. To
  18. ;        enter the ESC character, would require the entry
  19. ;        of two keystrokes, first the '2' and then the '7'.
  20. ;
  21. ; Obviously, the easiest method would depend on your familiarity
  22. ; with the different conventions. On a local terminal, it would
  23. ; be better to select the ASCII entry mode. This would allow you
  24. ; to use single key input. There control key combinations could
  25. ; be entered directly without the use of the leadin key. Remote
  26. ; terminals, using communications packages, will usually filter 
  27. ; certain characters. In this case, the leadin key will be used
  28. ; to enter these combinations.
  29.  
  30. entry:    ld    a,(eflg)
  31.     inc    a
  32.     ld    (eflg),a
  33.     cp    3
  34.     jp    nz,gflg
  35.     ld    a,0
  36.     ld    (eflg),a
  37.  
  38. gflg:    ld    a,(eflg)
  39.     cp    0
  40.     jp    z,ascii
  41.     cp    1
  42.     jp     z,hex
  43.     cp    2
  44.     jp    z,dec
  45.  
  46. ascii:    call    gxymsg
  47.     db    23,60
  48.     db    2,'ASCII',1
  49.     db    ' HEX '
  50.     db    ' DEC '
  51.     db    0
  52.     jp    exopt
  53.  
  54. hex:    call    gxymsg
  55.     db    23,60
  56.     db    'ASCII' 
  57.     db    2,' HEX ',1
  58.     db    ' DEC '
  59.     db    0
  60.     jp    exopt
  61.  
  62. dec:    call    gxymsg
  63.     db    23,60
  64.     db    'ASCII'
  65.     db    ' HEX '
  66.     db    2,' DEC ',1
  67.     db    0
  68.     ld    a,(obuf)
  69.     cp    'E'
  70.     jp    exopt
  71.  
  72.