[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shape table code question
- Subject: shape table code question
- From: Jonno Downes <jonnosan@gmail.com>
- Date: Sat, 15 May 2010 21:33:10 -0700 (PDT)
- Complaints-to: groups-abuse@google.com
- Injection-info: q36g2000prg.googlegroups.com; posting-host=121.218.95.107; posting-account=XeaUgQoAAACn-Gws0Ssl9mrTmlxSVui3
- Newsgroups: comp.sys.apple2
- Organization: http://groups.google.com
- User-agent: G2/1.0
- Xref: g2news2.google.com comp.sys.apple2:17811
Howdy
Can anyone point me at an explanation of how the vector bytes in a
shape table are interpreted?
I've seen various explanations of how to create shape tables, and they
all talk about creating vectors, then coding that vector into 3 bit
sections where
first bit of 3 : 0=dont plot, 1=plot
remaining 2 bits of 3: 00=move up, 01=move right, 02=move down,
11=move left
then you take 2 of these 3 bit codes, prepend with "00" and you have
an 8 bit byte to put in your shape table.
Which all makes sense, except I am currently looking at the Beage Bros
"Apple Mechanic" manual (http://beagle.applearchives.com/the_software/
vintage_beagle_bros_softwar/apple_mechanic.html ) and there is a table
on page 46 "Apple Shape Table Vectors" that shows the high 2 bits can
be nonzero, and all 8 bits in the byte are significant.
Can anyone explain exactly how the vectors are decoded?
Cheers
Jonno