Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Brizio ! (Registered 2017-08-20) 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: 620
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: 620
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
MetalSoftwareService
aNdy/AL/Cosine
c0zmo/BLiSS
Dwangi/Fairlight
Nucleus/Desire
Harpoon
Isildur/Samar
Guests online: 45
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 Veterans of Style  (9.5)
2 Dawnfall V1.1  (9.5)
3 Daah, Those Acid Pil..  (9.5)
4 Treu Love [reu]  (9.4)
5 Dawnfall  (9.3)
6 SidRok  (9.3)
7 F1 Evolution  (9.3)
8 One-Der  (9.2)
9 Tunnel Vision  (9.2)
10 Game of Thrones [2sid]  (9.1)
Top Groups
1 Pond  (10)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Oxyron  (9.4)
5 Crest  (9.3)
Top NTSC-Fixers
1 Horizon  (9.7)
2 Pudwerx  (9.6)
3 Stormbringer  (9.6)
4 Fungus  (9.6)
5 Moloch  (9.3)

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