Difference between revisions of "Amstrad Action December 1989 Type-Ins"
From CPCWiki - THE Amstrad CPC encyclopedia!
(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...") |
|||
(One intermediate revision by one other user not shown) | |||
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 | ||
Line 22: | Line 32: | ||
<center><gallery style="clear: both"> | <center><gallery style="clear: both"> | ||
Image:NimIITI.png|<center>Nim II</center> | Image:NimIITI.png|<center>Nim II</center> | ||
− | + | </gallery></center> | |
− | /gallery></center> | + | |
{{DEFAULTSORT:Amstrad Action 1989-12 Type-Ins}} | {{DEFAULTSORT:Amstrad Action 1989-12 Type-Ins}} | ||
[[Category:Amstrad Action Type-Ins]] | [[Category:Amstrad Action Type-Ins]] |
Latest revision as of 08:41, 4 August 2020
The following listings were published in the December 1989 issue of Amstrad Action:
Contents
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