changeset 3058:958f7a277064

level1 krnp2: Set up stack correctly for 6309
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 25 Jan 2015 22:36:05 +0100
parents 1a76d7b57aa6
children 412772d32331
files level1/modules/kernel/krnp2.asm
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/level1/modules/kernel/krnp2.asm	Sun Jan 25 22:36:04 2015 +0100
+++ b/level1/modules/kernel/krnp2.asm	Sun Jan 25 22:36:05 2015 +0100
@@ -484,7 +484,13 @@
          ldy   <D.Proc
          ldd   P$SP,y
          ldx   R$X,u
+         IFNE  H6309
+         pshs  u,y,x,dp
+         pshsw
+         pshs  b,a,cc
+         ELSE
          pshs  u,y,x,dp,b,a,cc
+         ENDC
          sts   P$SP,y
          os9   F$NProc
 L0361    std   P$SP,y