Bug #24
closedRestore to expression not implemented.
0%
Description
Example: Help_48, line 130,134 from AMOSPro_Examples:
Both lines are the same:
Restore Rnd(5)+1 ' Instruction not implemented error at the Rnd
I also tried a simpler expression with the same result:
Restore 2+1 ' Instruction not implemented at the +
Updated by Anonymous almost 5 years ago
Brian Flanagan wrote:
Example: Help_48, line 130,134 from AMOSPro_Examples:
Both lines are the same:Restore Rnd(5)+1 ' Instruction not implemented error at the Rnd
I also tried a simpler expression with the same result:
Restore 2+1 ' Instruction not implemented at the +
Using 9.2.6, this fails:
** Restore 3
Read Y
Print Y
Data 1
Data 2
Data 3
Data 4
**
Updated by Anonymous almost 5 years ago
Using 9.2.6, this fails:
Restore 3
Read Y
Print Y
Data 1
Data 2
Data 3
Data 4
Updated by Francois Lionet almost 5 years ago
- Status changed from New to Resolved
- Assignee set to Francois Lionet
- Target version set to 0.9.3
Fixed.
Updated by Baptiste Pillot almost 5 years ago
- Status changed from Resolved to Closed
- Took the example from AMOS_Professional_Manual.pdf 05.04.13 page 98 : RESTORE
First example : with Label
- source : https://www.amos2.fr/ide/Amos2/Ide/Program/424
- run : https://www.amos2.fr/run/tickleman/24/
- result : "Last". Works well... with both 0.9.2.6 and 0.9.3.1.
Another example that works with both versions : with line numbers
- source : https://www.amos2.fr/ide/Amos2/Ide/Program/425
- run : https://www.amos2.fr/run/tickleman/24-b/
- result : "3". Its OK.
Third example : with line numbers and using Rnd() :
- source :
- compile result with 0.9.2.6 : main.aoz:1:13: error: instruction not implemented
- result with 0.9.3.1 : A random number between 1 and 5 : it works !
1 Restore Rnd(4)+4
2 Read Y
3 Print Y
4 Data 1
5 Data 2
6 Data 3
7 Data 4
8 Data 5
Ok, fine. I close.
Updated by Baptiste Pillot almost 5 years ago
- Related to Bug #46: RESTORE causes internal error added