From: Alan Cox Date: Mon, 1 Jan 2018 23:12:51 +0000 (+0000) Subject: 65c816: make the usermem code any bank and split I/D safe X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c0342f678637f013bcab01c282afefe8a7ad7a1f;p=FUZIX.git 65c816: make the usermem code any bank and split I/D safe It's not tested at this point so expect a bug or two --- diff --git a/Kernel/usermem_std-65c816.s b/Kernel/usermem_std-65c816.s index 07c4b52f..09a8d853 100644 --- a/Kernel/usermem_std-65c816.s +++ b/Kernel/usermem_std-65c816.s @@ -32,7 +32,7 @@ __uget: sta ptr1 sta ptr3 stx ptr3+1 lda U_DATA__U_PAGE - sta ugetpatch+2 + sta f:KERNEL_CODE_FAR+ugetpatch+2 phb .i16 .a16 @@ -153,7 +153,7 @@ __uput: sta ptr3 stx ptr3+1 lda U_DATA__U_PAGE - sta uputpatch+1 + sta f:KERNEL_CODE_FAR+uputpatch+1 phb .i16 .a16 @@ -217,8 +217,8 @@ __uzero: stx ptr2+1 lda U_DATA__U_PAGE - sta uzero_patch+1 - sta uzero_patch+2 + sta f:KERNEL_CODE_FAR+uzero_patch+1 + sta f:KERNEL_CODE_FAR+uzero_patch+2 ; Clear lead byte in user space phb