29.12.2014 Views

Apple Orchard 1980 Fall v1n2 reduced

Apple Orchard 1980 Fall v1n2 reduced

Apple Orchard 1980 Fall v1n2 reduced

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FALL <strong>1980</strong> THE A PPLE ORCHA RD PAGE 13<br />

Before we get started with the experiments, I must tell you<br />

that the screen looks at the binary bits backwards from the way<br />

you use them in counting. What this means is that the left most<br />

bit is valued at 1 and the right most bit is valued at 128. Also,<br />

only 7 bits will show up on the screen. I am told that the 8th bit<br />

controls the additional colors on the newer machines. My APPLE<br />

is #86 and does not have the mod, so I have never used the 8th<br />

bit. Hopefully, someone out there who has extensive experience<br />

with the colors will submit a subsequent article.<br />

At this point, you should be looking at the blank Hi-res<br />

screen. Memory location 8192 is the one that controls the first<br />

7 dots in the upper left corner of the screen. So, POKE a 1 into<br />

8192 by typing 'POKE 8192,1' and hit return. One dot in the<br />

A -<br />

B<br />

A 1 024 0<br />

B 1152 1<br />

c 1280 2<br />

D 1408 3<br />

1536 4<br />

1664 5<br />

1792 6<br />

1920 7<br />

1064 8<br />

11 92 9<br />

1320 10<br />

1448 11<br />

1576 12<br />

1704 13<br />

1832 14<br />

1960 15<br />

1104 16<br />

1232 17<br />

1360 18<br />

1488 1 9<br />

1616 20<br />

1744 21<br />

1872 22<br />

2000 23<br />

CHART #1<br />

corn er should have come o n. Now type 'POKE 8192,64 '. The dot<br />

that was on should have gone off and another one come on.<br />

That's because 64 is the value of the 7th bit, which is the last bit<br />

that the graphics will use. If you want both dots on at the same<br />

time, add the 2 values together, 64+1=65, and type 'POKE 8192,<br />

65'. Now, both dots should be on. This probably seems like a lot<br />

of work to get something on the screen. It is, if you do it all manually.<br />

However, when you can use formulas to figure out where<br />

to put the dots, the computer will do it all for you. Play with that<br />

for awhile. You can use any RAM location between 8192 and<br />

8231 for the enti re top line.<br />

Now that you know how to control each RAM location, let's<br />

talk about the formatting of the screen so you can use the whole<br />

thing.<br />

D<br />

c<br />

0 1063<br />

3 11 91<br />

6 1 31 9<br />

9 1447<br />

1 2 1575<br />

1 5 1703<br />

1 8 1831<br />

21 1959<br />

1 11 03<br />

4 1231<br />

7 1359<br />

10 1487<br />

13 1615<br />

16 1743<br />

1 9 1871<br />

22 1999<br />

2 1143<br />

5 1271<br />

8 1399<br />

11 1527<br />

14 1655<br />

17 1783<br />

20 1911<br />

23 2039<br />

This chart represents the screen as you see it in the text mode, with characters on it. It is broken into a lot of little boxes, (40 across<br />

and 24 down). Only one character at a time can be in each box. Notice the 'A' in the upper left corner It will be on all the other charts<br />

also. This will help you to keep proper perspective as to the size of the portion of screen that we are looking at. In the text mode it takes<br />

only one memory location to operate each one of these boxes. In Hi-res it takes 8 bytes of RAM to control each box. Unfortunately the<br />

RAM locations do not follow through from one line to the next. In this chart you see 4 columns of figures. They are:<br />

A- The first RAM location used for that line in the text mode.<br />

B- The screen line number.<br />

C- The line numbers as they fall in sequential RAM locations.<br />

D- The last RAM location used for that line.<br />

The screen line# will be the one referred to from this point unless otherwise noted.<br />

Notice that line #1 's first RAM location is 1024 and that the last is 1063. That is a total of 40 RAM locations for the 40 characters<br />

across on the first line. Also notice that line #2 does not have the next RAM location of 1064. It is on line #9. So, if following the RAM<br />

in sequence, it jumps to line #9 from line #1. The last RAM location on line 9 is 1103. 1104 is the first RAM location on line 17. The<br />

last RAM location of line 17 is 1143. Now, here is a more confusing part. There are 8 RAM locations that are not used ( 1144-1151 ).<br />

1152 starts line #2. This continues until the entire screen is filled.

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

Saved successfully!

Ooh no, something went wrong!