AtariAge Forums: Sprite and map scrolling demo on Tandy CoCo 3 - AtariAge Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Sprite and map scrolling demo on Tandy CoCo 3

User is online JamesD Icon
Posted Thu Nov 19, 2009 11:28 PM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,746
  • Joined: 20-August 06
A new Sprite and map scrolling demo on the Tandy CoCo 3. Sort of a proof of concept.
As I said before, a little CPU horsepower and more RAM and you can do sprites without hardware.
The video is a little choppy and doesn't show how smooth the actual animation really is.
http://www.youtube.c...player_embedded
0

User is offline thegoldenband Icon
Posted Fri Nov 20, 2009 8:07 PM


  • Icon
  • Dragonstomper
  • PM this member
  • Posts: 630
  • Joined: 26-November 04
  • Location: Long Island, NY
It looks terrific! I'm particularly impressed since I've made small attempts at programming for the CoCo and have some small sense of how tough that sort of thing is.

As a side note, I often wonder how my programming youth was shaped by having a CoCo as my first (and basically only) home computer, since it had neither hardware sprites nor a synth chip. Things that would've been a piece of cake on the C64, for example, were thus a pain in the neck on the CoCo. Don't get me wrong, I love the CoCo, but if we'd had a different machine, I might well have gotten more into programming, and become a programmer instead of what I do now (dabble in programming, but mostly other stuff). I was a little shocked when I looked at the C64 BASIC programming manual recently and saw how easy it was for them to do this stuff!

This post has been edited by thegoldenband: Fri Nov 20, 2009 8:12 PM

0

User is offline tjb Icon
Posted Fri Nov 20, 2009 8:19 PM

    • Let's play soccer


  • Icon
  • Dragonstomper
  • PM this member
  • Posts: 840
  • Joined: 24-February 06
  • Location: San Antonio, Texas
Very cool! Posted Image Makes me want to add a CoCo to my collection...


tjb
0

User is offline Bruce Tomlin Icon
Posted Fri Nov 20, 2009 8:40 PM

    • CD C9 01


  • Icon
  • River Patroller
  • PM this member
  • View blog
  • Posts: 3,342
  • Joined: 20-February 04
  • Location: Austin, TX
The 6809 can really move some data if you disable the interrupts and use multiple PULS/PSHU instructions that copy 6 or 7 bytes at a time. It's not quite as good as the Z-80's LDIR, but it's a lot better than anything the 6502 can do. This is from a graphics mode screen driver that I wrote for OS9.

SCRUP PSHS U,Y,D
 LDX #0
 BSR SCRADR
 LEAU 6,Y
 LEAX $1800,Y
 CLR ENDSCR
 STS SPSAV
 LEAS 256,Y
SCRUP1 PULS D,X,Y
 PSHU Y,X,D
 LEAU 12,U
 PULS D,X,Y
 PSHU Y,X,D
 LEAU 12,U
 PULS D,X,Y
 PSHU Y,X,D
 LEAU 11,U
 PULS A,X,Y
 PSHU Y,X,A
 LEAU 11,U
 DEC ENDSCR
 BNE SCRUP1
 LEAY -256,S
 LDS SPSAV
 LDU 4,S
 LBSR CLRLN0
 PULS D,Y,U,PC

...of course if you have a 6309 you can use the TFM instruction instead.
0

User is offline potatohead Icon
Posted Tue Jan 5, 2010 11:14 PM


  • Icon
  • Stargunner
  • PM this member
  • View blog
  • Posts: 1,927
  • Joined: 22-February 04
  • Location: Portland, Oregon
This is a great piece of code!

I've decided to jump back to the CoCo 3 for a while. It's a fun machine, and has some graphics tricks of it's own.
0

User is offline remz Icon
Posted Mon Jan 11, 2010 8:50 PM


  • Icon
  • Combat Commando
  • PM this member
  • Posts: 5
  • Joined: 06-December 09

View Postpotatohead, on Wed Jan 6, 2010 12:14 AM, said:

This is a great piece of code!

I've decided to jump back to the CoCo 3 for a while. It's a fun machine, and has some graphics tricks of it's own.


Thanks guys! I'm the guy who coded that demo.
Indeed as Bruce said, the 6809 can really move a lot of data with its "MMX"-like instruction. In fact they are 'SIMD' (single-instruction, multiple data).
For example, the instruction:
pshs d,x,y,u,dp,cc
writes a string of 10 bytes and requires 15 clock cycle. (In 16 color mode, this means you can set 20 pixels in one instruction, faster than 1 pixel per clock). Thus the CoCo 3 can yield a maximum fillrate of 1193333 bytes per second (i.e.: 1.1 MB/sec). Do you know if any other 8-bit computer faster than that?
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users