English Amiga Board


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

 
 
Thread Tools
Old 20 September 2019, 11:50   #1
LaBodilsen
Registered User
 
Join Date: Dec 2017
Location: Denmark
Posts: 179
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, 12:19   #2
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,213
Code:
     ifeq	COMPATIBILITY

CACHEFLUSH	macro
     endm

     endc
DanScott is offline  
Old 20 September 2019, 12:21   #3
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,213
of you can use "endif" instead of "endc"
DanScott is offline  
Old 20 September 2019, 13:11   #4
LaBodilsen
Registered User
 
Join Date: Dec 2017
Location: Denmark
Posts: 179
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, 17:36   #5
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,560
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, 17:55   #6
LaBodilsen
Registered User
 
Join Date: Dec 2017
Location: Denmark
Posts: 179
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 06:52
Trying out vlink and vasm cla Coders. General 2 30 September 2016 20:30
Blitz2 blit and block statements inside procedures htdreams Coders. Tutorials 4 29 April 2013 08:36
vasm fsincos dalton Coders. Asm / Hardware 4 03 September 2012 10:35
vasm 1.5 RFC phx Coders. General 30 11 December 2010 02: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 14:21.

Top

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