That's the routine I use in you-know-where:Kweepa wrote:The screen tear is because the scroll is unrolled once, so it scrolls the left and right at the same time. I agree it's ugly. I might revisit it. Perhaps try scrolling top to bottom rather than left to right (which would be slower, but more aesthetically pleasing).
Code: Select all
.TScrollUp
JSR TRange
LDY y_top
.TScrollUp_00
LDA $1100+ 0*192+8,Y:STA $1100+ 0*192,Y
LDA $1100+ 1*192+8,Y:STA $1100+ 1*192,Y
LDA $1100+ 2*192+8,Y:STA $1100+ 2*192,Y
LDA $1100+ 3*192+8,Y:STA $1100+ 3*192,Y
LDA $1100+ 4*192+8,Y:STA $1100+ 4*192,Y
LDA $1100+ 5*192+8,Y:STA $1100+ 5*192,Y
LDA $1100+ 6*192+8,Y:STA $1100+ 6*192,Y
LDA $1100+ 7*192+8,Y:STA $1100+ 7*192,Y
LDA $1100+ 8*192+8,Y:STA $1100+ 8*192,Y
LDA $1100+ 9*192+8,Y:STA $1100+ 9*192,Y
LDA $1100+10*192+8,Y:STA $1100+10*192,Y
LDA $1100+11*192+8,Y:STA $1100+11*192,Y
LDA $1100+12*192+8,Y:STA $1100+12*192,Y
LDA $1100+13*192+8,Y:STA $1100+13*192,Y
LDA $1100+14*192+8,Y:STA $1100+14*192,Y
LDA $1100+15*192+8,Y:STA $1100+15*192,Y
LDA $1100+16*192+8,Y:STA $1100+16*192,Y
LDA $1100+17*192+8,Y:STA $1100+17*192,Y
LDA $1100+18*192+8,Y:STA $1100+18*192,Y
LDA $1100+19*192+8,Y:STA $1100+19*192,Y
INY:CPY y_bot:BNE TScrollUp_00
RTS
You could pack the two files into a *.d64. Then you have a single file again, a convenient place for the savegame file, and the *.d64 is still small enough when zipped for transfer.I'd rather have a single prg than a small file. Perhaps I'll run it through pucrunch to make the load times better.