From be2a425eb16508df07ac4dfefb08dd3a1c1a0dcb Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 10 Nov 2018 00:10:37 +0100 Subject: [PATCH 01/12] Some variables from TELEMON 2.4 added --- asminc/telestrat.inc | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/asminc/telestrat.inc b/asminc/telestrat.inc index 0296f5cb8..8c6b4243b 100644 --- a/asminc/telestrat.inc +++ b/asminc/telestrat.inc @@ -47,6 +47,12 @@ TR6 := $12 TR7 := $13 DEFAFF := $14 + +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 + ADSCR := $26 PTR_READ_DEST := $2C ; Used for XFREAD and XWRITE only in TELEMON 3.x @@ -190,14 +196,19 @@ XMINMA = $1F XVARS = $24 ; Only in TELEMON 3.x, in TELEMON 2.4, it's XNOMFI ($24) XCRLF = $25 ; Jump a line and return to the beginning of the line XFREAD = $27 ; Only in TELEMON 3.x (bank 7 of Orix) -XHEXA = $2A ; Convert a number into hex XBINDX = $28 ; Convert a number into hex and displays on channel 0 +XDECIM = $29 +XHEXA = $2A ; Convert a number into hex +XSCELG = $2F ; Search a line in editor mode XOPEN = $30 ; Only in TELEMON 3.x (bank 7 of Orix) +XECRPR = $33 ; Displays prompt XCOSCR = $34 ; Switch off cursor XCSSCR = $35 ; Switch on cursor XSCRSE = $36 +XSCRNE = $39 ; Load charset from rom to ram XCLOSE = $3A ; Only in TELEMON 3.x close file (bank 7 of Orix) XFWRITE = $3B ; Only in TELEMON 3.x write file (bank 7 of Orix) +XWRCLK = $3E ; Update clock XSONPS = $40 ; Send data to PSG register (14 values) XOUPS = $42 ; Send Oups sound into PSG XPLAY = $43 ; Play a sound @@ -212,7 +223,7 @@ XMALLOC = $5B ; Only in TELEMON 3.x (bank 7 of Orix) XFREE = $62 ; Only in TELEMON 3.x (bank 7 of Orix) XSOUT = $67 ; Send accumulator value (A) to RS232, available in TELEMON 2.4 & 3.x : if RS232 buffer is full, the Oric Telestrat freezes XHRSSE = $8C ; Set hires position cursor -XDRAWA = $8D ; Draw a line +XDRAWA = $8D ; Draw a line absolute XDRAWR = $8E ; Draw a line (relative) XCIRCL = $8F ; Draw a circle XCURSE = $90 ; Plot a pixel @@ -239,13 +250,37 @@ BUFTRV := $100 ; --------------------------------------------------------------------------- ; Page $200 -SCRX := $220 -SCRY := $224 +BNKST := $200 ; Used to store signature of 8 bank (length : 8 bytes) +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 +TIMED := $210 +TIMES := $211 +TIMEM := $212 ADSCRL := $218 ADSCRH := $21C +SCRX := $220 +SCRY := $224 +KBDVRL := $273 +FLGKBD := $275 +KBDFCT := $276 +KBDSHT := $278 +KBDCTC := $27E +LPRFX := $288 +LPRFY := $289 HRSPAT := $2AA ; Hires pattern : it's used to draw pattern for a line or a circle +ADIOB := $2BE +FLGRST := $2EE +CSRND := $2EF +VNMI := $2F4 IRQVECTOR := $2FA +VAPLIC := $2FD +; --------------------------------------------------------------------------- +; Page $400 +EXBNK := $40C +VEXBNK := $414 +BNKCIB := $417 ; --------------------------------------------------------------------------- ; Page $500 From be6d155b698a9d1cb80fa2d1c09e7444b664fde0 Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 10 Nov 2018 00:47:09 +0100 Subject: [PATCH 02/12] Stratsed vectors added --- asminc/telestrat.inc | 73 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/asminc/telestrat.inc b/asminc/telestrat.inc index 8c6b4243b..e9aa3a243 100644 --- a/asminc/telestrat.inc +++ b/asminc/telestrat.inc @@ -60,6 +60,10 @@ PTR_READ_DEST := $2C ; Used for XFREAD and XWRITE only in TELEMON 3. HRSX := $46 HRSY := $47 +XLPRBI := $48 ; Printer flag (b7) + +HRSX40 := $49 +HRSX6 := $4A HRS1 := $4D HRS2 := $4F HRS3 := $51 @@ -251,6 +255,7 @@ BUFTRV := $100 ; --------------------------------------------------------------------------- ; Page $200 BNKST := $200 ; Used to store signature of 8 bank (length : 8 bytes) +TABDRV := $208 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 @@ -285,8 +290,18 @@ BNKCIB := $417 ; --------------------------------------------------------------------------- ; Page $500 +DRIVE := $500 +ERRNB := $512 +SAVES := $513 +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" BUFNOM := $517 -BUFEDT := $590 +BUFEDT := $590 ; Buffer edition MAX_BUFEDT_LENGTH=110 @@ -295,6 +310,62 @@ MAX_BUFEDT_LENGTH=110 CH376_DATA := $340 CH376_COMMAND := $341 +; --------------------------------------------------------------------------- +; Stratsed vectors +; Stratsed is the main OS for Telestrat +XMERGE := $FF0E +XFST := $FF11 +XSPUT := $FF14 +XSTAKE := $FF17 +XTAKE := $FF20 +XOPEN := $FF1A +XCLOSE := $FF1D +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 + + + + ; --------------------------------------------------------------------------- ; MACRO From f558d299c4fb9af98df283fa28788dfaa9cf14dd Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 10 Nov 2018 00:54:58 +0100 Subject: [PATCH 03/12] Fix duplicated variables --- asminc/telestrat.inc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/asminc/telestrat.inc b/asminc/telestrat.inc index e9aa3a243..df607e375 100644 --- a/asminc/telestrat.inc +++ b/asminc/telestrat.inc @@ -293,6 +293,7 @@ BNKCIB := $417 DRIVE := $500 ERRNB := $512 SAVES := $513 +BUFNOM := $517 VSALO0 := $528 VSALO1 := $529 FTYPE := $52C ; File type @@ -300,7 +301,6 @@ DESALO := $52D FISALO := $52F EXSALO := $531 EXTDEF := $55D ; Default extension. At the start of telemon, it's set to ".COM" -BUFNOM := $517 BUFEDT := $590 ; Buffer edition MAX_BUFEDT_LENGTH=110 @@ -318,8 +318,8 @@ XFST := $FF11 XSPUT := $FF14 XSTAKE := $FF17 XTAKE := $FF20 -XOPEN := $FF1A -XCLOSE := $FF1D +XOPENS := $FF1A ; XOPEN from Stratsed +XCLOSES := $FF1D ; XCLOSE from Stratsed XPUT := $FF23 XREWIN := $FF29 XJUMP := $FF2C @@ -363,9 +363,6 @@ XPBUF1 := $FFA4 XPMAP := $FFA7 XRWTS := $FFAA - - - ; --------------------------------------------------------------------------- ; MACRO From b0495cb44aee6eeef99cb02aa37fbeca8a3e27a7 Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 10 Nov 2018 14:54:43 +0100 Subject: [PATCH 04/12] Update doc (how telestrat works), tgi_outtext doc added --- doc/telestrat.sgml | 97 ++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 81 insertions(+), 16 deletions(-) diff --git a/doc/telestrat.sgml b/doc/telestrat.sgml index fe9efcfdb..97229db00 100644 --- a/doc/telestrat.sgml +++ b/doc/telestrat.sgml @@ -16,9 +16,9 @@ An overview over the Telestrat (Telemon 2.4 & Telemon 3.x : http://orix.oric.org Overview

