Skip to content

Commit

Permalink
Iron out some rendering kinks
Browse files Browse the repository at this point in the history
  • Loading branch information
ADM228 committed Jan 15, 2025
1 parent 5357979 commit 63cc7c0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
9 changes: 5 additions & 4 deletions LIB/asm/nesdash.s
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,7 @@ ntAddrHiTbl:
STA instBufWriteBuffer+5
LDA #>(fl_updSeqNormal-1)
STA instBufWriteBuffer+6
DEC instBufWriteBuffer+4 ;__ The length
ldx #7
JMP transferWriteToInstBuf
.endproc
Expand Down Expand Up @@ -3664,11 +3665,11 @@ bank:
sec ;
sbc tmp1 ;
sta instBufWriteBuffer+3 ;__
iny ;
tya ; The amount of bytes needs to be incremented
sta instBufWriteBuffer+4 ;__
sty instBufWriteBuffer+4 ;__ The amount of bytes

clc
tay

sec ;__ The amount of bytes needs to be incremented
adc VRAM_INDEX
sta VRAM_INDEX
tax
Expand Down
8 changes: 7 additions & 1 deletion LIB/asm/nesdoug.s
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ _multi_vram_buffer_common:
; sreg = data
stx instBufWriteBuffer+2
ldy xargs+0
dey
sty instBufWriteBuffer+4

ldx VRAM_INDEX
Expand All @@ -71,8 +72,13 @@ _multi_vram_buffer_common:
inx
dey
bne @loop
stx VRAM_INDEX
@finalWrite:
lda (sreg), y
sta VRAM_BUF, x
inx
dey
@end:
stx VRAM_INDEX
ldx #7
jmp transferWriteToInstBuf

Expand Down
6 changes: 4 additions & 2 deletions LIB/asm/neslib.s
Original file line number Diff line number Diff line change
Expand Up @@ -1212,15 +1212,17 @@ fl_updSeqNormal:
lda (NAME_UPD_PTR),y
sta PPU_DATA
dey
bne @loop
bne @loop
@finalWrite:
lda (NAME_UPD_PTR),y
sta PPU_DATA
txa
sec
adc NAME_UPD_PTR
tay
rts ; ropslide to next routine

fl_updSeqRepeat:
iny
tax
pla
@loop:
Expand Down
4 changes: 2 additions & 2 deletions SAUCE/gamestates/state_lvldone.h
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,10 @@ void bgmtest() {
}
__A__ = idx16_load_hi_NOC(xbgmtexts1, song);
if (__A__) draw_padded_text(xbgmtexts1[song & 0x7F], xbgmtext1_size[song], 18, NTADR_A(7, 10));
else one_vram_buffer_horz_repeat('$', 17, NTADR_A(7, 10));
else one_vram_buffer_horz_repeat('$', 18, NTADR_A(7, 10));
__A__ = idx16_load_hi_NOC(xbgmtexts2, song);
if (__A__) draw_padded_text(xbgmtexts2[song & 0x7F], xbgmtext2_size[song], 18, NTADR_A(7, 11));
else one_vram_buffer_horz_repeat('$', 17, NTADR_A(7, 11));
else one_vram_buffer_horz_repeat('$', 18, NTADR_A(7, 11));

draw_padded_text(sfxtexts[sfx & 0x7F], sfxtexts_size[sfx], 18, NTADR_A(7, 18));

Expand Down

0 comments on commit 63cc7c0

Please sign in to comment.