home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1996
/
ARCHIVE_96.iso
/
text
/
hints
/
volume_01
/
issue_06
< prev
next >
Wrap
Text File
|
1995-02-16
|
14KB
|
363 lines
Å (1.2 OS) If you want to look at the desktop manager programs and
perhaps modify them and run them from disk, the following information
may be of use:
1.6
The DESKTOP has its own filing system activated by *DESKFS. If you do a
*CAT, you will get: DeskTopMgr
1.6
DeskTopMgr2
1.6
&.!palette
1.6
Icons.Desktop
1.6
Icons.Calculator
1.6
Icons22.Desktop
1.6
Icons22.Calculator
1.6
You can then LOAD the DeskTopMgr2 program and LIST it. (DeskTopMgr╩is
just the 5-line startup program that gets left in BASIC when you exit
the desktop.)
1.6
If you change back to *ADFS, you can then save the program. To copy the
palette and/or the Icons, you have to use commands such as:
1.6
*COPY DESKFS:I*.Desktop $.I*.Desktop
1.6
(assuming you are in ADFS and have created a directory called Icons)
1.6
To run the program from disk, you need the icon and palette files to be
copied across then if you fancy tackling 76k of öcrunchedò BASIC
program, you can try editing it!
1.6
Å If you are using the decrement or increment (+= or Ö=) in a BASIC
program and you get a öMistakeò error on that line, the chances are that
you have forgotten to initialise the variable. Try typing X=X+1:PRINT X
and it will give the value 1 but if you type Y+=1 it will say öMistakeò.
What it really should say is öUnknown or missing variableò, but still,
good programmers wonæt get the problem because we always remember to
initialise all our variables, donæt we? (We do?)
1.6
Å Testing multi-sync output without a multi-sync monitor! If you are
writing software and hoping to sell enough of it to be able to afford a
multi-sync monitor(!) you have the problem of testing your software in
modes 18 to 20. If you use *Configure MonitorType 1, modes 0 to 17 are
still displayed as normal then when you select modes 18 to 20 and
generate the screen output, you can use a screendump (such as Gerald
Fittonæs minidump or *HardCopyFX) to look at what youæve got. If youære
worried about damaging the monitor, switch it off before changing mode.
1.6
Å Using large printer buffers etc. If youære using a buffer thatæs
larger than 64 kbytes, itæs no use trying to use ADVAL with a negative
number (e.g. PRINT ADVAL(-4) for the printer buffer) Ö it only returns
the least two significant bytes. Instead, use SYS öOS_Byteò, &80, &FC TO
, X%, Y% : bytes_free%= X%+256*Y% where &FC is the Ö 4 value. (Actually,
instead of working out that Ö 4 is the equivalent of &FC you can, it
seems, be lazy and use Ö 4 in the SYS command. Ed.)
1.6
Å Easy loading of modules: To enable you to load the emulator and fast
BASIC easily, you can create some library programs on your Welcome disc
(or better still, a copy of your Welcome disc!). This is what you do for
fast BASIC:
1.6
*BUILD LIBRARY.FAST
1.6
*FX225,1|M
1.6
*KEY1 QUIT||M*MODULES.RAMBASIC
1.6
||M*KEY1||MCLS||MHELP||M
1.6
*FX138,0,129
1.6
<escape>
1.6
and then change it into a BASIC program with
1.6
*SETTYPE LIB*.FAST &FFB<return>.
1.6
Note that there are double pad characters before each ÉMæ in order that
when the program line is run, each double pad character is interpreted
as a single pad character for the actual key definition.
1.6
The bits after calling the module are optional. The first is to clear
key1 again in case you press it accidentally. The second is to clear the
screen and the third is to give a help message to show that you are
actually in RAM_BASIC. (See below).
1.6
Once this is set up, to get into fast BASIC all you do is type
*FAST<return>.
1.6
For the 6502 emulator, use the name LIB*.6502 and donæt put the HELP
command in because that does not work on BASIC IV.
1.6
Å Tidying up after ArcWriter! You can do a similar thing to the above
hint in order to tidy up after using ArcWriter.
1.6
*BUILD LIBRARY.RESET
1.6
*FX225,1|M
1.6
*KEY1 QUIT||M*CONFIGURE FONTSIZE
1.6
2||M*RMREINIT FONTMANAGER||M
1.6
*RMTIDY||M*BASIC||M
1.6
*KEY1||MHELP||M
1.6
*FX138,0,129
1.6
<escape>
1.6
Typing *RESET will do the tidy-up for you.
1.6
Å Identifying RAMBASIC. To get RAM_ BASIC to tell you that it actually
IS the RAM version and not the ROM version, you can change a few bytes
so that it prints out ÉRAM BBC BASICæ instead of ÉARM BBC BASICæ on the
startup and HELP messages. To do this, proceed as follows:
1.6
*LOAD MO*.RAM* 20000
1.6
?&202B0=ASCöRò
1.6
?&202B1=ASCöAò
1.6
?&23F78=ASCöRò
1.6
?&23F79=ASCöAò
1.6
*SAVE MO*.RAM_BASIC 20000 +E434
1.6
*SETTYPE MO*.RA* &FFA
1.6
Å Reversing the CAPS lock. If you hold down the shift key when you put
the CAPS lock light on, you will find that the shift key now has the
opposite effect, i.e. letters typed without pressing shift come up as
uppercase letters, but when you press the shift key you get lower case
letters. This can be useful if you are programming and mostly work in
upper case but with occasional use of lower case.
1.6
Å Displaying screens in different modes. If you have a screen that has
been SCREENSAVEæd, you can display it in another mode. (e.g. Artisan
screens in 256 colour modes!) Assuming you have configured spritesize to
at least 11, proceed as follows:
1.6
MODE 13
1.6
*SLOAD filename \ NOT
1.6
*SCREENLOAD
1.6
*SCHOOSE screendump
1.6
PLOT &ED,0,0
1.6
You will note that the palette has changed and that it is a lower
resolution, however, it will still be quite decent and you will have all
those lovely colours to play around with!
1.6
If you choose mode 15, you will get the same picture displayed in 256
colours but squeezed into only half the screen width.
1.6
If you want to change the colours you will have to load it into the
sprite editor (SEDIT) and change the colours manually.
1.6
Å Using the View Series. You will find that after coming from the
desktop, TAB does not work. The solution is to type *FX219,9.
1.6
ViewProfessional works fine if you use the second processor version Ö
the VP file on the 5.25ö disk Ö however it should be *LOADæed at 4000
(not 8000) and called with *GO 4000. (See page 5, Archive 1.1)
1.6
Å Diary/Notepad problems. Beware: If you are printing something from
notepad or diary, check that an active printer is on-line before
starting to print otherwise the system may hang up and the only way out
is to press <ctrl-break> Ö frustrating if you havenæt saved the text
first!
1.6
Å Slower listings. I know this is obvious to ex-BBC users, but Iæve
not seen mentioned anywhere the fact that holding <ctrl> and <shift>
keys down together will stop the screen scrolling. Archimedes lists
programs so quickly that even if you use <ctrl-N> to get a paged
listing, you may well get two pages instead of one if you hesitate on
pressing the shift key, so using <ctrl> and <shift> allows you to
control the listing yourself.
1.6
Å File transfer between wordprocessors. If you have Wordwise Plus or
View files and you want to import them into GraphicWriter, use *SETTYPE
filename &FFF to ensure that GraphicWriter sees them as text files.
(Actually it should already see Wordwise Plus files as text because of
the save address that Wordwise Plus uses Ö check by doing *INFO *.) Then
you can simply load the files into GraphicWriter using the file menu. To
transfer the files back to View or Wordwise, you need to save them as
ASCII files. This is done by opening the file menu then clicking on the
word öTEXTò with the ADJUST button, typing in a filename and pressing
<return>.
1.6
(I tried to do the same sort of thing with ArcWriter but it kept
crashing each time I tried to load a file, so I gave up!)
1.6
Å Smart ON ERROR routine. If your ON ERROR routine includes the
following, you get the usual error message and then, if you press any
key other than <escape> it will drop into the ARM BASIC editor at the
offending line. So if you do not want to go into the editor, press
<escape> instead.
1.6
ON ERROR OFF
1.6
PRINT REPORT$+ö at line ò;ERL
1.6
dummy%=GET
1.6
SYS 5,(öKEY0 EDIT ò+STR$(ERL)
1.6
+ö|Mò)
1.6
SYS 6,138,0,128
1.6
END
1.6
If you prefer to move into EDIT a few lines above the offending line,
use STR$(ERLÖ50) or whatever.
1.6
Å Dual purpose boot files. It is quite possible to have a boot file
that will work equally well from within the desktop or as a conventional
boot file operated with <shift-break>. What you do is *BUILD the file as
usual but then *settype <filename> &FFB which gives it a link to BASIC.
If you then double-click on it in the desktop, it adds line numbers to
it and runs it as a BASIC program. However, it will only work with
<shift-break> if the machine is configured to start up in BASIC, not in
the desktop (i.e. *CON. Language 4, not 3).
1.6
Å With the PC emulator you can get more space than Mark Sealey
reckoned in his review last month by *unplugging various of the modules.
On reader reckons to get almost 590,000 bytes free (= 576k).
1.6
Å Disabling Modules. Archive no.5 explains how *Unplug can be used to
disable Modules, but this method needs a <ctrl-break>. An alternative is
to use *RMKill and *RMTidy from the operating system *-prompt (not from
BASIC), e.g.
1.6
*RMKill FontManager
1.6
*RMKill StringLib
1.6
*RMKill Percussion
1.6
*RMKill ARMBasicEditor
1.6
*RMKill WindowManager
1.6
*RMTidy
1.6
This typically releases 96 Kbytes of memory on an A310 machine and
doesnæt need a <ctrl-break>. It is particularly useful if youære short
of space in BASIC, Pascal or FORTRAN, etc and arenæt using fancy sound,
the WIMP environment or the BASIC editor. Each module can be reinstated
by using *RMReinit <Module name>, or all can be restarted by <ctrl-
break>.
1.6
Å GW BASIC on the PC Emulator. There is an undocumented way to get
back into the MS-DOS operating system after using GW BASIC. Try pressing
function key f-11.
1.6
Å PC Emulator. Version 1.09 (which existing users can get by sending
back their old disc plus ú15 to Acorn) runs, amongst other things,
Ability Plus, dBase 3 Plus, Kermit, Word Perfect, LTS NewsMaster (see
separate review). (Can anyone add to this list?)
1.6
Å RS423╔ yet again! If you have the 1.2 operating system and if you
have the version of the serial chip that is made by GTE (itæs the 28 pin
IC at the back left of the pcb) and if you change over from using the
CTS line at the Archimedes end to using the DSR line (i.e. link 1, 4 and
8 and join pin 6 to the RTS line from the other machine) then Acorn have
a fix which you load in as a module. Send a blank disc to Customer
Services to get a copy. The version they sent me didnæt work the first
time I tried it with some data transfer software so I pressed <escape>
and tried again and it worked perfectly at 19,200 baud. Then I tried
again and it wouldnæt send anything, pressed <escape> and away it went!
Still, when you do get it going it sends and receives at 19,200 baud in
both directions without any data corruption. I left it running for a
couple of hours and there was no corruption at all.
1.6
Å After the desktop╔ simpler than the list of FX commands that we gave
last month is to call SYSöWimp_CloseDownò (which is what Acorn should
have put in their desktop program in the first place!!!) but if you
donæt fancy trying to type that every time, getting upper and lower case
exactly correct, you can create a one line BASIC program with 10
SYSöWimp_Close Downò and save it on your disk as $.library. undesk and
then just type *undesk (or whatever abbreviation you can get away with)
and all will be restored to normal.
1.6
Å Using the Seikosha 250X printer is a bit of a problem. When you plug
it into the Archimedes, all power is lost. This seems to be because of
the +5.0 volts on lines 18 and 36 of the printer connector Ö these are
earthed at the Archimedes end and so have to be disconnected somehow.
One reader, Adrian Moreton, has succeeded but it is too complicated to
explain here. If you want the information, send us an s.a.e. and weæll
send you a photocopy of his letter and the excellent diagrams he has
drawn.
1.6
Å ADFS wildcards. Had you gathered that ADFS will take * or #
wildcards anywhere in a filename? On the BBC, you could only put them at
the end of the filename. So, for example, if youæve got PROGRAM1,
PROGRAM2, PROGRAM3 etc you only need to say something like LOAD öPR*2ò
or even LOAD ö*2ò if none of the other files have numeric endings. That
makes life much easier, doesnæt it?! (Thanks to Benjamin Finn for
pointing that out. The next hint is his, too.)
1.6
Å Errors in library procedures. If an error occurs in a PROC or FN
that is installed using LIBRARY or INSTALL, the correct error message is
given but the line number quoted is the last number in the main program.
Although we cannot get a line number pointer to the error, we can at
least find out from which procedure in the main program the library
routine was called when the error occurred.
1.6
At the beginning of each definition of a PROC or FN you should put
something like:
1.6
DEF PROCdosomething
1.6
LOCAL ERROR
1.6
ON ERROR LOCAL PRINT REPORT$
1.6
ö in PROCdosomethingò:END
1.6
.
1.6
.
1.6
ENDPROC
1.6
Å Help with Econet is offered by Michael Ryan of XOB, Balkeerie,
Eassie, By Forfar, Angus, DD8 1SR. Michael says, öHere are some comments
about Archimedes on Econet in response to comments in Archive 1.3, page
8.
1.6
öRDFREE is part of the Econet filing system module and hence not a disc-
based utility as with the BBC version. Issued with a user identity as
parameter, it gives the total disc free space and that useræs allocated
portion of it. Issued with no parameter, it returns the useræs own free
space and the total free space.
1.6
öAcorn are supplying a number of other utilities including SETFREE,
SETSTAT, USERS, PROT and UNPROT, though they have not yet made it clear
how they are to be distributed, so donæt hold your breath.
1.6
öThough it is very unlikely that they will supply the more sophisticated
utilities (VIEW, REMOTE, NOTIFY etc) all is not lost. XOB already have a
wide range of utilities for the BBC/Master series and have already
implemented several of them on the Archimedes. More details from us on
0307Ö84364.ò
Å Most of the keys on the numeric pad have secondary functions if used
with the Num Lock off. In BASIC, 1 gives copy, 2 and 3 are both cursor
down, 4 is cursor left, 5 doesnæt seem to do anything, 6 is cursor
right, 7 is Écursor homeæ and 8 and 9 and cursor up. In View, the single
cursor movements are 2, 4, 6 and 8 while 3 and 9 are page down and page
up respectively.