12.07.2015 Views

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 12-BYTE-MOVE SHAPES 1431BYTE #2VERSION # 02• • r • •• • •• •• • •• • • •• • • • •3456• • • • • • •• • • • • • •• • • • • • •• • • • • • •Figure 12-3.If you take the time to c<strong>al</strong>culate the v<strong>al</strong>ues needed to produce the sevenversions, you should arrive at:BYTE #1 BYTE #2DEC DOT DOT DECVALUE PATTERN PATTERN VALUE------------------------------ ---- -----126 -XXXXXX X------ 1124 --XXXXX XX----- 3121£l ---XXXX XXX---- 7112 ----XXX XXXX--- 1596 -----XX XXXXX-- 3164 ------X XXXXXX- 63Ill ------- xxxxxxx 127What you have in this example is a two-byte animation. Even though thefigure appears to be only one byte wide, in six of the seven possibleplacements, it requires two bytes to represent the line. You should considereach of the bytes in a figure to have its own s<strong>et</strong> of seven separations. ·It is another characteristic of byte-move that any figure requires sevenseparations for horizont<strong>al</strong> movement and, fu rther, that each figure takesone byte more than you would expect.The line which fits in one byte actu<strong>al</strong>ly requires a two-byte definition. Afour-byte figure will require five bytes for <strong>al</strong>l the separations. The onlyexception is a figure one dot wide, where <strong>al</strong>l seven versions will fit intoone byte.You can manu<strong>al</strong>ly move the line from BASIC by typingHGR

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!