mirror of
https://github.com/romychs/OK240.2-Firmware.git
synced 2026-04-21 10:53:18 +03:00
72 lines
3.1 KiB
PHP
72 lines
3.1 KiB
PHP
; ==================================================
|
|
; Equates for TYPE.COM
|
|
;
|
|
; By Romych, 2026-03-01
|
|
; ==================================================
|
|
|
|
IFNDEF _EQUATES
|
|
DEFINE _EQUATES
|
|
|
|
; --------------------------------------------------
|
|
; ASCII CODES
|
|
; --------------------------------------------------
|
|
|
|
ASCII_BELL EQU 0x07 ; Make Beep
|
|
ASCII_BS EQU 0x08 ; Move cursor left (Back Space)
|
|
ASCII_TAB EQU 0x09 ; Move cursor right +8 pos
|
|
ASCII_LF EQU 0x0A ; Move cursor down (Line Feed)
|
|
ASCII_FF EQU 0x0C ; Move cursor to home (Form Feed)
|
|
ASCII_CR EQU 0x0D ; Move gursor to 1st pos (Cariage Return)
|
|
ASCII_SO EQU 0x0E ; ^N Shift Out
|
|
ASCII_SI EQU 0x0F ; ^O Shift In
|
|
ASCII_CAN EQU 0x18 ; Move cursor right
|
|
ASCII_EM EQU 0x19 ; Move cursor up
|
|
ASCII_SUB EQU 0x1A ; CTRL-Z - end of text file marker
|
|
ASCII_ESC EQU 0x1B ;
|
|
ASCII_US EQU 0x1F ; Clear screen
|
|
ASCII_SP EQU 0x20
|
|
ASCII_DEL EQU 0x7F
|
|
|
|
; --------------------------------------------------
|
|
; KEYBOARD Ctrl+Key CODES
|
|
; --------------------------------------------------
|
|
|
|
CTRL_A EQU 0x01
|
|
CTRL_B EQU 0x02
|
|
CTRL_C EQU 0x03 ; Warm boot
|
|
CTRL_D EQU 0x04
|
|
CTRL_E EQU 0x05 ; Move to beginning of new line (Physical EOL)
|
|
CTRL_F EQU 0x06
|
|
CTRL_G EQU 0x07
|
|
CTRL_H EQU 0x08 ; Backspace
|
|
CTRL_I EQU 0x09
|
|
CTRL_J EQU 0x0A ; LF - Line Feed
|
|
CTRL_K EQU 0x0B
|
|
CTRL_L EQU 0x0C
|
|
CTRL_M EQU 0x0D ; CR - Carriage Return
|
|
CTRL_N EQU 0x0E
|
|
CTRL_O EQU 0x0F
|
|
CTRL_P EQU 0x10 ; turn on/off printer
|
|
CTRL_Q EQU 0x11
|
|
CTRL_R EQU 0x12 ; Repeat current cmd line
|
|
CTRL_S EQU 0x13 ; Temporary stop display data to console (aka DC3)
|
|
CTRL_T EQU 0x14
|
|
CTRL_U EQU 0x15 ; Cancel (erase) current cmd line
|
|
CTRL_V EQU 0x16
|
|
CTRL_W EQU 0x17
|
|
CTRL_X EQU 0x18 ; Cancel (erase) current cmd line
|
|
CTRL_Y EQU 0x19
|
|
CTRL_Z EQU 0x1A ; CTRL-Z - end of text file marker
|
|
|
|
; --------------------------------------------------
|
|
; BIOS RAM Entries
|
|
; --------------------------------------------------
|
|
|
|
jp_bdos_enter EQU 0x0005 ; Jump bdos (CALL 5 to make CP/M requests)
|
|
fcb1 EQU 0x005c ; Default FCB, 16 bytes
|
|
dma_buffer EQU 0x0080 ; Default "DMA" 128 bytes buffer
|
|
p_cmd_line_len EQU 0x0080 ; command line character count
|
|
p_cmd_line EQU 0x0081 ; command line buffer
|
|
tpa EQU 0x0100 ; Program area
|
|
|
|
ENDIF |