mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-12 02:31:12 +00:00
EDIT: Bugfix to last commit - off by one!
This commit is contained in:
parent
f810a64ead
commit
b2108c9e7c
@ -178,10 +178,10 @@ void move_in_gapbuf(uint16_t dst, uint16_t src, size_t n) {
|
|||||||
|
|
||||||
__asm__("ldy $fa"); // LSB of n
|
__asm__("ldy $fa"); // LSB of n
|
||||||
dl1:
|
dl1:
|
||||||
__asm__("cpy #$00"); // Copy leftover bytes
|
|
||||||
__asm__("beq %g", ds1);
|
|
||||||
__asm__("lda ($fc),y");
|
__asm__("lda ($fc),y");
|
||||||
__asm__("sta ($fe),y");
|
__asm__("sta ($fe),y");
|
||||||
|
__asm__("cpy #$00"); // Copy leftover bytes
|
||||||
|
__asm__("beq %g", ds1);
|
||||||
__asm__("dey");
|
__asm__("dey");
|
||||||
__asm__("jmp %g", dl1);
|
__asm__("jmp %g", dl1);
|
||||||
ds1:
|
ds1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user