Date : Fri, 02 Jan 2009 22:14:51 +0000 (GMT)
From : info@... (Sprow)
Subject: My sideways ram utils
In article <495E8917.50605@...>,
Phill Harvey-Smith <afra@...> wrote:
> I've hopefully ironed out most of the bugs from these, feel free to
> download and have a play.
>
> Constructive comments welcome :)
Skim reading the documentation, does *SRSAVE and *SRLOAD allow the optional
'Q' parameter?
Likewise for SRLOAD, the optional 'I' parameter added to later MOS versions.
Should the help for SRCOPY specify which is the master and which is the copy?
I think an address range would be necessary for "SRCMP", otherwise if you
loaded a long image into RAM followed by a short one then compared it with a
ROM it wouldn't match. Or maybe SRCMP with a file (though SRLOAD followed by
SRCMP would do the same thing).
Seriously impressed by the tidy source code!
A minor optimisation, given that OutHexDigit AND's with 15 would make
OutHexByte be
pha
pha
lsra ; Move to bottom nibble
lsra
lsra
lsra
jsr OutHexDigit ; Print it
pla ; Recover byte to print
jsr OutHexDigit ; Print it
pla
rts
Sprow.