MediaWiki:Sitenotice:
2024-03-02: The wiki ran out of disk space, so things were not working. This has been resolved by adding another 5GB of quota ;-) Thanks to Tim Lindner for reporting the issues. 2020-05-17: If a page gives you an error about some revision not being found, just EDIT the page and the old page should appear in the editor. If it does, just SAVE that and the page should be restored. OS-9 Al (talk) 12:22, 17 May 2020 (CDT)

1980 4K CoCo Programming Challenge: Difference between revisions

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigation Jump to search
m (AllenHuffman moved page CoCoCoding 1980 Contest to 1980 4K CoCo Programming Challenge: New name)
(Adding "Current Entries" link)
 
(5 intermediate revisions by the same user not shown)
Line 29: Line 29:


== Using an Emulator ==
== Using an Emulator ==
The Xroar emulator for PC, Mac, Linux (and more) can be configured to act as a 1980 4K CoCo. Make sure you have the "bas10.rom" ROM file (Color BASIC 1.0) and you can use the command line "-ram 4" option to limit memory to 4K. However, Xroar author Ciaran suggests creating a new entry in the GUI menu for a 4K CoCo. Edit (or create) the "xroar.conf" file (located where you have the .exe on PC, elsewhere on Mac/Linux) and create an entry like this:


<pre>
XRoar is a free emulator for Windows, Mac and Linux (and others). You can find a quick-start guide to installing and [[Using XRoar]] to emulate an original 4K CoCo.
default-machine coco4k
machine coco4k
machine-desc Tandy CoCo 4K
machine-arch coco
ram 4
bas bas10
noextbas
nodos
tv-type ntsc
</pre>


This will create a new entry in the Machine pull-down menu that says "Tandy CoCo 4K". The "default-machine" option will make it be the default, so just running xroar.exe will launch as a 4K 1980 CoCo. I will add instructions for Mac (and links) when I get time.
== Using a Bigger CoCo ==
Art Flexser mentions that if you have a 16K or larger CoCo, you can simulate the limited 4K memory to BASIC using the CLEAR command:
CLEAR 200,4095
After doing this, "PRINT MEM" should show 2343 bytes available.


We will have to see what tricks can be done on a 64K CoCo (copying ROM to RAM then doing some pokes) to disable Extended Color BASIC, and figure out how to do that on a CoCo 3.
== Helpful Resources ==
* Simon Johansen has a cool [http://cocobotomy.roust-it.dk/sgedit/ VDG screen editor] that may be useful for designing CoCo 1 semi graphics screens.
== Current Entries ==
You can see the current entries here:
http://subethasoftware.com/4k/
== Admin ==
== Admin ==
I (Allen Huffman, alsplace@pobox.com) am working on this idea. Feel free to organize and edit this page with more ideas.
I (Allen Huffman, alsplace@pobox.com) am working on this idea. Feel free to organize and edit this page with more ideas.

Latest revision as of 16:00, 7 January 2015

WELCOME
Looking for CoCo help? If you are trying to do something with your old Color Computer, read this quick reference. Want to contribute to this wiki? Be sure to read this first. This CoCo wiki project was started on October 29, 2004. --OS-9 Al

See Recent Changes. | About this site. | Join the E-Mail List or Facebook Group. | Contact me with updates/questions.

This page was last updated on 01/7/2015. Total Pages: 744. Total Files: 994.


Home / Special Projects - 1980 4K CoCo Programming Challenge


It is July (or August, depending on which source you use) 1980, and you wandered in to a Radio Shack store and saw the brand new TRS-80 Color Computer. Unlike the TRS-80 Model I, this machine had color and sound built in, and used a normal color television for the display just like an Atari 2600.

You quickly plop down $399 (plus tax) to buy your very own Color Computer, plus spent a little more for a cable that will let you hook up a cassette recorder to load and save programs to cassette tapes.

You get home, hook the machine up to your television, and power up the machine to be greeted with:

Color BASIC 1.0

You have 4K of RAM available to begin writing your first program. What will you write?

Contest Concept

The goal here is to write something as if you were using the original 1980 CoCo. There was no Extended Color BASIC, and you couldn't afford to upgrade the memory past 4K. You only have a cassette recorder for storage... Were joysticks available when the machine was released? If so, you can use them. (If someone really wants too, I suppose they would write a Program Pak entry, as a different category, allowing them to have 8K or 16K of code in ROM, using only 4K of RAM.)

We should probably split the contest in to two categories: BASIC and MACHINE LANGUAGE.

Also, we may wish to consider how the program was written. NATIVE (actually on a 4K CoCo or emulated 4K CoCo) versus EXPANDED (written on a later CoCo or later emulated CoCo) or CROSS HOSTED (written using PC tools). The reason I mention this is because it's not possible to run native EDTASM on a 4K CoCo, so any assembly language would have to be hand-coded (bonus points for doing it that way, just like they had to in 1980). Using a 16K or 32K CoCo to run EDTASM makes things easier. Doing it using a PC-hosted compiler changes things further.

At the very least, we should note how the program was developed:

  • Native - programmed on a 4K CoCo
  • Expanded - programmed on a larger CoCo
  • Cross Hosted - programmed on a non-CoCo

I suppose we can also note:

  • Real - done on a real, physical CoCo
  • Emulated - done on a virtual CoCo

A Native/Real attempt would be much more "legit" in 1980 compared to an Cross Hosted/Emulated attempt, though the focus is the end result.

Using an Emulator

XRoar is a free emulator for Windows, Mac and Linux (and others). You can find a quick-start guide to installing and Using XRoar to emulate an original 4K CoCo.

Using a Bigger CoCo

Art Flexser mentions that if you have a 16K or larger CoCo, you can simulate the limited 4K memory to BASIC using the CLEAR command:

CLEAR 200,4095

After doing this, "PRINT MEM" should show 2343 bytes available.

We will have to see what tricks can be done on a 64K CoCo (copying ROM to RAM then doing some pokes) to disable Extended Color BASIC, and figure out how to do that on a CoCo 3.

Helpful Resources

  • Simon Johansen has a cool VDG screen editor that may be useful for designing CoCo 1 semi graphics screens.

Current Entries

You can see the current entries here:

http://subethasoftware.com/4k/

Admin

I (Allen Huffman, alsplace@pobox.com) am working on this idea. Feel free to organize and edit this page with more ideas.