Files
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

46 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CTRL P and CTRL C in a SUBMIT file
-----
Question: Why can't I put "CTRL P" and "CTRL C" in a SUBMIT file
using the instructions in the manual?
Answer: The usual processing of characters done by the BDOS on
input is bypassed when using SUBMIT. The following programs can simulate
these functions.
;
; PRINT - turn printer echo on and off
;
; Usage:
;
; A>PRINT ?
;(turn printer echo on with anything following PRINT)
; A>PRINT
;(turn printer echo off with nothing following PRINT)
;
0100 org 0100h
0100 2A4E00 lhld 04eh ;address of bios
0103 110DF5 lxi d,0f50dh ;offset of flag in bdos
0106 19 dad d ;point to it
0107 3A8000 lda 080h ;echo on or off?
010A 77 mov m,a ;set the flag
010B C9 ret ;return directly to ccp
; WBOOT - perform a warm boot
;
0100 org 0100h
0100 C7 rst 0
;
;PAUSE - suspend execution of a SUBMIT file until a character is typed
;
0100 org 0100h
0100 0E09 mvi c,9
0102 110D01 lxi d,prompt
0105 CD0500 call 5
0108 0E01 mvi c,1
010A C30500 jmp 5
010D 5479706520prompt db 'Type any key when ready to continue$'