-This file contains an overview of the Telestrat runtime system as it comes with the -cc65 C compiler. It describes the memory layout, Telestrat-specific header files, -available drivers, and any pitfalls specific to that platform. +This file contains an overview of the Telestrat runtime system as it comes +with the cc65 C compiler. It describes the memory layout, Telestrat-specific +header files, available drivers, and any pitfalls specific to that platform. Please note that Telestrat-specific functions are just mentioned here, they are described in detail in the separate . Even functions marked as "platform dependent" may be available on more than one platform. Please see the function reference for more information. +Oric Telestrat is the last Oric computer (Released in 1986, mainly in France). +This computer is an Atmos with extra hardware : RS232, cardridge (banking system), +joysticks (2 ports) or mouse (on joystick port), FDC. + +Video chip, CPU, keyboard management, tape hardware are the same than Atmos. + +Telestrat can start in Atmos mode with Atmos Cardridge (which is only the atmos +Basic 1.1 ROM). + +Telestrat can start in Sedoric (Atmos OS) and Atmos mode with Stratoric Cardridge. +This Cardridge is a Sedoric ROM, Basic 1.1 ROM (Atmos), Basic 1.0 ROM (Oric-1). + +The main Telestrat's configuration is the Telemon/Hyperbasic Cardridge inserted +with Stratsed in floppy drive. + +Anyway, there is no way to load a tape file in Telemon/Hyperbasic mode without +alternative program. + +There is also no software to write a Stratsed dsk file on PC. + +This Telestrat target build an Orix binary file. But, in the future, it will be possible +to build a Stratsed disk. Orix uses the same systems calls than Telemon mode. + +That is why if you need to do software for telestrat target, you have the choice to : + +use cc65 Atmos target and start Telestrat in Atmos mode : a tape file is required +use cc65 Atmos target and start Telestrat in Stratoric mode : a dsk file or tape file is required +use cc65 Telestrat target and start Telestrat in Orix mode (see ) +use cc65 Telestrat target, remove Orix header from binary, code a dsk tool for Stratsed, +add Stratsed header on your binary, insert your binary on floppy disk (this solution will be possible is the future) + + +Telestrat (from cardridge) can handle 8 banks (from $C000 to $FFFF): Bank 0 is the overlay ram. Others banks can be ROM or RAM. + Binary format

