Mercurial > hg > Members > kono > nitros9-code
comparison level2/modules/cc3io.asm @ 1716:ee5e227eb005
Fixed problem where D.AltIRQ was being set to D.Clock at term time. Now,
D.AltIRQ is saved at Init time and restored at Term time.
author | boisy |
---|---|
date | Mon, 16 Aug 2004 01:10:40 +0000 |
parents | 732a9032a57d |
children | 7a973074acbe |
comparison
equal
deleted
inserted
replaced
1715:fa2ada33b05e | 1716:ee5e227eb005 |
---|---|
93 clra | 93 clra |
94 clrb | 94 clrb |
95 ENDC | 95 ENDC |
96 std G.CurDev,x | 96 std G.CurDev,x |
97 * std >WGlobal+G.CurDev | 97 * std >WGlobal+G.CurDev |
98 ldx <D.Clock change altirq routine to go to clock | 98 * ldx <D.Clock change altirq routine to go to clock |
99 ldx G.OrgAlt,x get original D.AltIRQ address | |
99 stx <D.AltIRQ | 100 stx <D.AltIRQ |
100 puls cc restore IRQs | 101 puls cc restore IRQs |
101 | 102 |
102 pshs u,x | 103 pshs u,x |
103 ldx #(WGlobal+G.JoyEnt) $10EA | 104 ldx #(WGlobal+G.JoyEnt) $10EA |
189 leau >G.SndMem,u point U to sound statics | 190 leau >G.SndMem,u point U to sound statics |
190 jsr ,y call init routine of sub module | 191 jsr ,y call init routine of sub module |
191 puls u,y,x,b,a restore saved regs | 192 puls u,y,x,b,a restore saved regs |
192 std <D.Proc and restore current process | 193 std <D.Proc and restore current process |
193 | 194 |
195 ldx <D.AltIRQ get original D.AltIRQ address | |
196 stx >WGlobal+G.OrgAlt save in window globals for later | |
194 leax >CC3Irq,pcr set up AltIRQ vector in DP | 197 leax >CC3Irq,pcr set up AltIRQ vector in DP |
195 stx <D.AltIRQ | 198 stx <D.AltIRQ |
196 | 199 |
197 * This code is executed on init of every window | 200 * This code is executed on init of every window |
198 * U = device memory area | 201 * U = device memory area |