atari:ikbd: Fix for Coldfire CPU. Contributed by Vincent Riviere. SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Sat, 06 Sep 2014 11:15:26 +0200
branchSDL-1.2
changeset 9124e6320f77cd2e
parent 9119 8f68bee3fd50
child 9130 347df449e563
atari:ikbd: Fix for Coldfire CPU. Contributed by Vincent Riviere.
src/video/ataricommon/SDL_ikbdinterrupt.S
     1.1 --- a/src/video/ataricommon/SDL_ikbdinterrupt.S	Thu Aug 28 07:27:55 2014 +0200
     1.2 +++ b/src/video/ataricommon/SDL_ikbdinterrupt.S	Sat Sep 06 11:15:26 2014 +0200
     1.3 @@ -246,12 +246,12 @@
     1.4  #if defined(__mcoldfire__)
     1.5  	andl	#0x7f,d1
     1.6  	btst	#7,d0
     1.7 -	spl	d0
     1.8 +	seq	d0
     1.9  	moveb	d0,a0@(0,d1:l)
    1.10  #else
    1.11  	andw	#0x7f,d1
    1.12 -	tas	d0
    1.13 -	spl	a0@(0,d1:w)
    1.14 +	btst	#7,d0
    1.15 +	seq	a0@(0,d1:w)
    1.16  #endif
    1.17  
    1.18  	| End of interrupt