somewhere in this code is a bug, I can't spot it, but yet it outputs very incorrectly.I've attached a screenshot depicting how it looks. it should not be looking this way, but I don't have a clue as to how to fix it.
I can attach my whole codebase, if necessary. thank you for your help!
Code:
; src - tilemap sourceDrawTilemap:ldy #$0lda #$20sta scratch1+1lda #$00sta scratch1sta scratch1+3lda #$C0sta scratch1+2lda #$04sta scratch1+4tyatax@loop:lda (src),ycmp #$FFbeq @rettaxlda scratch1+1sta $2006lda scratch1sta $2006lda Metatiles1_TL,xsta $2007lda Metatiles1_TR,xsta $2007lda scratch1+1sta $2006lda scratch1clcadc #$20sta $2006lda Metatiles1_BL,xsta $2007lda Metatiles1_BR,xsta $2007lda Metatiles1_Pal,xand #%11clcadc scratch1+3rol arol aadc #0sta scratch1+3dec scratch1+4bne :+lda #4sta scratch1+4lda #$23sta $2006lda scratch1+2sta $2006lda scratch1+3sta $2007lda #0sta scratch1+3inc scratch1+2:inc scratch1inc scratch1lda scratch1and #$1Fbne @contlda scratch1clcadc #$20sta scratch1bcc @continc scratch1+1@cont:inybne @loop@ret:rts
I can attach my whole codebase, if necessary. thank you for your help!
Statistics: Posted by crystalmoon — Sun Nov 24, 2024 4:22 am — Replies 0 — Views 8