English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 06 November 2016, 09:19   #1
borchen
Registered User
 
Join Date: Jan 2016
Location: NL
Posts: 32
Asmone - combining options (OR-ing)

Hello,

I'm trying to compile some example code in AsmOne 1.20, but it fails because of this:
Code:
D_aud0=1
D_aud1=2
D_aud2=4
D_aud3=8
D_aud=D_aud0|D_aud1|D_aud2|D_aud3
in an include-file.

Does anyone have any idea how this syntax should look like

Update: I see these 'options' can also be used in commands like:
Code:
move.l   #OPTION1|OPTION2|OPTION3,d0

Last edited by borchen; 06 November 2016 at 09:53.
borchen is offline  
Old 06 November 2016, 20:42   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,538
Your syntax is correct. No reason why it shouldn't work. Did you make sure that D_aud0/1/2/3 are defined before D_aud?

Might be a bug in the assembler. Did you try other AsmOne/AsmPro versions?
phx is offline  
Old 08 November 2016, 22:43   #3
borchen
Registered User
 
Join Date: Jan 2016
Location: NL
Posts: 32
Quote:
Your syntax is correct. No reason why it shouldn't work. Did you make sure that D_aud0/1/2/3 are defined before D_aud?
That's what I also thought, and then I took, another, closer look at the manual (a scanned pdf) and it looks like the logical operator in AsmOne is actually an exclamation mark! instead of the expected |

I wonder why they choose this

So in AsmOne it should look like this:

Code:
OPTION1=%1000
OPTION2=%0100
OPTION3=%0010
OPTION4=%0001

	move.w	#OPTION1!OPTION2!OPTION3!OPTION4,d0

Last edited by borchen; 08 November 2016 at 23:22.
borchen 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
Combining copper scrolling with copper background phx Coders. Asm / Hardware 16 13 February 2021 12:41
AsmOne installation lunecat Coders. General 1 19 September 2015 00:05
Old PD stuff - having trouble adf'ing it! ElectroBlaster Amiga scene 7 10 March 2013 20:54
View Magazine Jpegs like a book, without pdf'ing it! diablothe2nd AMR suggestions and feedback 0 30 March 2012 17:09
AsmOne even directive...? pmc Coders. General 30 04 December 2009 09:33

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 20:02.

Top

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