Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Assembler with dynamic symbol creation
2016-06-12 06:19
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....
 
2016-06-22 11:49
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
2016-06-22 11:52
Peacemaker

Registered: Sep 2004
Posts: 275
thanks oswald, but that is slower =)
2016-06-22 12:14
Oswald

Registered: Apr 2002
Posts: 5094
no, thats the generator. just wanted to show how simple is it you macro nerds :)
2016-06-22 12:35
Compyx

Registered: Jan 2005
Posts: 631
But what are 'fe' and 'ff', macro's? ;)
2016-06-22 12:37
chatGPZ

Registered: Dec 2001
Posts: 11386
those are not macros, those are labels!
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Guests online: 87
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.055 sec.