10.02.2013 Views

a E i - Commodore Is Awesome

a E i - Commodore Is Awesome

a E i - Commodore Is Awesome

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

screen with a joystick is given and this<br />

is used to illustrate some of the points.<br />

Soft-scrolling of the screen<br />

(moving it up one pixel at a time) is<br />

dealt with briefl y, though again in<br />

enough detail to give most programmers<br />

the information that they require<br />

and then it's on to the raster-interrupt.<br />

For those of you not sure what this is<br />

then I suggest that you go and buy the<br />

hook, for those of you that do then you<br />

will be interested to learn that scrolling<br />

the screen is dealt with in detail<br />

complete with a program that allows<br />

you to scroll teat on the screen with a<br />

joystick. All programs are given in<br />

both hex-dump format and assembly<br />

code when necessary, this means that<br />

you can read the assembly code to find<br />

out what the program is doing.<br />

Music is the heading of the next<br />

chapter. getting your C16 and Plus/4<br />

to play both in Basic and Machine<br />

code is covered. Firstly we have a Basic<br />

program that shows you just what is<br />

possible from Basic. Following this is a<br />

program illustrating how to make your<br />

computer play music on interrupts.<br />

This is one instance in the book that I<br />

felt that the author could have<br />

produced a better explanation of the<br />

program and how to use something<br />

5.3 TUR80 MOCE FOR THE C 16<br />

BOOR REVIEWS<br />

similar in your own programs.<br />

The Book then enters the world of<br />

machine code programming. The first<br />

section, entitled introduction to<br />

Machine Code, tries to teach machine<br />

code in only 13 pages.<br />

realise that this isn't possible and<br />

that whole books have been written on<br />

the subject of machine code. However,<br />

this section is excellent, it probably<br />

won't make anyone a machine code<br />

genius but it will stop people from<br />

baulking at the sound of the term and<br />

will show them, again through<br />

examples, how to print something to<br />

the screen, how loops work etc.<br />

A full description of the 7501 processors<br />

commands is given with the<br />

commands in alphabetical order with a<br />

description, their form of addressing,<br />

the assembler format, the number of<br />

bytes it occupies and how many<br />

machine cycles it takes to function.<br />

A description on how to use the<br />

computers in-built kernal routines is<br />

given, together with a list of them all.<br />

Now you have no excuse for not<br />

knowing how to LOAD and SAVE<br />

programs in machine code, or how to<br />

get a character from the keyboard in a<br />

machine code program, all this and<br />

much more is dealt with again in an<br />

For all those, who think the C 16 is too slow., we can show you a<br />

trick with which it will become about 30% faster. Since we live In a<br />

Turbo age, we simply call It the Turbo Mode. The trick is to switch<br />

the screen off. Of course this is impractical if you want to create<br />

Graphics and see them at the same time, but not if you have<br />

mathematical problems to solve, where you dbn't always have io look<br />

at the screen. The speed advantage arises from the fact that the<br />

Video-Chip TED doesn't slow down the Micro Processor anymore once the<br />

screen is switched off. A small demo program, fi rst in Turbo MOde and<br />

then in the normal mode, will Show you how it works and how much time<br />

you can save.<br />

100 POKE 65286,PEEX(65286) AND 239<br />

110 GOSUB 150<br />

120 POKE 65286,PEEK(65286) CC 16<br />

130 GOSUB 150<br />

140 END<br />

150 1%.,.TI<br />

160 FOR 1=1 TO 1000<br />

170 : B=84.1<br />

180 NEXT I<br />

190 PRINT USING u<br />

fi200 t RETURN . 0 4<br />

0<br />

;(TI-T)/60<br />

YOUR COMMODORE january 1987<br />

93<br />

extremely clear way with the name of<br />

the routine being given, its address in<br />

the Kernal what registers are used etc.<br />

all being given.<br />

An excellent memory map of the<br />

computers is given, extremely important<br />

if you wish to use machine code.<br />

The map could have done with some<br />

examples of how to use the various<br />

addresses to your own benefit as I am<br />

afraid that beginners to machine code<br />

will find the function of many of the<br />

addresses totally baffling. The more<br />

experienced programmer will no<br />

doubt find all of the information that<br />

he requires though and this section will<br />

undoubtedly become one of the most<br />

thumbed in the book. Maps of the<br />

TED chip and KERNAL jump table<br />

are also given which again will come in<br />

extremely useful,<br />

If you have ever used a C64 then<br />

you will fi nd the comparison of the<br />

memory maps of the CI6 and C64<br />

extremely useful, I know I did when I<br />

needed to fi nd out where the border<br />

colour was stored on a C16. Its 53280<br />

on the C64 but where on earth is it on a<br />

CI6? This comparison will show you.<br />

The fi nal section of the book<br />

provides the reader with some machine<br />

code utilities ranging from a joystick<br />

scan routine to an OLD (restoring a<br />

NEWed program) routine. Accompanying<br />

this article is a sample section<br />

from this chapter of the book, 1 hope<br />

that this gives you a good idea of what<br />

is possible with this book.<br />

Verdict<br />

must admit I have been waiting for a<br />

book like this on the CI6 and Plus/4<br />

ever since the machines were fi rst<br />

launched. OK so the book isn't perfect<br />

and there is room for a lot of improvement.<br />

However, the book does provide<br />

the advanced programmer with all of<br />

the reference material that he should<br />

ever require.<br />

If you are into serious programming<br />

than I would suggest this is one<br />

book that you must go out and buy, it<br />

will become an invaluable, if not the<br />

most important book in your<br />

collection.<br />

Touchline<br />

Name: (16/Phis 4 Reference Book<br />

Price: 1<br />

. Anco Software, 4 West Gate House,<br />

7.95 Spital Street, Dartford, Kent, DA 1<br />

P2E11. u bTeL<br />

0322 92513/92518 ISBN: 2-<br />

717-00101-5<br />

l i s h<br />

e r :<br />

A<br />

n

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

Saved successfully!

Ooh no, something went wrong!