From c0ae79ab3a37bac2b54f06f58fa5b252b7e4c167 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Tue, 20 Sep 2022 16:58:28 -0400 Subject: [PATCH] auxmem.init.s: Added paranoid SEI while setting up aux stack. --- applecorn.po | Bin 819200 -> 819200 bytes auxmem.init.s | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/applecorn.po b/applecorn.po index 15468e327275c9a54730ac39dfcfd264ffbb4fad..cdc6e5eba5a4cf488bc83e39e241fdbef74312a2 100644 GIT binary patch delta 3951 zcmZuU3v?4llA4zMQ4@^3#9+W7?SPF11{*N`0meVEV;Hb8Kf~Q+mA&jnAz{NVw}Io> z=ShM%e&cm6io?X+j{FPtcX*-Isg0 zo&Hr-SM^labXC{z`~sd|V5?D0_+YUjYwjYAg6~rl0`Qhe_3tJX0}Vk_LJQ+j(4wKm zK#PT@ZZxTILjvP!WT)cY%rn2N@hdICnt(Dly}F8fx;ggMC(4~C4?3V)zHhue4Nqd2 zCv-FkA7`F4nx4VO7$&bV?^&F|FbAoN;K`IHcnUKZh7;*&f~PZ%F#IBOjbbOiL?KvT{C?l6>kRF3#qsmhEOVA!0>dzES$yY=}WWVrSCe z1=KMg=dwqnu*A@TcNHcDGAWcp(ml%}yD11*tL8rG36THvkrVAi;}T;?AVj>O`Ui=z zCwCZAQQK6GU>_a!Jtrn?e*XWcsYht(Aq4V%>0?2&cZ3GEuG}gv?~j<(Qmqp?xwe> zb`d7()2^*25TIvh!dM>Lyj2=T$g7pNtdIU)t z68H6wyk7#3_$j$aI~L)>yh@iKA^QrK@D;Leb_p(I|D{W~jL7f4(N2(&=rOj747unQ ze<7SlLK70r0&F_9g9x-D8>gwcYw4GfMoGrgH?nck#2Fnzg+tir5Y{<_ryN}LHQ0wO z8xHn(`XC!`sIK^WjQyDo!&FdM^3Rki#*u(q97h(qVbp(l3|Wt&e3mT!D<|nN7!YqOJ(9HHs?&J~rWez^AJJrecc5-Fc zEzzRF^aY&chay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^-4$lj4O9R{v9|SpDO7YyV Zt-+e0lA21f?k}NI3^1l4R63TK_b;Y-X;=UN diff --git a/auxmem.init.s b/auxmem.init.s index ff926a1..6505a83 100644 --- a/auxmem.init.s +++ b/auxmem.init.s @@ -28,7 +28,8 @@ MOSSHIM * * Initially executing at $3000 until copied to $D000 -MOSINIT LDX #$FF ; Initialize Alt SP to $1FF +MOSINIT SEI ; Disable IRQ while initializing + LDX #$FF ; Initialize Alt SP to $1FF TXS STA $C005 ; Make sure we are writing aux @@ -108,7 +109,7 @@ MOSINIT LDX #$FF ; Initialize Alt SP to $1FF STA $C055 ; PAGE2 JMP MOSHIGH ; Ensure executing in high memory here -MOSHIGH SEI +MOSHIGH SEI ; Disable IRQ while initializing LDX #$FF TXS ; Initialise stack INX ; X=$00