2017-01-29 20:18:49 +00:00
|
|
|
;
|
2018-10-19 21:21:16 +00:00
|
|
|
; Oric TELEMON definition
|
2022-04-23 22:39:04 +00:00
|
|
|
; TELEMON 2.4 & Orix
|
2022-04-23 22:41:12 +00:00
|
|
|
; For Orix check http://orix.oric.org
|
2017-01-29 20:18:49 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Constants
|
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
SCREEN_XSIZE = 40 ; Screen columns
|
|
|
|
SCREEN_YSIZE = 28 ; Screen rows
|
2017-01-29 20:18:49 +00:00
|
|
|
|
|
|
|
FUNCTKEY = $A5
|
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
FNAME_LEN = 11 ; Maximum length of file-name
|
2017-01-29 20:18:49 +00:00
|
|
|
|
2017-10-16 14:11:37 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; I/O Identifier
|
2018-10-19 21:21:16 +00:00
|
|
|
; Theses identifers are used for channel management
|
2022-04-17 14:04:58 +00:00
|
|
|
;
|
2017-10-16 14:11:37 +00:00
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
XKBD = $80 ; Keyboard
|
2017-10-16 14:11:37 +00:00
|
|
|
XRSE = $83 ; RS232 in
|
2018-10-19 21:21:16 +00:00
|
|
|
XSCR = $88 ; Screen
|
2017-10-16 14:11:37 +00:00
|
|
|
XRSS = $90 ; RS232 out
|
2017-09-25 19:47:05 +00:00
|
|
|
|
2017-01-29 20:18:49 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Zero page
|
|
|
|
|
2017-01-31 21:09:14 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Page 00
|
|
|
|
RES := $00
|
|
|
|
RESB := $02
|
|
|
|
|
2018-11-01 16:45:51 +00:00
|
|
|
DECDEB := $04
|
|
|
|
DECFIN := $06
|
|
|
|
DECCIB := $08
|
|
|
|
DECTRV := $0A
|
|
|
|
|
2017-02-01 22:58:33 +00:00
|
|
|
TR0 := $0C
|
|
|
|
TR1 := $0D
|
2017-09-24 09:46:52 +00:00
|
|
|
TR2 := $0E
|
|
|
|
TR3 := $0F
|
|
|
|
TR4 := $10
|
|
|
|
TR5 := $11
|
|
|
|
TR6 := $12
|
|
|
|
TR7 := $13
|
|
|
|
|
2018-11-01 16:45:51 +00:00
|
|
|
DEFAFF := $14
|
2018-11-09 23:10:37 +00:00
|
|
|
|
2021-03-11 21:52:41 +00:00
|
|
|
IRQSVA := $21 ; Used to save A when a BRK call occurs
|
|
|
|
IRQSVX := $22 ; Used to save X when a BRK call occurs
|
|
|
|
IRQSVY := $23 ; Used to save Y when a BRK call occurs
|
|
|
|
IRQSVP := $24 ; Used to save P when a BRK call occurs
|
2018-11-09 23:10:37 +00:00
|
|
|
|
2018-11-01 16:45:51 +00:00
|
|
|
ADSCR := $26
|
2021-03-11 21:52:41 +00:00
|
|
|
SCRNB := $28 ; Id of the current window
|
2019-01-24 22:07:49 +00:00
|
|
|
|
2021-03-11 21:52:41 +00:00
|
|
|
ADKBD := $2A ; Address ASCII conversion table
|
2019-01-24 22:07:49 +00:00
|
|
|
|
2018-11-01 16:45:51 +00:00
|
|
|
|
2022-04-23 22:39:04 +00:00
|
|
|
PTR_READ_DEST := $2C ; Used for XFREAD and XWRITE only in Orix
|
2017-01-31 21:09:14 +00:00
|
|
|
|
2021-03-11 21:52:41 +00:00
|
|
|
ADCLK := $40 ; Address for clock display
|
2019-01-24 22:07:49 +00:00
|
|
|
TIMEUS := $42
|
2021-03-11 21:52:41 +00:00
|
|
|
TIMEUD := $44 ; Counter clock (1/10 of a second)
|
2019-01-24 22:07:49 +00:00
|
|
|
|
|
|
|
|
2017-01-31 21:09:14 +00:00
|
|
|
HRSX := $46
|
|
|
|
HRSY := $47
|
|
|
|
|
2021-03-11 21:52:41 +00:00
|
|
|
XLPRBI := $48 ; Printer flag (b7)
|
2018-11-09 23:47:09 +00:00
|
|
|
|
|
|
|
HRSX40 := $49
|
|
|
|
HRSX6 := $4A
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2021-03-11 21:52:41 +00:00
|
|
|
ADHRS := $4B ; Hires screen address (word)
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2017-01-31 21:09:14 +00:00
|
|
|
HRS1 := $4D
|
|
|
|
HRS2 := $4F
|
|
|
|
HRS3 := $51
|
|
|
|
HRS4 := $53
|
|
|
|
HRS5 := $55
|
2017-01-29 20:18:49 +00:00
|
|
|
|
2017-10-20 19:03:30 +00:00
|
|
|
HRSFB := $57
|
|
|
|
|
2019-01-24 22:07:49 +00:00
|
|
|
VABKP1 := $58
|
|
|
|
|
2017-10-20 19:03:30 +00:00
|
|
|
; RS232T
|
2022-04-17 14:04:58 +00:00
|
|
|
; b0-b3 : speed
|
2017-10-20 19:29:16 +00:00
|
|
|
; 1111 => 19200 bps (please note that telestrat can't handle this speed without stopping all IRQ except ACIA's one)
|
2018-10-19 21:21:16 +00:00
|
|
|
; 1100 => 9600 bps (default from TELEMON)
|
2022-04-17 14:04:58 +00:00
|
|
|
; 1110 => 4800 bps
|
|
|
|
; 1010 => 2400 bps
|
|
|
|
; 1000 => 1200 bps
|
|
|
|
; 0111 => 600 bps
|
|
|
|
; 0110 => 300 bps
|
|
|
|
; 0101 => 150 bps
|
|
|
|
; 0010 => 75 bps
|
2017-10-20 19:03:30 +00:00
|
|
|
|
|
|
|
; b4 : 0 external clock, 1 internal clock
|
|
|
|
; b6-b5 : 00 8 bits
|
|
|
|
; 01 7 bits
|
|
|
|
; 10 6 bits
|
|
|
|
; 11 5 bits
|
2022-04-17 14:04:58 +00:00
|
|
|
; b7 : 0 a stop
|
2017-10-20 19:03:30 +00:00
|
|
|
|
|
|
|
RS232T := $59
|
|
|
|
|
2022-04-17 14:04:58 +00:00
|
|
|
; RS232C
|
2017-10-20 19:03:30 +00:00
|
|
|
; b0-b3 : 0
|
|
|
|
; b4 : 1 if echo
|
|
|
|
; b5 : 1 if parity
|
|
|
|
; b7-b6 : 00 in/out parity odd
|
|
|
|
; : 01 on/out parity even
|
|
|
|
; : 10 parity sent, answer not tested
|
|
|
|
; : 11 SPACE SENT, reception not tested
|
|
|
|
|
|
|
|
RS232C := $5A
|
2019-01-24 22:07:49 +00:00
|
|
|
INDRS := $5B
|
|
|
|
|
2019-07-20 09:28:33 +00:00
|
|
|
; Float and integer management
|
2019-01-24 22:07:49 +00:00
|
|
|
ACC1E := $60
|
|
|
|
ACC1M := $61
|
|
|
|
ACC1S := $65
|
2019-07-20 09:28:33 +00:00
|
|
|
ACC1EX := $66
|
|
|
|
ACC1J := $67
|
|
|
|
ACC2E := $68
|
|
|
|
ACC2M := $69
|
|
|
|
ACC2S := $6D
|
|
|
|
ACCPS := $6E
|
|
|
|
ACC3 := $6F
|
|
|
|
|
|
|
|
ACC4E := $73
|
|
|
|
ACC4M := $74
|
|
|
|
|
|
|
|
|
|
|
|
FLDT0 := $74
|
|
|
|
FLDT1 := $75
|
|
|
|
FLDT2 := $76
|
|
|
|
FLSVY := $77
|
|
|
|
FLTR0 := $7D
|
|
|
|
FLTR1 := $7E
|
|
|
|
|
|
|
|
; Menu management
|
|
|
|
MENDDY := $62
|
|
|
|
MENDFY := $63
|
|
|
|
MENX := $64
|
|
|
|
MENDY := $66
|
2019-01-24 22:07:49 +00:00
|
|
|
FLGMEN := $68
|
|
|
|
ADMEN := $69
|
|
|
|
|
2019-07-20 09:28:33 +00:00
|
|
|
FLSGN := $8A
|
|
|
|
FLINT := $88
|
2019-01-24 22:07:49 +00:00
|
|
|
FLSVS := $89
|
|
|
|
FLERR := $8B
|
2017-01-29 20:18:49 +00:00
|
|
|
|
2018-11-01 16:45:51 +00:00
|
|
|
VARLNG := $8C
|
|
|
|
VARAPL := $D0
|
|
|
|
|
2017-01-29 20:18:49 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Low memory
|
2017-10-20 19:03:30 +00:00
|
|
|
IRQVec := $02FB ; "fast" interrupt vector
|
2017-01-29 20:18:49 +00:00
|
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; I/O locations
|
|
|
|
|
|
|
|
; 6522
|
|
|
|
.struct VIA ; Versatile Interface Adapter
|
|
|
|
.res $0300
|
|
|
|
PRB .byte ; Port Register B
|
|
|
|
PRA .byte ; Port Register A
|
|
|
|
DDRB .byte ; Data Direction Register B
|
|
|
|
DDRA .byte ; Data Direction Register A
|
|
|
|
T1 .word ; Timer 1
|
|
|
|
T1L .word ; Timer 1 Latch
|
|
|
|
T2 .word ; Timer 2
|
|
|
|
SR .byte ; Shift Register
|
|
|
|
ACR .byte ; Auxiliary Control Register
|
|
|
|
PCR .byte ; Peripheral Control Register
|
|
|
|
IFR .byte ; Interrupt Flags Register
|
|
|
|
IER .byte ; Interrupt Enable Register
|
|
|
|
PRA2 .byte ; Port Register A without handshaking
|
|
|
|
.endstruct
|
|
|
|
|
|
|
|
|
2017-10-20 19:03:30 +00:00
|
|
|
.struct VIA2 ; Versatile Interface Adapter
|
2017-01-29 20:18:49 +00:00
|
|
|
.res $0320
|
|
|
|
PRB .byte ; Port Register B
|
|
|
|
PRA .byte ; Port Register A
|
|
|
|
DDRB .byte ; Data Direction Register B
|
|
|
|
DDRA .byte ; Data Direction Register A
|
|
|
|
T1 .word ; Timer 1
|
|
|
|
T1L .word ; Timer 1 Latch
|
|
|
|
T2 .word ; Timer 2
|
|
|
|
SR .byte ; Shift Register
|
|
|
|
ACR .byte ; Auxiliary Control Register
|
|
|
|
PCR .byte ; Peripheral Control Register
|
|
|
|
IFR .byte ; Interrupt Flags Register
|
|
|
|
IER .byte ; Interrupt Enable Register
|
|
|
|
PRA2 .byte ; Port Register A without handshaking
|
|
|
|
.endstruct
|
|
|
|
|
|
|
|
; 6551
|
|
|
|
.struct ACIA ; Asynchronous Communications Interface Adapter
|
|
|
|
.res $031C
|
|
|
|
DATA .byte
|
|
|
|
STATUS .byte
|
|
|
|
CMD .byte ; Command register
|
|
|
|
CTRL .byte ; Control register
|
|
|
|
.endstruct
|
|
|
|
|
|
|
|
SCREEN := $BB80
|
|
|
|
|
|
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; ROM entries
|
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
; TELEMON primitives (2.4 & 3.x)
|
2018-10-17 19:12:05 +00:00
|
|
|
|
2022-04-17 14:04:58 +00:00
|
|
|
; all values are used to call bank 7 of telestrat cardridge. It works with 'brk value'
|
2018-11-01 16:45:51 +00:00
|
|
|
XOP0 = $00 ; Open device on channel 0
|
|
|
|
XOP1 = $01 ; Open device on channel 1
|
|
|
|
XOP2 = $02 ; Open device on channel 2
|
|
|
|
XOP3 = $03 ; Open device on channel 3
|
|
|
|
|
|
|
|
XCL0 = $04 ; Close channel 0
|
|
|
|
XCL1 = $05 ; Close channel 1
|
|
|
|
XCL2 = $06 ; Close channel 2
|
|
|
|
XCL3 = $07 ; Close channel 3
|
|
|
|
|
2017-01-31 21:09:14 +00:00
|
|
|
XRD0 = $08
|
|
|
|
XRDW0 = $0C
|
2018-11-01 16:45:51 +00:00
|
|
|
|
|
|
|
XWR0 = $10 ; Write a char in channel 0
|
|
|
|
XWR1 = $11 ; Write a char in channel 1
|
|
|
|
XWR2 = $12 ; Write a char in channel 2
|
|
|
|
XWR3 = $13 ; Write a char in channel 3
|
|
|
|
|
|
|
|
XWSTR0 = $14 ; Write a string in text mode channel 0
|
|
|
|
XWSTR1 = $15 ; Write a string in text mode channel 1
|
|
|
|
XWSTR2 = $16 ; Write a string in text mode channel 2
|
|
|
|
XWSTR3 = $17 ; Write a string in text mode channel 3
|
|
|
|
|
|
|
|
XDECAL = $18
|
|
|
|
|
2017-01-31 21:09:14 +00:00
|
|
|
XTEXT = $19
|
|
|
|
XHIRES = $1A
|
2018-12-10 20:48:09 +00:00
|
|
|
XEFFHI = $1B ; Clear hires screen
|
2017-02-25 20:32:06 +00:00
|
|
|
XFILLM = $1C
|
2017-01-31 21:09:14 +00:00
|
|
|
XMINMA = $1F
|
2022-04-23 22:39:04 +00:00
|
|
|
XVARS = $24 ; Only in Orix, in TELEMON 2.4, it's XNOMFI ($24)
|
2018-10-19 21:21:16 +00:00
|
|
|
XCRLF = $25 ; Jump a line and return to the beginning of the line
|
2019-01-24 22:07:49 +00:00
|
|
|
XDECAY = $26
|
2022-04-23 22:39:04 +00:00
|
|
|
XFREAD = $27 ; Only in Orix
|
2018-11-01 16:45:51 +00:00
|
|
|
XBINDX = $28 ; Convert a number into hex and displays on channel 0
|
2018-11-09 23:10:37 +00:00
|
|
|
XDECIM = $29
|
|
|
|
XHEXA = $2A ; Convert a number into hex
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2024-01-04 23:46:15 +00:00
|
|
|
XMAINARGS = $2C ; Only available for Orix
|
2024-01-04 23:45:03 +00:00
|
|
|
|
2019-01-24 22:07:49 +00:00
|
|
|
XEDT = $2D ; Launch editor
|
|
|
|
XINSER = $2E
|
2024-01-04 23:46:15 +00:00
|
|
|
XGETARGV = $2E ; Only available for Orix
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2018-11-09 23:10:37 +00:00
|
|
|
XSCELG = $2F ; Search a line in editor mode
|
2022-04-23 22:39:04 +00:00
|
|
|
XOPEN = $30 ; Only in Orix
|
2018-11-09 23:10:37 +00:00
|
|
|
XECRPR = $33 ; Displays prompt
|
2018-10-19 21:21:16 +00:00
|
|
|
XCOSCR = $34 ; Switch off cursor
|
|
|
|
XCSSCR = $35 ; Switch on cursor
|
2018-11-01 16:45:51 +00:00
|
|
|
XSCRSE = $36
|
2019-07-20 09:31:00 +00:00
|
|
|
XSCROH = $37 ; Scroll up text screen
|
|
|
|
XSCROB = $38 ; Scroll down text screen
|
2018-11-09 23:10:37 +00:00
|
|
|
XSCRNE = $39 ; Load charset from rom to ram
|
2022-04-23 22:39:04 +00:00
|
|
|
XCLOSE = $3A ; Only in Orix close file
|
|
|
|
XFWRITE = $3B ; Only in Orix write file
|
2019-01-24 22:07:49 +00:00
|
|
|
|
|
|
|
; Clock primitive
|
|
|
|
XRECLK = $3C ; Reset clock
|
|
|
|
XCLCL = $3D ; Close clock
|
2022-02-21 20:44:31 +00:00
|
|
|
XWRCLK = $3E ; Displays clock in the address in A & Y registers
|
2019-01-24 22:07:49 +00:00
|
|
|
|
2023-03-17 22:10:15 +00:00
|
|
|
XFSEEK = $3F ; Only in Orix
|
|
|
|
|
2021-03-11 21:48:05 +00:00
|
|
|
; Sound primitives
|
2018-11-01 16:45:51 +00:00
|
|
|
XSONPS = $40 ; Send data to PSG register (14 values)
|
2018-10-19 21:21:16 +00:00
|
|
|
XOUPS = $42 ; Send Oups sound into PSG
|
2018-11-01 16:45:51 +00:00
|
|
|
XPLAY = $43 ; Play a sound
|
2022-04-17 14:04:58 +00:00
|
|
|
XSOUND = $44
|
|
|
|
XMUSIC = $45
|
2018-11-01 16:45:51 +00:00
|
|
|
XZAP = $46 ; Send Zap sound to PSG
|
2017-01-31 21:09:14 +00:00
|
|
|
XSHOOT = $47
|
2021-03-11 21:48:05 +00:00
|
|
|
|
|
|
|
; Path Management
|
2021-03-11 08:42:14 +00:00
|
|
|
XGETCWD = $48 ; Get current CWD
|
|
|
|
XPUTCWD = $49 ; Chdir
|
2021-03-11 21:48:05 +00:00
|
|
|
|
|
|
|
; File management
|
2022-04-23 22:39:04 +00:00
|
|
|
XMKDIR = $4B ; Create a folder. Only available in Orix
|
2021-03-11 21:48:05 +00:00
|
|
|
|
|
|
|
XHCHRS = $4C ; Hard copy hires
|
|
|
|
|
|
|
|
; File management
|
2022-04-23 22:39:04 +00:00
|
|
|
XRM = $4D ; Remove a folder or a file. Only available in Orix
|
2021-03-11 21:48:05 +00:00
|
|
|
|
2022-04-23 22:39:04 +00:00
|
|
|
XFWR = $4E ; Put a char on the first screen. Only available in Orix
|
2021-03-11 21:48:05 +00:00
|
|
|
|
|
|
|
; Keyboard primitives
|
|
|
|
XALLKB = $50 ; Read Keyboard, and populate KBDCOL
|
|
|
|
XKBDAS = $51 ; Ascii conversion
|
2022-04-17 14:04:58 +00:00
|
|
|
XGOKBD = $52 ; Swap keyboard type (Qwerty, French ...)
|
2019-01-24 22:07:49 +00:00
|
|
|
|
|
|
|
; Buffer management
|
|
|
|
XECRBU = $54 ; Write A or AY in the buffer
|
|
|
|
XLISBU = $55 ; Read A or AY in the buffer
|
|
|
|
XTSTBU = $56
|
2022-04-17 14:04:58 +00:00
|
|
|
XVIDBU = $57 ; Flush the buffer
|
2019-01-24 22:07:49 +00:00
|
|
|
XINIBU = $58 ; Initialize the buffer X
|
|
|
|
XDEFBU = $59 ; Reset all value of the buffer
|
|
|
|
XBUSY = $5A ; Test if the buffer is empty
|
|
|
|
|
2022-04-23 22:39:04 +00:00
|
|
|
XMALLOC = $5B ; Only in Orix
|
2021-03-11 21:48:05 +00:00
|
|
|
|
|
|
|
; RS232 primitives
|
|
|
|
XSDUMP = $5C ; RS232 input dump
|
|
|
|
XCONSO = $5D ; Swap screen into RS232 terminal
|
|
|
|
XSLOAD = $5E ; Read a file from RS232
|
|
|
|
XSSAVE = $5F ; Write a file to RS232
|
|
|
|
|
|
|
|
; Minitel primitives
|
|
|
|
XMLOAD = $60 ; Read a file from Minitel
|
|
|
|
XMSAVE = $61 ; Write a file to Minitel
|
|
|
|
|
2022-04-23 22:39:04 +00:00
|
|
|
XFREE = $62 ; Only in Orix
|
|
|
|
|
|
|
|
XEXEC = $63 ; Only in Orix
|
2021-03-11 21:48:05 +00:00
|
|
|
|
2022-04-17 14:04:58 +00:00
|
|
|
; Next Minitel primitives
|
2021-03-11 21:48:05 +00:00
|
|
|
XWCXFI = $63 ; Wait connection
|
|
|
|
XLIGNE = $64 ;
|
|
|
|
XDECON = $65 ; Minitel disconnection
|
|
|
|
XMOUT = $66 ; Send a byte to minitel (from A)
|
|
|
|
|
2022-04-23 22:39:04 +00:00
|
|
|
XSOUT = $67 ; Send accumulator value (A) to RS232, available in TELEMON 2.4 : if RS232 buffer is full, the Oric Telestrat freezes
|
2021-03-11 21:48:05 +00:00
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
XHRSSE = $8C ; Set hires position cursor
|
2018-11-09 23:10:37 +00:00
|
|
|
XDRAWA = $8D ; Draw a line absolute
|
2018-11-01 16:45:51 +00:00
|
|
|
XDRAWR = $8E ; Draw a line (relative)
|
|
|
|
XCIRCL = $8F ; Draw a circle
|
2022-04-17 14:04:58 +00:00
|
|
|
XCURSE = $90 ; Plot a pixel
|
2018-11-01 16:45:51 +00:00
|
|
|
XCURMO = $91 ; Move to x,y pos in Hires
|
2017-01-31 21:09:14 +00:00
|
|
|
XPAPER = $92
|
|
|
|
XINK = $93
|
2018-11-01 16:45:51 +00:00
|
|
|
XBOX = $94 ; Draw a box
|
2017-10-20 19:03:30 +00:00
|
|
|
XABOX = $95
|
|
|
|
XFILL = $96
|
2018-11-01 16:45:51 +00:00
|
|
|
XCHAR = $97 ; Display a char on the screen in Hires
|
2018-10-19 21:21:16 +00:00
|
|
|
XSCHAR = $98 ; Draw a string in hires
|
2018-11-01 16:45:51 +00:00
|
|
|
XEXPLO = $9C ; Send Explode sound to PSG
|
|
|
|
XPING = $9D ; Send Ping sound to PSG
|
2017-02-01 22:58:33 +00:00
|
|
|
|
2017-09-24 17:22:43 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; ROM entries variables
|
|
|
|
|
|
|
|
PWD_PTR = $00
|
|
|
|
|
2018-11-01 16:45:51 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
2022-04-17 14:04:58 +00:00
|
|
|
;
|
|
|
|
BUFTRV := $100
|
2018-11-01 16:45:51 +00:00
|
|
|
|
|
|
|
|
2017-02-25 20:32:06 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Page $200
|
2018-11-09 23:10:37 +00:00
|
|
|
BNKST := $200 ; Used to store signature of 8 bank (length : 8 bytes)
|
2018-11-09 23:47:09 +00:00
|
|
|
TABDRV := $208
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2019-01-24 22:07:49 +00:00
|
|
|
DRVDEF := $20C
|
2018-11-09 23:10:37 +00:00
|
|
|
FLGTEL := $20D
|
|
|
|
KOROM := $20E ; Used to compute the size of all rom bank. The result is store here. The value is in KB
|
|
|
|
KORAM := $20F ; Used to compute the size of all ram bank. The result is store here. The value is in KB
|
2019-01-24 22:07:49 +00:00
|
|
|
; Time management
|
2021-03-11 21:48:05 +00:00
|
|
|
TIMED := $210 ; Clock (1/10 of seconds)
|
2018-11-09 23:10:37 +00:00
|
|
|
TIMES := $211
|
|
|
|
TIMEM := $212
|
2019-01-24 22:07:49 +00:00
|
|
|
TIMEH := $213
|
|
|
|
FLGCLK := $214
|
2022-04-17 14:04:58 +00:00
|
|
|
FLGCLK_FLAG := $215
|
2019-01-29 19:46:16 +00:00
|
|
|
FLGCUR := $216 ; Cursor management flag
|
2019-01-24 22:07:49 +00:00
|
|
|
; screens position managements
|
|
|
|
|
2019-01-29 19:46:16 +00:00
|
|
|
FLGCUR_STATE := $217 ; Cursor state flag
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2017-02-25 21:10:13 +00:00
|
|
|
ADSCRL := $218
|
|
|
|
ADSCRH := $21C
|
2018-11-09 23:10:37 +00:00
|
|
|
SCRX := $220
|
|
|
|
SCRY := $224
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2019-01-24 22:07:49 +00:00
|
|
|
SCRDX := $228
|
|
|
|
SCRFX := $22C
|
|
|
|
SCRDY := $230
|
|
|
|
SCRFY := $234
|
|
|
|
SCRBAL := $238
|
|
|
|
SCRBAH := $23C
|
|
|
|
SCRCT := $240
|
|
|
|
SCRCF := $244
|
|
|
|
FLGSCR := $248
|
|
|
|
CURSCR := $24C
|
|
|
|
|
|
|
|
HARD_COPY_HIRES := $250 ; Hard copy vector
|
|
|
|
|
|
|
|
SCRTXT := $256
|
|
|
|
SCRHIR := $25C
|
|
|
|
SCRTRA := $262 ; 6 bytes lenfth
|
|
|
|
|
|
|
|
; Keyboard management
|
|
|
|
KBDCOL := $268 ; 8 bytes length
|
|
|
|
KBDFLG_KEY := $270 ; 0 if no key pressed
|
|
|
|
KBDVRR := $272
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2018-11-09 23:10:37 +00:00
|
|
|
KBDVRL := $273
|
|
|
|
FLGKBD := $275
|
|
|
|
KBDFCT := $276
|
|
|
|
KBDSHT := $278
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2019-01-24 22:07:49 +00:00
|
|
|
KBDKEY := $279
|
2018-11-09 23:10:37 +00:00
|
|
|
KBDCTC := $27E
|
2019-01-24 22:07:49 +00:00
|
|
|
LPRX := $286
|
|
|
|
LPRY := $287
|
2018-11-09 23:10:37 +00:00
|
|
|
LPRFX := $288
|
|
|
|
LPRFY := $289
|
2019-01-24 22:07:49 +00:00
|
|
|
FLGLPR := $28A
|
|
|
|
|
|
|
|
; Joysticks management
|
|
|
|
FLGJCK := $28C
|
|
|
|
JCGVAL := $28D
|
|
|
|
JCDVAL := $28E
|
|
|
|
JCKTAB := $29D
|
|
|
|
|
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
HRSPAT := $2AA ; Hires pattern : it's used to draw pattern for a line or a circle
|
2019-01-24 22:07:49 +00:00
|
|
|
HRSERR := $2AB
|
|
|
|
|
|
|
|
IOTAB0 := $2AE
|
|
|
|
IOTAB1 := $2B2
|
|
|
|
IOTAB2 := $2B6
|
|
|
|
IOTAB3 := $2BA
|
|
|
|
ADIOB := $2BE ; 48 bytes length
|
2018-11-09 23:10:37 +00:00
|
|
|
FLGRST := $2EE
|
|
|
|
CSRND := $2EF
|
|
|
|
VNMI := $2F4
|
2019-01-24 22:07:49 +00:00
|
|
|
ADIODB_VECTOR := $2f7 ; 3 bytes length
|
2019-01-25 09:15:21 +00:00
|
|
|
|
2017-09-25 19:39:57 +00:00
|
|
|
IRQVECTOR := $2FA
|
2018-11-09 23:10:37 +00:00
|
|
|
VAPLIC := $2FD
|
2017-02-25 21:10:13 +00:00
|
|
|
|
2018-11-09 23:10:37 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Page $400
|
|
|
|
EXBNK := $40C
|
|
|
|
VEXBNK := $414
|
|
|
|
BNKCIB := $417
|
2017-01-29 20:18:49 +00:00
|
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Page $500
|
|
|
|
|
2018-11-09 23:47:09 +00:00
|
|
|
DRIVE := $500
|
|
|
|
ERRNB := $512
|
|
|
|
SAVES := $513
|
2018-11-09 23:54:58 +00:00
|
|
|
BUFNOM := $517
|
2018-11-09 23:47:09 +00:00
|
|
|
VSALO0 := $528
|
|
|
|
VSALO1 := $529
|
|
|
|
FTYPE := $52C ; File type
|
|
|
|
DESALO := $52D
|
|
|
|
FISALO := $52F
|
|
|
|
EXSALO := $531
|
|
|
|
EXTDEF := $55D ; Default extension. At the start of telemon, it's set to ".COM"
|
2022-04-17 14:04:58 +00:00
|
|
|
BUFEDT := $590 ; Buffer edition
|
2017-01-29 20:18:49 +00:00
|
|
|
|
|
|
|
MAX_BUFEDT_LENGTH=110
|
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
2017-01-29 20:18:49 +00:00
|
|
|
; Hardware
|
2017-09-24 09:46:52 +00:00
|
|
|
CH376_DATA := $340
|
|
|
|
CH376_COMMAND := $341
|
2017-01-29 20:18:49 +00:00
|
|
|
|
2019-01-24 22:07:49 +00:00
|
|
|
; RAM overlays buffer
|
|
|
|
BUFBUF := $c080
|
|
|
|
|
2018-11-09 23:47:09 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Stratsed vectors
|
2022-04-17 14:04:58 +00:00
|
|
|
; Stratsed is the main OS for Telestrat
|
2018-11-09 23:47:09 +00:00
|
|
|
XMERGE := $FF0E
|
|
|
|
XFST := $FF11
|
|
|
|
XSPUT := $FF14
|
|
|
|
XSTAKE := $FF17
|
|
|
|
XTAKE := $FF20
|
2018-11-09 23:54:58 +00:00
|
|
|
XOPENS := $FF1A ; XOPEN from Stratsed
|
|
|
|
XCLOSES := $FF1D ; XCLOSE from Stratsed
|
2018-11-09 23:47:09 +00:00
|
|
|
XPUT := $FF23
|
|
|
|
XREWIN := $FF29
|
|
|
|
XJUMP := $FF2C
|
|
|
|
XLGBUF := $FF2F
|
|
|
|
XERVEC := $FF32
|
|
|
|
XESAVE := $FF35
|
|
|
|
XCOPY := $FF38
|
|
|
|
XDNAME := $FF3B
|
|
|
|
XSTATU := $FF3E
|
|
|
|
XUPDAT := $FF41
|
|
|
|
XFORMA := $FF44
|
|
|
|
XDELBK := $FF4A
|
|
|
|
XDELN := $FF4D
|
|
|
|
XPROT := $FF50
|
|
|
|
XUNPRO := $FF53
|
|
|
|
XDIRN := $FF56
|
|
|
|
XBKP := $FF59
|
|
|
|
XINITI := $FF5C
|
|
|
|
XERREU := $FF5F
|
|
|
|
XLOAD := $FF62
|
|
|
|
XDEFSA := $FF65
|
|
|
|
XDEFLO := $FF68
|
|
|
|
XSAVE := $FF6B
|
|
|
|
XNOMDE := $FF6E
|
|
|
|
XCREAY := $FF71
|
|
|
|
XDETSE := $FF74
|
|
|
|
XLIBSE := $FF77
|
|
|
|
XTRVCA := $FF7A
|
|
|
|
XTRVNM := $FF7D
|
|
|
|
XTRVNX := $FF80
|
|
|
|
XBUCA := $FF86
|
|
|
|
XVBUF1 := $FF89
|
|
|
|
XSVSEC := $FF8C
|
|
|
|
XSAY := $FF8F
|
|
|
|
XSBUF1 := $FF92
|
|
|
|
XSBUF2 := $FF95
|
|
|
|
XSBUF3 := $FF98
|
|
|
|
XSCAT := $FF9B
|
|
|
|
XPRSEC := $FFA1
|
|
|
|
XPBUF1 := $FFA4
|
|
|
|
XPMAP := $FFA7
|
|
|
|
XRWTS := $FFAA
|
|
|
|
|
2018-10-19 21:21:16 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
2022-04-17 14:04:58 +00:00
|
|
|
; MACRO
|
2017-01-29 20:18:49 +00:00
|
|
|
|
|
|
|
.macro BRK_TELEMON value
|
2019-02-05 22:27:52 +00:00
|
|
|
.byte $00,value
|
2017-01-29 20:18:49 +00:00
|
|
|
.endmacro
|