home *** CD-ROM | disk | FTP | other *** search
-
- ; SHOWCRT.Z80
-
- cpdata:
- call banner
- call gxymsg
- defb 3,29
- defb highon,' CRT and Printer Data ',highoff,0
-
- ; CRT information
-
- call gxymsg
- defb 5,2
- defb highon
- defb ' Selected CRT: '
- defb highoff,0
- ld a,2fh ; Offset in ENV
- call prbyte ; Display byte value there
-
- call gxymsg
- defb 7,15
- defb 'CRT 0',0
- ld hl,8*100h+18 ; Start display at row 8, column 18
- ld a,31h ; Print data at 31H
- call cprt
-
- call gxymsg
- defb 7,50
- defb 'CRT 1',0
- ld hl,8*100h+53
- ld a,34h ; Print data at 34H
- call cprt
-
- ; Printer information
-
- call gxymsg
- defb 11,2
- defb highon
- defb ' Selected Printer: '
- defb highoff,0
- ld a,30h ; Offset in ENV
- call prbyte ; Display byte value there
-
- call gxymsg
- defb 13,15
- defb 'LST 0',0
- ld hl,14*100h+18
- ld a,37h ; Print data at 37H
- call lprt
-
- call gxymsg
- defb 13,50
- defb 'LST 1',0
- ld hl,14*100h+53
- ld a,3bh ; Print data at 3BH
- call lprt
-
- call gxymsg
- defb 18,15
- defb 'LST 2',0
- ld hl,19*100h+18
- ld a,3fh ; Print data at 3FH
- call lprt
-
- call gxymsg
- defb 18,50
- defb 'LST 3',0
- ld hl,19*100h+53
- ld a,43h ; Print data at 43H
- call lprt
-
- jp getcmd
-
- ;----------------------------------------
-
- ; Subroutine to display CRT data
-
- cprt:
- ld (infoxy),hl
- call compenv ; Compute offset
-
- call vprxy ; Position cursor
- defb 'Width: ',0
- ld a,(hl)
- call padc
- call vprint
- defb ' Cols',0
-
- call dispxy
- call vprint
- defb 'Lines/Text: ',0
- inc hl
- ld a,(hl)
- call padc
- call vprint
- defb ' / ',0
- inc hl
- ld a,(hl)
- call padc
- ret
-
- ;----------------------------------------
-
- ; Print LST Data
-
- lprt:
- ld (infoxy),hl
- call compenv ; Compute offset
-
- call vprxy
- defb 'Width: ',0
- ld a,(hl)
- call padc
- call vprint
- defb ' Cols',0
-
- call dispxy
- call vprint
- defb 'Lines/Text: ',0
- inc hl
- ld a,(hl)
- call padc
- call vprint
- defb ' / ',0
- inc hl
- ld a,(hl)
- call padc
- inc hl
-
- call vprxy
- defb 'Form Feed? ',0
- ld a,(hl)
- call pryn
- ret
-
- ; End SHOWCRT.Z80
-
-