EDIT: Bugfix to last commit - off by one!

This commit is contained in:
Bobbi Webber-Manners 2020-08-26 19:48:26 -04:00
parent f810a64ead
commit b2108c9e7c

View File

@ -178,10 +178,10 @@ void move_in_gapbuf(uint16_t dst, uint16_t src, size_t n) {
__asm__("ldy $fa"); // LSB of n
dl1:
__asm__("cpy #$00"); // Copy leftover bytes
__asm__("beq %g", ds1);
__asm__("lda ($fc),y");
__asm__("sta ($fe),y");
__asm__("cpy #$00"); // Copy leftover bytes
__asm__("beq %g", ds1);
__asm__("dey");
__asm__("jmp %g", dl1);
ds1: