<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Thu, 28 Oct 2004 09:49:08 +0100
From   : Richard_Talbot-Watkins@...
Subject: Re: &D00

Andrew W <a.weston2@...> wrote on 27/10/2004 20:41:13:

> Incidentally, was EQUate in BASIC I (I think or is it Model A?) as the
> assembler book I have covering BASIC I does not mention it?

No, EQUB, EQUW, EQUD and EQUS were added in Basic II, along with OPT 4..7,
for assembling code to be run at P% but actually assembled at O%.

In Basic I, the EQUates had to be faked like this:

FOR pass%=0 TO 2 STEP 2
[OPT pass%
.tablelo
 OPT FNequb(addr1 AND 255)
 OPT FNequb(addr2 AND 255)
.tablehi
 OPT FNequb(addr1 DIV 256)
 OPT FNequb(addr2 DIV 256)
.string
 OPT FNequs("Test String"+CHR$0)
]
NEXT
END
:
DEF FNequb(a%)
?P%=a%:P%=P%+1
=pass%
:
DEF FNequw(a%)
!P%=a%:P%=P%+2
=pass%
:
DEF FNequd(a%)
!P%=a%:P%=P%+4
=pass%
:
DEF FNequs(a$)
$P%=a$
P%=P%+LENa$
=pass%




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
postmaster@...     

This footnote also confirms that this email message has been checked
for all known viruses.

**********************************************************************
Sony Computer Entertainment Europe
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>