Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2528

development tools • Re: BeebAsm

$
0
0
Is there any clever trick for assembly code to maintain some kind of mutable state while beebasm is assembling it?
I stumbled across your post from April. There's an enhancement request from David Given. Not mutable state but it does solve the problem of having to think up unique label names.

It has a set of reusable labels (1, 2, 3, etc.) and you specify whether you mean the last instance or the next instance. For example

Code:

lda &70bne 1+  ; 1+ means the next .1lda #1.1inycpy #3bne 1-  ; 1- means the previous .1.1dexbne 1-  ; a different previous .1
The post has a couple of alternative possible syntaxes.

Also, I've implemented SOURCELINE, which is a #line equivalent. You can find it here.

Statistics: Posted by ctr — Sun Aug 25, 2024 9:13 pm



Viewing all articles
Browse latest Browse all 2528

Trending Articles