The standard binary output format generated the linker for the Telestrat target is a machine language program with a 20 bytes header described +name="here" url="http://orix.oric.org/orix-header/"> This header is used for Telemon 3.0. -Anyway, for Telemon 2.4, there is no file management, there is no TAPE routine in Telemon, there is no way to load a binary easily. +Anyway, for Telemon 2.4, there is no file management, there is no TAPE routine +in Telemon, there is no way to load a binary easily. -Stratsed (the Telestrat operating system) handles files management. Stratsed is loaded to memory from floppy disk. +Stratsed (the Telestrat operating system) handles files management. Stratsed +is loaded to memory from floppy disk. Stratsed vector are declared in asminc/telestrat.inc. +But, reverse engineering is required to find how theses vectors works. Please, note that +Stratsed is located in overlay memory (bank 0) There is no tool to insert a binary in a Stratsed floppy disk. @@ -44,7 +83,9 @@ The only way to load a binary (for Telemon 2.4) is to: remove the 20 bytes header download -use Floppybuilder in OSDK to insert the binary with the tool (please read FloppyBuilder manual to insert your binary, and to start microdisc boot sector when Telestrat starts) +use Floppybuilder in OSDK to insert the binary with the tool (please read +FloppyBuilder manual to insert your binary, and to start microdisc boot sector +when Telestrat starts) Please note also, that the binary converted into TAP file, will not produce @@ -58,7 +99,7 @@ If you know the Stratsed disk format, please contact the author of this doc. In the standard setup, cc65-generated programs use the memory from $0801 to $9800; so, nearly 37K of memory (including the stack) is -available. ROM calls are possible without further precautions. +available. ROM calls are possible with BRK feature. Special locations: @@ -109,6 +150,22 @@ structures; accessing the struct fields will access the chip registers.

+ + + + Access to the VIA2 (Versatile Interface Adapter) chip is available via the +

+ + + + + Access to the 6551 ACIA chip is available via the +

