| |
Hypnosis
Registered: Mar 2015 Posts: 36 |
Assembler with dynamic symbol creation
I have read some documentation for an assembler that allowed labels or symbols to be created dynamically, basically by concatenating strings. Which assembler was that? |
|
... 20 posts hidden. Click here to view all posts.... |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
Quote: at the moment i doing it like this with kickass:
.const count=25
loop1: .for(var i=0; i<count; i++) {
lda #i
sta loop2+1+i*5
}
loop2: .for(var i=0; i<count; i++) {
color: lda #0
sta $d020
}
lda #i
ldy #$01
sta (fe),y
lda fe
clc
adc #$05
sta fe
bcc *+4
inc ff |
| |
Peacemaker
Registered: Sep 2004 Posts: 275 |
thanks oswald, but that is slower =) |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
no, thats the generator. just wanted to show how simple is it you macro nerds :) |
| |
Compyx
Registered: Jan 2005 Posts: 631 |
But what are 'fe' and 'ff', macro's? ;) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
those are not macros, those are labels! |
Previous - 1 | 2 | 3 - Next |