Mercurial > hg > Members > kono > nitros9-code
changeset 2550:211d45f3a730
Updated
author | boisy |
---|---|
date | Sat, 12 Jun 2010 12:59:23 +0000 |
parents | a4e47925f654 |
children | 963688cd0596 |
files | level1/modules/dwread.asm |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/level1/modules/dwread.asm Sat Jun 12 12:49:56 2010 +0000 +++ b/level1/modules/dwread.asm Sat Jun 12 12:59:23 2010 +0000 @@ -22,7 +22,7 @@ DWRead clra ; clear Carry (no framing error) deca ; clear Z flag, A = timeout msb ($ff) tfr cc,b - pshs u,x,b,a ; preserve registers, push timeout msb + pshs u,x,dp,b,a ; preserve registers, push timeout msb orcc #$50 ; mask interrupts ; tfr a,dp ; set direct page to $FFxx ; setdp $ff @@ -59,7 +59,7 @@ ora ,s ; place status information into the.. sta ,s ; ..C and Z bits of the preserved CC leay ,x ; return checksum in Y - puls cc,x,u,pc ; restore registers and return + puls cc,dp,x,u,pc ; restore registers and return ; setdp $00 ELSE