+ Loadable drivers

@@ -117,25 +174,31 @@ structures; accessing the struct fields will access the chip registers. TGI drivers is available on Oric Telestrat with some functions : -tgi_done -tgi_install -tgi_init tgi_clear +tgi_done +tgi_init +tgi_install tgi_line +tgi_outtext tgi_setpixel Extended memory drivers

-No extended memory drivers are currently available for the Telestrat. - +No extended memory drivers are currently available for the Telestrat. +This feature could be done because telestrat can manage RAM inserted in his +port cardridge. Joystick drivers

-telemon 2.4 & 3.0 manages joysticks but it had been handled yet. +Telemon 2.4 & 3.0 manages joysticks but it had been handled yet. This means that +joysticks driver could be written easily. + +Telemon 2.4 returns in keyboard buffer the direction of the joysticks. This means that +if you get input from keyboard by conio cgetc function, you will get direction from joysticks. @@ -144,7 +207,8 @@ telemon 2.4 & 3.0 manages joysticks but it had been handled yet. -Telestrat manages also mouse, but it had been no handled yet in this version. +Telestrat manages also mouse, but it had been no handled yet in this version. +Telestrat mouse is really difficult to find. @@ -152,7 +216,8 @@ Telestrat manages also mouse, but it had been no handled yet in this version. -Telestrat has a RS232 port, but it's not usable in cc65. +Telestrat has a RS232 port, but it's not usable in cc65. It is possible to use +RS232 port with Telemon calls (see XSOUT primitive for example) From d707ef4c72bf236a5c2da4915999fb1a38c3afe8 Mon Sep 17 00:00:00 2001 From: jede Date: Mon, 10 Dec 2018 21:48:09 +0100 Subject: [PATCH 05/12] Now tgi_clear() works --- asminc/telestrat.inc | 1 + libsrc/telestrat/tgi/telestrat-228-200-3.s | 2 +- libsrc/telestrat/tgi/telestrat-240-200-2.s | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/asminc/telestrat.inc b/asminc/telestrat.inc index df607e375..956f4b8ac 100644 --- a/asminc/telestrat.inc +++ b/asminc/telestrat.inc @@ -195,6 +195,7 @@ XDECAL = $18 XTEXT = $19 XHIRES = $1A +XEFFHI = $1B ; Clear hires screen XFILLM = $1C XMINMA = $1F XVARS = $24 ; Only in TELEMON 3.x, in TELEMON 2.4, it's XNOMFI ($24) diff --git a/libsrc/telestrat/tgi/telestrat-228-200-3.s b/libsrc/telestrat/tgi/telestrat-228-200-3.s index ce501f0bf..228bdce99 100644 --- a/libsrc/telestrat/tgi/telestrat-228-200-3.s +++ b/libsrc/telestrat/tgi/telestrat-228-200-3.s @@ -170,7 +170,7 @@ CONTROL: ; CLEAR: - ; not done yet + BRK_TELEMON(XEFFHI) rts ; ------------------------------------------------------------------------ diff --git a/libsrc/telestrat/tgi/telestrat-240-200-2.s b/libsrc/telestrat/tgi/telestrat-240-200-2.s index 3ee918c4f..9bffebb0c 100644 --- a/libsrc/telestrat/tgi/telestrat-240-200-2.s +++ b/libsrc/telestrat/tgi/telestrat-240-200-2.s @@ -169,7 +169,7 @@ CONTROL: ; CLEAR: - ; not done yet + BRK_TELEMON(XEFFHI) rts ; ------------------------------------------------------------------------ From 2848ddf8ab0243ba3469e92ea11ede0d9b8459d7 Mon Sep 17 00:00:00 2001 From: jede Date: Thu, 24 Jan 2019 23:07:49 +0100 Subject: [PATCH 06/12] Telemon variables added --- asminc/telestrat.inc | 101 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 98 insertions(+), 3 deletions(-) diff --git a/asminc/telestrat.inc b/asminc/telestrat.inc index 956f4b8ac..9d7949920 100644 --- a/asminc/telestrat.inc +++ b/asminc/telestrat.inc @@ -54,9 +54,18 @@ IRQSVY := $23 ; Used to save Y when a BRK call occurs IRQSVP := $24 ; Used to save P when a BRK call occurs ADSCR := $26 +SCRNB := $28 ; id of the current window + +ADKBD := $2A ; Address ASCII conversion table + PTR_READ_DEST := $2C ; Used for XFREAD and XWRITE only in TELEMON 3.x +ADCLK := $40 ; Address for clock display +TIMEUS := $42 +TIMEUD := $44 + + HRSX := $46 HRSY := $47 @@ -64,6 +73,7 @@ XLPRBI := $48 ; Printer flag (b7) HRSX40 := $49 HRSX6 := $4A +ADHRS := $4B ; hires screen address (word) HRS1 := $4D HRS2 := $4F HRS3 := $51 @@ -72,6 +82,8 @@ HRS5 := $55 HRSFB := $57 +VABKP1 := $58 + ; RS232T ; b0-b3 : speed ; 1111 => 19200 bps (please note that telestrat can't handle this speed without stopping all IRQ except ACIA's one) @@ -103,6 +115,18 @@ RS232T := $59 ; : 11 SPACE SENT, reception not tested RS232C := $5A +INDRS := $5B + +ACC1E := $60 +ACC1M := $61 + +ACC1S := $65 + +FLGMEN := $68 +ADMEN := $69 + +FLSVS := $89 +FLERR := $8B VARLNG := $8C VARAPL := $D0 @@ -200,10 +224,13 @@ XFILLM = $1C XMINMA = $1F XVARS = $24 ; Only in TELEMON 3.x, in TELEMON 2.4, it's XNOMFI ($24) XCRLF = $25 ; Jump a line and return to the beginning of the line +XDECAY = $26 XFREAD = $27 ; Only in TELEMON 3.x (bank 7 of Orix) XBINDX = $28 ; Convert a number into hex and displays on channel 0 XDECIM = $29 XHEXA = $2A ; Convert a number into hex +XEDT = $2D ; Launch editor +XINSER = $2E XSCELG = $2F ; Search a line in editor mode XOPEN = $30 ; Only in TELEMON 3.x (bank 7 of Orix) XECRPR = $33 ; Displays prompt @@ -213,7 +240,12 @@ XSCRSE = $36 XSCRNE = $39 ; Load charset from rom to ram XCLOSE = $3A ; Only in TELEMON 3.x close file (bank 7 of Orix) XFWRITE = $3B ; Only in TELEMON 3.x write file (bank 7 of Orix) -XWRCLK = $3E ; Update clock + +; Clock primitive +XRECLK = $3C ; Reset clock +XCLCL = $3D ; Close clock +XWRCLK = $3E ; Displays clock in the adress in A & Y registers + XSONPS = $40 ; Send data to PSG register (14 values) XOUPS = $42 ; Send Oups sound into PSG XPLAY = $43 ; Play a sound @@ -223,7 +255,17 @@ XZAP = $46 ; Send Zap sound to PSG XSHOOT = $47 XMKDIR = $4B ; Create a folder. Only available in TELEMON 3.x (bank 7 of Orix) XRM = $4D ; Remove a folder or a file. Only available in TELEMON 3.x (bank 7 of Orix) -XGOKBD = $52 +XGOKBD = $52 + +; Buffer management +XECRBU = $54 ; Write A or AY in the buffer +XLISBU = $55 ; Read A or AY in the buffer +XTSTBU = $56 +XVIDBU = $57 ; Flush the buffer +XINIBU = $58 ; Initialize the buffer X +XDEFBU = $59 ; Reset all value of the buffer +XBUSY = $5A ; Test if the buffer is empty + XMALLOC = $5B ; Only in TELEMON 3.x (bank 7 of Orix) XFREE = $62 ; Only in TELEMON 3.x (bank 7 of Orix) XSOUT = $67 ; Send accumulator value (A) to RS232, available in TELEMON 2.4 & 3.x : if RS232 buffer is full, the Oric Telestrat freezes @@ -257,28 +299,78 @@ BUFTRV := $100 ; Page $200 BNKST := $200 ; Used to store signature of 8 bank (length : 8 bytes) TABDRV := $208 +DRVDEF := $20C 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 +; Time management TIMED := $210 TIMES := $211 TIMEM := $212 +TIMEH := $213 +FLGCLK := $214 +FLGCLK_FLAG := $215 +FLGCUR := $216 ; cursor management flag +; screens position managements + +FLGCUR_STATE := $217 ; cursor state flag ADSCRL := $218 ADSCRH := $21C SCRX := $220 SCRY := $224 +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 KBDVRL := $273 FLGKBD := $275 KBDFCT := $276 KBDSHT := $278 +KBDKEY := $279 KBDCTC := $27E +LPRX := $286 +LPRY := $287 LPRFX := $288 LPRFY := $289 +FLGLPR := $28A + +; Joysticks management +FLGJCK := $28C +JCGVAL := $28D +JCDVAL := $28E +JCKTAB := $29D + + HRSPAT := $2AA ; Hires pattern : it's used to draw pattern for a line or a circle -ADIOB := $2BE +HRSERR := $2AB + +IOTAB0 := $2AE +IOTAB1 := $2B2 +IOTAB2 := $2B6 +IOTAB3 := $2BA +ADIOB := $2BE ; 48 bytes length FLGRST := $2EE CSRND := $2EF VNMI := $2F4 +ADIODB_VECTOR := $2f7 ; 3 bytes length IRQVECTOR := $2FA VAPLIC := $2FD @@ -311,6 +403,9 @@ MAX_BUFEDT_LENGTH=110 CH376_DATA := $340 CH376_COMMAND := $341 +; RAM overlays buffer +BUFBUF := $c080 + ; --------------------------------------------------------------------------- ; Stratsed vectors ; Stratsed is the main OS for Telestrat From b360a128f9d53aeb9a4dc5e21f0524dad70b9308 Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 26 Jan 2019 11:39:24 +0100 Subject: [PATCH 07/12] fix uppercase command --- asminc/telestrat.inc | 53 -------------------------------------------- 1 file changed, 53 deletions(-) diff --git a/asminc/telestrat.inc b/asminc/telestrat.inc index c4dc509a3..14e686d19 100644 --- a/asminc/telestrat.inc +++ b/asminc/telestrat.inc @@ -468,59 +468,6 @@ XPBUF1 := $FFA4 XPMAP := $FFA7 XRWTS := $FFAA -; --------------------------------------------------------------------------- -; Stratsed vectors -; Stratsed is the main OS for Telestrat -XMERGE := $FF0E -XFST := $FF11 -XSPUT := $FF14 -XSTAKE := $FF17 -XTAKE := $FF20 -XOPENS := $FF1A ; XOPEN from Stratsed -XCLOSES := $FF1D ; XCLOSE from Stratsed -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 - ; --------------------------------------------------------------------------- ; MACRO From dfa91106fd95031d48d91e06cab6208b028f106c Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 26 Jan 2019 12:00:13 +0100 Subject: [PATCH 08/12] fix doc/telestrat.sgml --- doc/telestrat.sgml | 44 +++++++++++--------------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/doc/telestrat.sgml b/doc/telestrat.sgml index 1c0b3d954..8dddd3061 100644 --- a/doc/telestrat.sgml +++ b/doc/telestrat.sgml @@ -27,7 +27,7 @@ more than one platform. Please see the function reference for more information. Oric Telestrat is the last Oric computer (Released in 1986, mainly in France). -This computer is an Atmos with extra hardware : RS232, cardridge (banking system), +This computer is an Atmos with extra hardware: RS232, cardridge(banking system), joysticks (2 ports) or mouse (on joystick port), FDC. Video chip, CPU, keyboard management, tape hardware are the same than Atmos. @@ -49,14 +49,14 @@ There is also no software to write a Stratsed dsk file on PC. This Telestrat target build an Orix binary file. But, in the future, it will be possible to build a Stratsed disk. Orix uses the same systems calls than Telemon mode. -That is why if you need to do software for telestrat target, you have the choice to : +That is why if you need to do software for telestrat target,you have the choice to: -use cc65 Atmos target and start Telestrat in Atmos mode : a tape file is required -use cc65 Atmos target and start Telestrat in Stratoric mode : a dsk file or tape file is required +use cc65 Atmos target and start Telestrat in Atmos mode: A tape file is required. +use cc65 Atmos target and start Telestrat in Stratoric mode: A dsk file or tape file is required. use cc65 Telestrat target and start Telestrat in Orix mode (see ) -use cc65 Telestrat target, remove Orix header from binary, code a dsk tool for Stratsed, -add Stratsed header on your binary, insert your binary on floppy disk (this solution will be possible is the future) +name="here" url="http://orix.oric.org/download/">). +use cc65 Telestrat target, remove Orix header from binary, code a dsk tool for Stratsed, +add Stratsed header on your binary,insert your binary on floppy disk (this solution will be possible is the future). Telestrat (from cardridge) can handle 8 banks (from $C000 to $FFFF): Bank 0 is the overlay ram. Others banks can be ROM or RAM. @@ -148,21 +148,13 @@ structures; accessing the struct fields will access the chip registers. Access to the VIA (Versatile Interface Adapter) chip is available via the

