changeset 2261:21fbb6404920

Fixed problem where port # wasn't being created correctly for IRQMulti
author boisy
date Sun, 27 Dec 2009 19:08:43 +0000
parents c49bbdfb2764
children 6ce1eeaa029e
files level1/modules/scdwt.asm
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/level1/modules/scdwt.asm	Sun Dec 27 18:53:18 2009 +0000
+++ b/level1/modules/scdwt.asm	Sun Dec 27 19:08:43 2009 +0000
@@ -267,7 +267,8 @@
 * Interrupt handler  - Much help from Darren Atkinson
 
 			
-IRQMulti3   anda    #$7F
+IRQMulti3   anda    #$07		;mask first 5 bits, a is now port #+1
+  			deca				;we pass +1 to use 0 for no data
             pshs    a			;save port #
          	cmpb	RxGrab,u	;compare room in buffer to server's byte
            	bhs		IRQM06		;room left >= server's bytes, no problem
@@ -332,7 +333,7 @@
 			addb	RxGrab,u
 			stb		RxDatLen,u	;store new value
 			
-			bra     IRQExit
+			bra     CkSuspnd
 			
 IRQMulti			
            	* initial grab bytes