English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 30 September 2018, 22:39   #1
volvo_0ne
Registered User
 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 360
AMAL VU problem?

I use & like AMAL a lot, but up until today I have never used it's "VU" function.

The following snippet of code
Code:
1 AM$="Loop: Let RA=VU(1);Pause;Jump Loop"
2 Channel 1 To Screen Display 0
3 Amal 1,AM$
4 Amal On
(line numbers inserted for clarity)
Is supposed to read voice 1 and store it in register RA at each interrupt (for later retrieval with AMREG= from BASIC)

However I get the error

Instruction only valid in autotest at line 3

(Obviously the problem lies in the definition of AM$ in line 1, but the manual & helpfile says this should work?)
I think this may be a syntax thing, or maybe even an error in the help/manual texts.

I have tried removing the parenthesis in AM$ EG:
Code:
1 AM$="Loop: Let RA=VU 1;Pause;Jump Loop"
2 Channel 1 To Screen Display 0
3 Amal 1,AM$
4 Amal On
which seems to crash winuae quite spectacularly!

Any help much appreciated.

V1

Last edited by volvo_0ne; 30 September 2018 at 23:11.
volvo_0ne is offline  
Old 30 September 2018, 23:53   #2
volvo_0ne
Registered User
 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 360
AHA!

It's a major error in the documentation!!!!!

The correct command is NOT "VU(voice)" it is simply "V(voice)"
so should read.....

Code:
1 AM$="Loop: Let RA=V(1);Pause;Jump Loop"
2 Channel 1 To Screen Display 0
3 Amal 1,AM$
4 Amal On
Panic over, but will hopefully be useful for someone later on.............
volvo_0ne is offline  
Old 01 October 2018, 09:31   #3
Predseda
Puttymoon inhabitant
 
Predseda's Avatar
 
Join Date: Mar 2007
Location: Tromaville
Age: 46
Posts: 7,535
Send a message via ICQ to Predseda
How did you discover it?
Predseda is offline  
Old 02 October 2018, 19:55   #4
volvo_0ne
Registered User
 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 360
Quote:
Originally Posted by Predseda View Post
How did you discover it?
Trial & error (I guess I was lucky)
volvo_0ne is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
AMAL animation string Predseda Coders. AMOS 7 04 September 2018 22:34
AMAL as primary code... volvo_0ne Coders. AMOS 14 13 April 2018 01:59
AMAL channel n to object n limit?? volvo_0ne Coders. AMOS 1 07 October 2017 21:18
Animating explosion without amal aszu Coders. AMOS 13 17 March 2016 23:33
More AMAL headaches.... volvo_0ne Coders. AMOS 0 23 February 2016 00:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:12.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07147 seconds with 15 queries