- - - Access to the VIA2 (Versatile Interface Adapter) chip is available via the

- - - - + Access to the 6551 ACIA chip is available via the -

@@ -171,7 +163,7 @@ structures; accessing the struct fields will access the chip registers. TGI

-TGI drivers is available on Oric Telestrat with some functions : +TGI drivers is available on Oric Telestrat with some functions: tgi_clear @@ -192,34 +184,22 @@ port cardridge. Joystick drivers

- - - Telemon 2.4 & 3.0 manages joysticks but it had been handled yet. This means that joysticks driver could be written easily. Telemon 2.4 returns in keyboard buffer the direction of the joysticks. This means that if you get input from keyboard by conio cgetc function, you will get direction from joysticks. - Mouse drivers

- - - Telestrat manages also mouse, but it had been no handled yet in this version. Telestrat mouse is really difficult to find. - RS232 device drivers

- - - Telestrat has a RS232 port, but it's not usable in cc65. It is possible to use RS232 port with Telemon calls (see XSOUT primitive for example) - Limitations

Disk I/O

@@ -227,9 +207,7 @@ RS232 port with Telemon calls (see XSOUT primitive for example) Telemon 3.0 handles fopen, fread, fclose primitives. It means that this function will crash the Telestrat because Telemon 2.4 does not have these primitives. By the way, Telemon 3.0 uses an extension "ch376 card" which -handles sdcard and FAT 32 usb key. In the next version of Telemon, FT DOS, -Sedoric, Stratsed will be handled in these 3 primitives (fopen, fread, -fclose). +handles sdcard and FAT 32 usb key. In the next version of Telemon, FT DOS, Sedoric, Stratsed will be handled in these 3 primitives (fopen, fread, fclose). fclose From a3d876b737a5f74c47505f6f92909b5a39ccef28 Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 26 Jan 2019 12:01:48 +0100 Subject: [PATCH 09/12] fix comma in telestrat.sgml --- doc/telestrat.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/telestrat.sgml b/doc/telestrat.sgml index 8dddd3061..4b08e8365 100644 --- a/doc/telestrat.sgml +++ b/doc/telestrat.sgml @@ -49,7 +49,7 @@ There is also no software to write a Stratsed dsk file on PC. This Telestrat target build an Orix binary file. But, in the future, it will be possible to build a Stratsed disk. Orix uses the same systems calls than Telemon mode. -That is why if you need to do software for telestrat target,you have the choice to: +That is why if you need to do software for telestrat target, you have the choice to: use cc65 Atmos target and start Telestrat in Atmos mode: A tape file is required. use cc65 Atmos target and start Telestrat in Stratoric mode: A dsk file or tape file is required. From bade791570c8fc8f241dec3dfb278d545209091e Mon Sep 17 00:00:00 2001 From: jede Date: Tue, 29 Jan 2019 20:46:16 +0100 Subject: [PATCH 10/12] fix uppercase --- asminc/telestrat.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/asminc/telestrat.inc b/asminc/telestrat.inc index 14e686d19..8d2e9afc1 100644 --- a/asminc/telestrat.inc +++ b/asminc/telestrat.inc @@ -54,7 +54,7 @@ IRQSVY := $23 ; Used to save Y when a BRK call occurs IRQSVP := $24 ; Used to save P when a BRK call occurs ADSCR := $26 -SCRNB := $28 ; id of the current window +SCRNB := $28 ; Id of the current window ADKBD := $2A ; Address ASCII conversion table @@ -74,7 +74,7 @@ XLPRBI := $48 ; Printer flag (b7) HRSX40 := $49 HRSX6 := $4A -ADHRS := $4B ; hires screen address (word) +ADHRS := $4B ; Hires screen address (word) HRS1 := $4D HRS2 := $4F @@ -315,10 +315,10 @@ TIMEM := $212 TIMEH := $213 FLGCLK := $214 FLGCLK_FLAG := $215 -FLGCUR := $216 ; cursor management flag +FLGCUR := $216 ; Cursor management flag ; screens position managements -FLGCUR_STATE := $217 ; cursor state flag +FLGCUR_STATE := $217 ; Cursor state flag ADSCRL := $218 ADSCRH := $21C From 620359fa2ee8d52a66ca348b21aa774a3c03d38e Mon Sep 17 00:00:00 2001 From: jede Date: Wed, 30 Jan 2019 13:28:50 +0100 Subject: [PATCH 11/12] add more clearly what rom stratoric contains --- doc/telestrat.sgml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/telestrat.sgml b/doc/telestrat.sgml index 4b08e8365..6ae9cf941 100644 --- a/doc/telestrat.sgml +++ b/doc/telestrat.sgml @@ -36,7 +36,12 @@ Telestrat can start in Atmos mode with Atmos Cardridge (which is only the atmos Basic 1.1 ROM). Telestrat can start in Sedoric (Atmos OS) and Atmos mode with Stratoric Cardridge. -This Cardridge is a Sedoric ROM, Basic 1.1 ROM (Atmos), Basic 1.0 ROM (Oric-1). +This Cardridge has 3 banks of 16KB of rom with : + +a Sedoric ROM. +a Basic 1.1 ROM (Atmos). +a Basic 1.0 ROM (Oric-1). + The main Telestrat's configuration is the Telemon/Hyperbasic Cardridge inserted with Stratsed in floppy drive. From a4a968dfd159e4aa4f89aa269ca9d2f80d3d8766 Mon Sep 17 00:00:00 2001 From: jede Date: Mon, 4 Feb 2019 20:42:03 +0100 Subject: [PATCH 12/12] Fix typo --- doc/telestrat.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/telestrat.sgml b/doc/telestrat.sgml index 6ae9cf941..1f352607f 100644 --- a/doc/telestrat.sgml +++ b/doc/telestrat.sgml @@ -36,7 +36,7 @@ Telestrat can start in Atmos mode with Atmos Cardridge (which is only the atmos Basic 1.1 ROM). Telestrat can start in Sedoric (Atmos OS) and Atmos mode with Stratoric Cardridge. -This Cardridge has 3 banks of 16KB of rom with : +This Cardridge has 3 banks of 16KB of rom with: a Sedoric ROM. a Basic 1.1 ROM (Atmos). @@ -89,7 +89,7 @@ The only way to load a binary (for Telemon 2.4) is to: remove the 20 bytes header download use Floppybuilder in OSDK to insert the binary with the tool (please read -FloppyBuilder manual to insert your binary, and to start microdisc boot sector +FloppyBuilder manual to learn how to insert your binary and how to start Microdisc boot sector when Telestrat starts)