home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1997
/
ARCHIVE_97.iso
/
text
/
hints
/
vol_02
/
issue_06
< prev
next >
Wrap
Text File
|
1995-02-16
|
11KB
|
319 lines
Å Dacom modem connections Ö If you want to connect a Dacom modem to
the Archimedes, try the following connections:
2.6
Archimedes Modem
2.6
2 ╤ 3
2.6
3 ╤ 2
2.6
5 ╤ 7
2.6
9 ╤ 6
2.6
Also link 1, 4 and 8 at the Archimedes end and also 6 to 7. If you are
using Hearsay 1.04, use the Tandata modem driver, not the Dacom one.
2.6
Å Easy copying Ö If you have a single drive, try setting
2.6
*set alias$dcopy %0 :0.%0 PQ
2.6
Then you can use, say,
2.6
*dcopy filetocopy
2.6
and this will copy the file öfiletocopyò onto another disc on the same
drive, prompting for disc changes.
2.6
Å Easy compacting Ö This could apply to a number of commands, but if
you want, for example, to compact a disc several times, you can use
*repeat 6 compact which will do a *compact 6 times if you have previ
ously set an alias for repeat as follows:
2.6
*set alias$repeat if %0>0 then repeat %0-1 %*1|m if %o>0 then %*1
2.6
Å Masked Sprites Ö The Welcome Disc Sprite Editor was criticised in
November 88 Archive as not working properly. It does work properly, well
almost!
2.6
To create a masked sprite, first draw your sprite as normal, then press
<shift-f9> (create mask) then select the colour that you want to be
transparent and fill in any areas that are to be transparent. The
display will show a hatched effect for that colour.
2.6
To plot a masked sprite, remember that you must use a GCOL 8,0 before
plotting the sprite.
2.6
Å Hard disc Backup program Ö Paul Hobbs sent in the following
improvement to last monthæs hard disc backup program╔ The very useful
hard disk backup program in Archive 2.5 can, I think, be improved very
easily by the addition of the following lines after the line PRINT
CHR$(13);òScanning: ö;... etc in PROCaction(). It allows a check to be
made for directories not to be backed up. The full path name should be
given as in the example below. Quite a few of the directories on my disk
are backed up on their own floppies and this modification saves a lot of
time.
2.6
1621 RESTORE
2.6
1622 skip=FALSE
2.6
1623 REPEAT
2.6
1624 READ nocop$
2.6
1625 IF LEFT$(dir$,LENnocop$)
2.6
=nocop$ THEN skip=TRUE
2.6
1626 UNTIL nocop$=ö*** END ***ò
2.6
1627 IF skip=TRUE THEN ENDPROC
2.6
7000DATA :4.$.1WP.cfg,:4.$.1WP.doc
2.6
.BAK,:4.$.TMP,:4.$.BBCTelSoft
2.6
7001DATA :4.$.TMP,:4.$.CPROGGIES,
2.6
:4.$.BACKUP,:4.$.1WP.hex
2.6
7002DATA ö*** END ***ò
2.6
Å Hard disc squeek Ö Those who are lucky enough to have hard discs may
be suffering a continuous high pitched squeal from the drive when the
machine is switched on. My dealer assured me that it would eventually go
away, but I lost patience and cured it by lubricating the disc drive
spindle with WD-40 (or similar). If you remove the disc drive and look
into the connector end, between the printed circuit board and the drive
body, you should be able to see a carbon pad mounted on the PCB which
rubs against the end of the spindle (to earth it and avoid static
problems). Using an aerosol can fitted with a long tube, a few drops of
lubricant on this pad will cure the noise. Take care when squirting Ö
and naturally no responsibility is accepted!
2.6
Å C routines Ö When using the tmpnam() or tmpfile() routines in the
ANSI C library, a directory &.Tmp needs to be created on the current
drive. This is not present on the master floppy, nor is it created by
the hard disc install procedure (installHD).
2.6
Å ANSI C command line parameters Ö page 31 of the manual says that
öArguments to main() are the words of the command line, delimited by
spacesò, but gives no further information. The parameters are actually
passed in the same way as the Unix2 environment does Ö for those
programmers unfamiliar with Unix, the main procedure is called with two
arguments, which are declared as:
2.6
int main(argc,argv)
2.6
int argc;
2.6
char *argv[];
2.6
{2 .6
/* argv[1] points to first
2.6
parameter
2.6
argv[2] points to second,
2.6
etc.
2.6
Program name is at argv[0] */
2.6
where argc is the number of parameters given (which includes the program
name, so this will always be at least 1) and argv is an array of
pointers to the parameters Ö argv[0] is the command name and argv[1] is
the first parameter. Parameters are normally separated by spaces, but
quoted strings are passed as one unit. Some programmers prefer to
declare argv as:
2.6
char **argv;
2.6
and use it as a pointer to a list of pointers to the arguments.
2.6
Å BBC Master Edit Ö If you want to use an image of the Edit ROM (the
Master version) under 65Arthur, you need a *ALPHABET BFONT before
running it up, otherwise the on-screen help display looks very confus
ing. This ROM, by the way, uses CMOS byte 8 (öreserved for Acorn useò)
in which to save the screen mode and help level.
2.6
Å *COPY without the ÉQæ Ö omitting the Q option when copying a file
forces Arthur to ignore bad sectors or tracks in a file. This allows you
to recover screens or text files from corrupted discs If you have a
single drive and donæt want to perform umpteen swaps then proceed as
follows:
2.6
*DELETE or *COPY (with Q) the other files until you have room for
another copy of the bad file.
2.6
Then *COPY :0.filenme :0.BADfilenme ~C~PV
2.6
Å Orion loading speed Ö To speed up the loading, note that there is
what appears to be a non fatal bug in the ö$.Orion.Orion_basò program.
It *sloadæs a sprite file seven times!
2.6
LOAD ö$.Orion.Orion_basò
2.6
now look round about line 3000 and you will find the *sload command that
should be outside the FOR/NEXT loop!
2.6
Edit this and then save the program back onto the disc. (The name at the
top of the program has an extra Énæ at the end which has to be deleted
from the filename as displayed by the editor if you try to save it with
<f3>)
2.6
Å Orion Ö Feel like a laugh? Instead of EDITing ö$.Orion.Orion_basò as
above, try :
2.6
*con. scr. 20
2.6
*con. spr. 20
2.6
<ctrl-break>
2.6
*DIR Orion
2.6
LOAD öOrion_basò
2.6
701 *UNSET BJS
2.6
RUN
2.6
Then when you press <space> to load the game you get a marvelous
digitised laugh! This is apparently a (very clever) part of the
protection used in the program.
2.6
Å Extended life for Orion Ö While the instructions are scrolling up
the screen try pressing <U>, <L>, <C> and <space> together but in that
order. It then allows you to select a level at which to start the game
and you will find that you start with 10 lives & 10 smart bombs!
2.6
Å Zarch cheat Ö you can get into the cheat mode if, when you first
start up and are sitting on the landing pad, you press <Q>, <T> and <U>
together but in that order. You may have to try it a few times. Now <L>
gives you an extra life, <F> refuels (in mid-air) and <D> toggles the
auto-pilot.
2.6
Å Zarch Ö Some new landscapes make this game much better. (Program
NewWorld on monthly program disc or send S.A.E. for listing.) This
program works with the original protected version of Zarch as long as
you have screen size to 160k and other sizes to zero. It uses a
variation of the PRINTKEY program in one of the earlier Archives.
(PRINTKEY had a bug in it! P%=0:O%=code% OPT 4-7)
2.6
Å Terramex. For endless lives, with Terramex disc in drive, type:
2.6
*LOAD TERRACODE 9000
2.6
!&CF18=&FAFFDC3E
2.6
!&CF20=&FAFFDC3E
2.6
CALL &9000
2.6
Å Quazer Ö with the Impact software version of Quazer (which appears
to be the same as V1.42) type:
2.6
*SETEVAL Quazer%MeatHead 1 -Immortal
2.6
(also try Quazer%Lives, Quazer%Level)
2.6
Then use *Quazer to Run
2.6
Å OS_FSControl problem Ö David Scott reckons there is a problem with
the system command for the COUNT operation. The OS_FSControl (&29)
system command for filing system control with R0 set to 28 (page 262 of
the Programmers Reference Manual) has a problem which is not apparent
from the description given.
2.6
If the call is used in a program to obtain values for use by the program
it is not possible to do this without the information also being printed
on the screen. This is because bit 8 of the action mask in R3 must be
set in order to get the correct values returned in R2 and R3.
2.6
The way round this problem is to turn the screen output off using VDU21
before making the system call and then to turn it back on afterwards
with VDU6. If a printer is connected then this will also have to be
temporarily disconnected with VDU3 before and VDU2 after the call.
2.6
Å Potential Electrocution! (Archive 2.5 p19) Ö This is a problem with
most colour monitors. The explanation is as follows... When you turn the
power off, a static charge forms on the screen surface, creating a
potential difference of several KV between the monitor chassis and the
screen surface. If you then pick the monitor up with the screen facing
your body, the screen is effectively connected to your body, and so the
potential now exists between you and the monitor chassis, and remains
there due to the insulating properties of the plastic case. If you then
touch the chassis via a mounting screw or the rear connector, the
potential will be discharged, possibly painfully! (I speak from
experience!) The answer is to make sure you are touching the chassis
(e.g. the RGB connector shell) BEFORE picking it up, and keep hold of it
whilst carrying the monitor. The other answer is to lift and carry it
with the screen away from you.
2.6
Å Pipedream on RISC-OS Ö As reported last month, the current version
of Pipedream DOES work under RISC-OS. All you have to do is *RMKILL
International to kill the international keyboard. This is because Acorn
have changed the use of the <alt> key under RISC-OS and Pipedream uses
this for its drop-down menus.
2.6
Å PC Emulator problems Ö You may have problems with the computer
locking up when you are using the PC emulator. This happens sometimes
when you have a modem connected to the RS423 port which is not switched
on. I suspect it may be the öunknown IRQ at &00000000ò which Arthur
manages to cope with but perhaps the PC emulator canÉt. Try keeping the
modem switched on.
2.6
Å Stacked bar charts in Gammaplot Ö In Gammaplot it is not possible to
produce directly östackedò or segmented bar charts such as:-
2.6
2.6
2.6
2.6
Nor is it possible to create directly bar charts with gaps between the
bars such as-:
2.6
2.6
2.6
2.6
but it is possible to create them indirectly by using a table with (say)
only 1 in 5 of the values as a non-zero number (i.e. make other gaps by
introducing zeros in the spreadsheet).
2.6
Multiple bar charts such as:-
2.6
2.6
2.6
2.6
2.6
Can be created by producing three (or more) separate graphs from three
separate spreadsheets and then overlaying one on the other by using
öDisplay all graphsò and using the öWindow facility to move each (of the
3) separately to the desired position. The diagonal lines and any text
(such as scales or title) is added in öCustomiseò afterwards.
2.6
I know of NO package which produces segmented bar charts. Presenter will
produce multiple bars directly but without the flexibility of Gamma
Plot.
2.6
If you had the patience then you could make several different bar charts
and use the öBlock Moveò facility of öCustomiseò to stack the blocks of
the bars but it would take time and might be a lot easier in, say,
Artisan which has a ötransparentò colour for use with its sprites.
2.6
(N.B. Overlaid line graphs and multiple pie charts are very easy in
Gammaplot.)
2.6