Page 1 of 1

Dragon vs. CoCo BASIC

Posted: Wed Aug 20, 2014 8:41 pm
by jedie
I start to add CoCo support in DragonPy BASIC Editor... So i need the CoCo Color BASIC tokens...

I found: http://sourceforge.net/p/toolshed/code/ ... ms/bas.asm and convert it to a Python dictionary: https://github.com/jedie/DragonPy/blob/ ... _tokens.py

Then it interests me, to compare them with the Dragon token table... So i add a simple script to generate a Wiki table, here: http://archive.worldofdragon.org/index.php?title=Tokens

Re: Dragon vs. CoCo BASIC

Posted: Wed Aug 20, 2014 10:12 pm
by jedie
Hm... I played with some BASIC Scripts now with the CoCo Color BASIC 1.3 and found, that hex values doesn't work :(

PRINT &H100
results in a SN ERROR...

So my Hex Viewer programm (See viewtopic.php?f=4&t=4348&p=9440&hilit=hex+viewer#p9437 ) doesn't work, because i do this:

Code: Select all

170 INPUT "START ADDRESS IN HEX &H"; ADDR$
180 EA = VAL("&H"+ADDR$)
EA is always 0

Is this "normal" ?

Re: Dragon vs. CoCo BASIC

Posted: Sat Aug 23, 2014 10:47 pm
by zephyr
jedie wrote: Is this "normal" ?
Yes. You will need to use the combined COLOR BASIC and EXTENDED COLOR BASIC ROMs for Hex.

Re: Dragon vs. CoCo BASIC

Posted: Tue Aug 26, 2014 8:40 pm
by jedie
I try to startup XRoar with Extendet color BASIC, but doesn't work. I do this:

Code: Select all

xroar -keymap de -kbd-translate -default-machine coco -bas 'Color Basic v1.3 (1982)(Tandy).rom' -extbas ExtendedColorBasic1.1.rom -nodos
Output is this:

Code: Select all

Module init: GTK+-2 UI
Module init: GTK+-2 file requester
Module init: GtkGLExt video
Module init: OSS audio
ERROR: OSS: failed to open device
Module init failed: OSS audio
Module init: Pulse audio
	16-bit signed little-endian, stereo, 48000Hz
	10ms (512 samples) buffer
Module init: GTK+-2 keyboard input
	Selecting 'de' keymap
Machine: Tandy CoCo (PAL)
Loading ROM: ExtendedColorBasic1.1.rom
Loading ROM: Color Basic v1.3 (1982)(Tandy).rom
	32K mode BASIC CRC = 0x56c13bab
	BASIC CRC = 0xd8f4d15e
	Extended BASIC CRC = 0x1e425113
But it's seems that's only Color BASIC 1.3:
Image


The ROM files are from:
http://archive.worldofdragon.org/archiv ... ndy%29.zip
http://archive.worldofdragon.org/archiv ... ndy%29.zip

The ExtendedColorBasic1.1.rom seems to be a collection, because i see this string in there:

Code: Select all

EXTENDED COLOR BASIC 1.1
COPYRIGHT (C) 1982 BY TANDY
UNDER LICENSE FROM MICROSOFT
...
COLOR BASIC 1.2
(C) 1982 TANDY
...
DISK EXTENDED COLOR BASIC 1.1
COPYRIGHT 1982 BY TANDY
UNDER LICENSE FROM MICROSOFT
In this order.

So i didn't need the 'Color Basic v1.3 (1982)(Tandy).rom' ?!?

Re: Dragon vs. CoCo BASIC

Posted: Tue Aug 26, 2014 8:46 pm
by jedie
Ah... If you search for "MESS BIOS images" you will find e.g.: http://mess.oldos.net/
There are many, many ROM files. In coco2b.zip are two files: bas13.rom and extbas11.rom...

With:

Code: Select all

xroar -keymap de -kbd-translate -default-machine coco -bas bas13.rom -extbas extbas11.rom -nodos
it starts with:

Code: Select all

Module init: GTK+-2 UI
Module init: GTK+-2 file requester
Module init: GtkGLExt video
Module init: OSS audio
ERROR: OSS: failed to open device
Module init failed: OSS audio
Module init: Pulse audio
	16-bit signed little-endian, stereo, 48000Hz
	10ms (512 samples) buffer
Module init: GTK+-2 keyboard input
	Selecting 'de' keymap
Machine: Tandy CoCo (PAL)
Loading ROM: extbas11.rom
Loading ROM: bas13.rom
	BASIC CRC = 0xd8f4d15e
	Extended BASIC CRC = 0xa82a6254
And i see:

Code: Select all

EXTENDED COLOR BASIC 1.1
COPYRIGHT (C) 1982 BY TANDY
UNDER LICENSE FROM MICROSOFT

OK
?&H400
 1024
OK
:D

Re: Dragon vs. CoCo BASIC

Posted: Wed Aug 27, 2014 11:21 am
by jedie
jedie wrote:So i add a simple script to generate a Wiki table, here: http://archive.worldofdragon.org/index.php?title=Tokens
I updated the script with https://github.com/jedie/DragonPy/commi ... a4aeae4846
and update the Wiki page to list CoCo tokens from "Color BASIC 1.3" and "Extended Color BASIC 1.1"

I used the information from:
http://sourceforge.net/p/toolshed/code/ ... ms/bas.asm
and
http://sourceforge.net/p/toolshed/code/ ... extbas.asm

Re: Dragon vs. CoCo BASIC

Posted: Wed Aug 27, 2014 12:12 pm
by zephyr
jedie wrote:Ah... If you search for "MESS BIOS images" you will find e.g.: http://mess.oldos.net/
There are many, many ROM files. In coco2b.zip are two files: bas13.rom and extbas11.rom...
All CoCo and Dragon system ROMs have been available from the Uploads section since 2011.
viewtopic.php?f=7&t=555