English Amiga Board


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

 
 
Thread Tools
Old 20 September 2019, 12:50   #1
LaBodilsen
Registered User

 
Join Date: Dec 2017
Location: Gandrup / Denmark
Posts: 91
If statements with Vasm

Hi All
I've been trying out the Amiga Assembly extension for Visual code studio.

Got it up and running with the included sample. And then tried to "import" blueberrys Compact startup into this setup.

Vasm then can't compile because blueberrys code is setup with a lot of "IF value = 0 then do" statements.

like:
Code:
         if          COMPATIBILITY = 0
CACHEFLUSH	macro
         endm
         endc
Can anyone point me to what i need to do, to make a similar statement for the Vasm/vlink setup?..

Thanks in advance.
LaBodilsen is offline  
Old 20 September 2019, 13:19   #2
DanScott
Lemon. / Core Design

DanScott's Avatar
 
Join Date: Mar 2016
Location: Sunny Bournemouth, UK
Posts: 475
Code:
     ifeq	COMPATIBILITY

CACHEFLUSH	macro
     endm

     endc
DanScott is offline  
Old 20 September 2019, 13:21   #3
DanScott
Lemon. / Core Design

DanScott's Avatar
 
Join Date: Mar 2016
Location: Sunny Bournemouth, UK
Posts: 475
of you can use "endif" instead of "endc"
DanScott is offline  
Old 20 September 2019, 14:11   #4
LaBodilsen
Registered User

 
Join Date: Dec 2017
Location: Gandrup / Denmark
Posts: 91
Thank you, this should get me moving forward.

I also found this page with a lot og great info
http://sun.hasenbraten.de/vasm/release/vasm_4.html
LaBodilsen is offline  
Old 24 September 2019, 18:36   #5
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,479
Quote:
Originally Posted by LaBodilsen View Post
Vasm then can't compile because blueberrys code is setup with a lot of "IF value = 0 then do" statements.
The IF directive is supported, as well as ENDIF and ENDC. The problem might be that you are assembling in strict Devpac-compatibility mode (-devpac option)? This excludes IF.
phx is offline  
Old 24 September 2019, 18:55   #6
LaBodilsen
Registered User

 
Join Date: Dec 2017
Location: Gandrup / Denmark
Posts: 91
Quote:
Originally Posted by phx View Post
The IF directive is supported, as well as ENDIF and ENDC. The problem might be that you are assembling in strict Devpac-compatibility mode (-devpac option)? This excludes IF.
Thanks for the input.
i have solved the problem, and you are of course correct that If / endc is fully supported.

I do not use -devpac, as all my sources are from asmpro. and i must say i'm very impressed at how compatible the whole thing is. even "auto cs" commands render correctly.
LaBodilsen 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
ASM in statements - accessing "shared" variables earok Coders. Blitz Basic 4 27 September 2017 07:52
Trying out vlink and vasm cla Coders. General 2 30 September 2016 21:30
Blitz2 blit and block statements inside procedures htdreams Coders. Tutorials 4 29 April 2013 09:36
vasm fsincos dalton Coders. Asm / Hardware 4 03 September 2012 11:35
vasm 1.5 RFC phx Coders. General 30 11 December 2010 03:08

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 13:31.


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