![]() |
![]() |
#1 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,575
|
vasm 2.0
The vasm 2.0beta is approaching the end of its beta-test phase and I would like to release it before my holidays in July. The biggest new feature - support for cpu-architectures which don't use 8-bit bytes - is not relevant for Amiga, but there are also many changes which are.
So this is last opportunity to report any annoying bugs or important features which you would like to see in the release. If you have something, speak, or contact me by email! ![]() |
![]() |
![]() |
#2 |
Registered User
Join Date: Jul 2018
Location: Laughingstock
Age: 45
Posts: 31
|
Minor thing but I'd like to see CC?=gcc set in the Makefile , then it picks up the env var if found else defaults to gcc.
|
![]() |
![]() |
#3 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,575
|
Does it really default to gcc, when CC is not defined your environment?
I tried it here (NetBSD with gcc, no CC environment set) and my "GNU Make 4.2.1" calls "cc" instead of "gcc". Which is not a problem for me, as cc is hard-linked to gcc. But I'm unsure if this would cause problems on other systems. Does Linux have a cc-link? |
![]() |
![]() |
#4 |
Registered User
Join Date: Jul 2018
Location: Laughingstock
Age: 45
Posts: 31
|
Was set to "CC=gcc" on OpenBSD until recently , now it's "CC=cc" . If you feel uncertain then keep it as is, it's not that critical.
Last edited by frakswe; 09 June 2024 at 15:26. |
![]() |
![]() |
#5 | |
Registered User
Join Date: Jul 2014
Location: Finland
Posts: 1,207
|
Quote:
![]() pdp8 support would actually be nice, vasm is a bit nicer then PALBART. |
|
![]() |
![]() |
#6 |
Registered User
Join Date: Jul 2014
Location: Finland
Posts: 1,207
|
Ah, found the answer in the source code tarball.
|
![]() |
![]() |
#7 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 688
|
@phx is it possible me to have an official source mirror repository on GitHub?
|
![]() |
![]() |
#8 |
Registered User
Join Date: Jul 2009
Location: Lala Land
Posts: 608
|
It would be good to be able to use github's online tools :-)
|
![]() |
![]() |
#9 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,464
|
Nice to hear v2.0 is approaching release. Looking forward to finding out what's new once it's released
![]() |
![]() |
![]() |
#10 |
Registered User
Join Date: Jun 2008
Location: somewhere else
Posts: 549
|
If something like that isn't implemented (yet) i'd like to have a specific command to be able to redefine a register alias several times (equr only allow to define a register alias once), like the equ/set couple (setr ?)
|
![]() |
![]() |
#11 | |||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,575
|
Quote:
Quote:
Quote:
-regsymredefshould allow that since 9 years. |
|||
![]() |
![]() |
#12 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 688
|
The “me” in my original question was not supposed to be there. Sorry for the confusion. Im asking for an official place on GitHub to find the sources. There are some “mirror” repos for vasm on there (among them one I created), but it’d be tedious to keep them up to date. It would be great to have a mirror done by the actual devs for 100% ground truth. It should be possible to even setup an automated mechanism to pull things from cvs directly(?!)
|
![]() |
![]() |
#13 |
Inviyya Dude!
Join Date: Sep 2016
Location: Amiga Island
Posts: 2,806
|
Nice...
![]() would it be possible to have REPTN being used in labels? Like REPT 20 mylabel_REPTN: ENDR ? |
![]() |
![]() |
#14 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,575
|
Quote:
So a daily source snapshot is the best you can get. Not sure how much you can automate that. ![]() |
|
![]() |
![]() |
#15 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,575
|
Text replacements are only performed in macro mode. Although this could be done with some effort, I'm not sure if it is really required.
Currently you have two possibilities to reach your goal. 1. By a macro which defines a unique global label: Code:
mylab macro lab\@: endm inline: Code:
rept 20 inline moveq #2,d0 .1: dbf d0,.1 einline endr |
![]() |
![]() |
#16 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,307
|
Here's a pattern I've used a couple of times:
Code:
colfunc macro colfunc\<col>: .cnt set 0 rept screend ifne (col&(1<<.cnt)) bset.b d1,.cnt*rowbytes(a0) else bclr.b d1,.cnt*rowbytes(a0) endc .cnt set .cnt+1 endr rts endm col set 0 rept (1<<screend) colfunc col set col+1 endr |
![]() |
![]() |
#17 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,575
|
|
![]() |
![]() |
#18 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,307
|
Quote:
![]() The specific labels come in handy if followed by (from same code): Code:
colfuncentry macro dc.w colfunc\<col>-colfunctab endm colfunctab: col set 0 rept (1<<screend) colfuncentry col set col+1 endr Code:
merge macro x set \1 y set \2 x1 set \1-1 y1 set \2-1 rx set 4-\1 ry set 8-\2 merge\<x>\<y>: cmp.w d\<ry>,d\<rx> bls.b .x\@ move.w d\<ry>,(a1)+ bra merge\<x>\<y1> .x\@: move.w d\<rx>,(a1)+ bra merge\<x1>\<y> endm ycnt set 4 rept 4 xcnt set 4 rept 4 merge xcnt,ycnt xcnt set xcnt-1 endr ycnt set ycnt-1 endr BTW looking forward to v2.0 ![]() |
|
![]() |
![]() |
#19 |
Inviyya Dude!
Join Date: Sep 2016
Location: Amiga Island
Posts: 2,806
|
No offense, but this looks overly complicated for the simple iterator on global labels that I need here.
![]() Anyway, you do you of course... ![]() |
![]() |
![]() |
#20 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,575
|
The std-syntax module provides the
.irpdirective for "iterating repeat". You can specifiy some values which will be assigned to a symbol: Code:
.irp sym,10,20,30,40 lab\sym: .byte \sym .endr IRPdirective into mot-syntax, if this is useful. (Although I don't like to invent new directives, which make vasm incompatible with other assemblers.) |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vasm | freehand | Coders. Asm / Hardware | 2 | 25 November 2023 23:51 |
Question about XREF vs XDEF (vasm 1.8 vs vasm 1.9) | roondar | Coders. Asm / Hardware | 8 | 01 May 2023 20:59 |
Vasm division by 0 | Quagliarulo | Coders. Asm / Hardware | 4 | 27 July 2020 11:30 |
If statements with Vasm | LaBodilsen | Coders. Asm / Hardware | 5 | 24 September 2019 17:55 |
vasm 1.5 RFC | phx | Coders. General | 30 | 11 December 2010 02:08 |
|
|