![]() |
![]() |
#1 |
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 Thanks in advance. |
![]() |
![]() |
#2 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,213
|
Code:
ifeq COMPATIBILITY CACHEFLUSH macro endm endc |
![]() |
![]() |
#3 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,213
|
of you can use "endif" instead of "endc"
|
![]() |
![]() |
#4 |
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 |
![]() |
![]() |
#5 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,560
|
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.
|
![]() |
![]() |
#6 | |
Registered User
Join Date: Dec 2017
Location: Denmark
Posts: 179
|
Quote:
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. |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
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 |
|
|