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


Forums > C64 Coding > Locals in unrolled loops in ACME
2017-08-01 10:51
ChristopherJam

Registered: Aug 2004
Posts: 707
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 13:45
Stryyker

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

Registered: Aug 2004
Posts: 707
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
Groepaz
BjørnRøstøen/Panoram..
Roysterini
Debris/Panic
Bytebreaker/Hokuto F..
GH/MSL/Toondichters
tlr
taper/ΤRIΛD
Guests online: 52
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 The Shores of Reflec..  (9.6)
5 Lunatico  (9.6)
6 Comaland 100%  (9.5)
7 Incoherent Nightmare  (9.5)
8 Wonderland XII  (9.5)
9 Comaland  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 Pandemoniac Part 2 o..  (9.6)
2 FMX Music Demo  (9.6)
3 Daah, Those Acid Pil..  (9.5)
4 Synthesis  (9.5)
5 Dawnfall V1.1  (9.5)
6 Dawnfall  (9.4)
7 Treu Love [reu]  (9.4)
8 Field Sort  (9.4)
9 KAOS 64  (9.3)
10 One-Der  (9.2)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.3)
4 The Judges  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Veto  (9.8)
2 Joe  (9.8)
3 Mirage  (9.7)
4 Jailbird  (9.6)
5 Hein  (9.5)

Home - Disclaimer
Copyright © No Name 2001-2017
Page generated in: 0.24 sec.