From: Alan Cox Date: Fri, 24 Nov 2017 17:54:09 +0000 (+0000) Subject: 65c816: pass the correct A X Y values to the 6502 user space X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=58a584cabf47dafd86cdbd6de58c71d7028a6f84;p=FUZIX.git 65c816: pass the correct A X Y values to the 6502 user space We don't use these but we do specify them so we should follow what 6502 expects --- diff --git a/Kernel/lowlevel-65c816.s b/Kernel/lowlevel-65c816.s index af3f346a..78739338 100644 --- a/Kernel/lowlevel-65c816.s +++ b/Kernel/lowlevel-65c816.s @@ -1,5 +1,3 @@ - - .P816 .I8 .A8 @@ -399,6 +397,7 @@ _doexec: sep #$30 .a8 .i8 + ldx #>PROGLOAD cli rtl @@ -525,6 +524,7 @@ join_interrupt_path: ret_to_user: lda _need_resched + jmp no_preempt beq no_preempt lda #0