Difference between revisions of "Amstrad Action December 1989 Type-Ins"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
(Created page with "The following listings were published in the December 1989 issue of ''Amstrad Action'': === Type-Ins === * Nim II (Mark Walker) * Eval (Seg Gorham) '''NB 464 only''' * W...")
 
(Notes)
Line 10: Line 10:
 
== Notes ==
 
== Notes ==
  
* '''Eval''' provides an RSX that's relocateable to anywhere in the central 32K memory.
+
* '''Eval''' provides an RSX that's relocateable to anywhere in the central 32K memory (eg: &4000). This routine works by taking an mathematical expression from a String and assign to the variable expressed within the string. The routine is 464 only as it's using Direct Addressing from the Firmware 1.0. AA unfortunately didn't provide a clear example of how EVAL works, so here's one I came up with:
 +
 
 +
<pre>
 +
x=0:a$="x=x+1":WHILE x<10:PRINT x;:|EVAL,@a$:WEND
 +
</pre>
 +
 
 +
Unfortunately, I don't know what advantage it has when compared with this code:
 +
 
 +
<pre>
 +
x=0:WHILE x<10:PRINT x:x=x+1:WEND
 +
</pre>
  
 
* '''Wavy''' is for DMP2000 printers
 
* '''Wavy''' is for DMP2000 printers

Revision as of 05:14, 16 March 2019

The following listings were published in the December 1989 issue of Amstrad Action:

Type-Ins

  • Nim II (Mark Walker)
  • Eval (Seg Gorham) NB 464 only
  • Wavy (David Hooper)
  • Superbasic (George McIntosh)

Notes

  • Eval provides an RSX that's relocateable to anywhere in the central 32K memory (eg: &4000). This routine works by taking an mathematical expression from a String and assign to the variable expressed within the string. The routine is 464 only as it's using Direct Addressing from the Firmware 1.0. AA unfortunately didn't provide a clear example of how EVAL works, so here's one I came up with:
x=0:a$="x=x+1":WHILE x<10:PRINT x;:|EVAL,@a$:WEND

Unfortunately, I don't know what advantage it has when compared with this code:

x=0:WHILE x<10:PRINT x:x=x+1:WEND
  • Wavy is for DMP2000 printers

Download

Screenshots