Heaven/TQA #1 Posted December 24, 2007 stll not get it... why does this not work? the STA ?loop+1 and STA ?loop+2 are referenzed to the first "local" loop and not to the second one... what i am doing wrong? tabinit: lda 756 sta si+1 lda #0 sta si ldx #0 ?loop lda si sta fonttabl,x lda si+1 sta fonttabh,x lda si add #8 sta si bcc ?cont inc si+1 ?cont inx bpl ?loop mwa #vram si mwa #vram2 di ldy #31 ldx #0 ?loop2 lda si sta scrtabl,x lda si+1 sta scrtabh,x lda di sta txttabl,x lda di+1 sta txttabh,x+ lda si add #20 sta si bcc ?cont2 inc si+1 ?cont2 lda di add #20 sta di bcc ?cont3 inc di+1 ?cont3 dey bpl ?loop2 wait_vbl: lda 20 cmp 20 beq *-2 rts ;in y=pos on screen ;in x=xpos ;in a = char set_sprite: sta char sty temp stx hposp0 mwa #p0 di lda #0 ldy oldpy ldx #7 ?loop sta p0,y+ dex bpl ?loop ldx char lda fonttabl,x sta ?loop2+1 lda fonttabh,x sta ?loop2+2 ldy temp sty oldpy ldx #0 ?loop2 lda $ffff,x+ sta (di),y+ cpx #8 bcc ?loop2 rts Quote Share this post Link to post Share on other sites
drac030 #2 Posted December 24, 2007 (edited) stll not get it... why does this not work? the STA ?loop+1 and STA ?loop+2 are referenzed to the first "local" loop and not to the second one... what i am doing wrong? You forgot "opt ?+" at the beginning of your source. Edited December 24, 2007 by drac030 Quote Share this post Link to post Share on other sites
Heaven/TQA #3 Posted December 24, 2007 AAAH... that's the clue? thanks Draco Quote Share this post Link to post Share on other sites
tebe #4 Posted December 29, 2007 opt ?+ for MAE local vars opt ?- (default): .local namespaces1 .local namespaces2 .endl .endl .local namespaces1 ; additive namespaces1+namespaces1 .endl Quote Share this post Link to post Share on other sites