# HG changeset patch # User boisy # Date 1276347563 0 # Node ID 211d45f3a73087d249250a598fe157434874117d # Parent a4e47925f654bdf94bf70a12aa1f02784eae4c62 Updated diff -r a4e47925f654 -r 211d45f3a730 level1/modules/dwread.asm --- 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