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 > Locals in unrolled loops in ACME
2017-08-01 08:51
ChristopherJam

Registered: Aug 2004
Posts: 1378
Locals in unrolled loops in ACME

Is it possible to have local labels in unrolled loops in ACME? Or do I need to resort to plusses and minusses?

The following doesn't assemble, as pa_nextflag etc are multiply defined:
    !for flagindex, NFLAGS-1, 0 {

    ldx mux_flagset+flagindex                 ;
    beq pa_noflags                            ;         6     *26
pa_nextflag

    stx pa_get_remaining_flags+1              ;
    ldy log_least_bit,x                       ;  8
    lda mux_ot+ybase+(NFLAGS-1-flagindex)*8,y ;
pa_pn
    pha                                       ;  7
    tax                                       ;
    lda mux_nx,x                              ;  6
    bpl pa_pn                                 ;

    lda#255                                   ;
    lda mux_ot+ybase+(NFLAGS-1-flagindex)*8,y ;  9

pa_get_remaining_flags
    ldx least_one_cleared                     ;
    bne pa_nextflag                           ;  6.75   35.75   *32

pa_noflags


    }       ; total 40.625*32

2017-08-01 11:45
Stryyker

Registered: Dec 2001
Posts: 465
In a little test I found you could use !zone then .local variables
2017-08-01 13:39
ChristopherJam

Registered: Aug 2004
Posts: 1378
Ah, thank you!

Dots before the lables, and all is fine.
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
Jetboy/Elysium
mutetus/Ald ^ Ons
Bieno/Commodore Plus
kbs/Pht/Lxt
jmin
CreaMD/React
Mason/Unicess
t0m3000/ibex-crew
Guests online: 200
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (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.121 sec.