src/video/ataricommon/SDL_ikbdinterrupt.S
branchSDL-1.2
changeset 4377 c92927bd421a
parent 4376 40e4536ad0c3
child 4378 dae8891fae2d
equal deleted inserted replaced
4376:40e4536ad0c3 4377:c92927bd421a
    76 #if defined(__mcoldfire__)
    76 #if defined(__mcoldfire__)
    77 	movel	0x118:w,d0
    77 	movel	0x118:w,d0
    78 	movel	d0,old_ikbd
    78 	movel	d0,old_ikbd
    79 	lea	ikbd,a0
    79 	lea	ikbd,a0
    80 	movel	a0,0x118:w
    80 	movel	a0,0x118:w
       
    81 	moveql	#6,d0
       
    82 	bset	d0,0xfffffa09:w	| IERB
       
    83 	bset	d0,0xfffffa15:w	| IMRB
    81 #else
    84 #else
    82 	movel	0x118:w,old_ikbd
    85 	movel	0x118:w,old_ikbd
    83 	movel	#ikbd,0x118:w
    86 	movel	#ikbd,0x118:w
    84 	bset	#6,0xfffffa09:w	| IERB
    87 	bset	#6,0xfffffa09:w	| IERB
    85 	bset	#6,0xfffffa15:w	| IMRB
    88 	bset	#6,0xfffffa15:w	| IMRB
   102 
   105 
   103 #if defined(__mcoldfire__)
   106 #if defined(__mcoldfire__)
   104 	movel	#0xffff,d0
   107 	movel	#0xffff,d0
   105 	movew	d0,_SDL_AtariIkbd_enabled
   108 	movew	d0,_SDL_AtariIkbd_enabled
   106 
   109 
   107 	moveml   sp@,d0-d1/a0-a1
   110 	moveml	sp@,d0-d1/a0-a1
   108 	lea       sp@(16),sp
   111 	lea	sp@(16),sp
   109 #else
   112 #else
   110 	movew	#0xffff,_SDL_AtariIkbd_enabled
   113 	movew	#0xffff,_SDL_AtariIkbd_enabled
   111 
   114 
   112 	moveml	sp@+,d0-d1/a0-a1
   115 	moveml	sp@+,d0-d1/a0-a1
   113 #endif
   116 #endif