src/video/ataricommon/SDL_ikbdinterrupt.S
changeset 1110 b6fdf299a2f3
parent 1109 91ec1a565b2e
child 1312 c9b51268668f
equal deleted inserted replaced
1109:91ec1a565b2e 1110:b6fdf299a2f3
   140 	.ascii	"XBRA"
   140 	.ascii	"XBRA"
   141 	.ascii	"LSDL"
   141 	.ascii	"LSDL"
   142 	.comm	old_ikbd,4*1
   142 	.comm	old_ikbd,4*1
   143 ikbd:
   143 ikbd:
   144 	| Check if source is IKBD or MIDI
   144 	| Check if source is IKBD or MIDI
   145 	btst	#0,0xfffffc04.w
   145 	btst	#0,0xfffffc00.w
   146 	bnes	ikbd_oldmidi
   146 	beqs	ikbd_oldmidi
   147 
   147 
   148 	moveml	d0-d1/a0,sp@-
   148 	moveml	d0-d1/a0,sp@-
   149 	moveb	0xfffffc02:w,d0
   149 	moveb	0xfffffc02:w,d0
   150 
   150 
   151 	| Joystick packet ?
   151 	| Joystick packet ?
   201 	| Mouse packet, byte #2
   201 	| Mouse packet, byte #2
   202 
   202 
   203 ikbd_mousex:
   203 ikbd_mousex:
   204 
   204 
   205 	| Check if source is IKBD or MIDI
   205 	| Check if source is IKBD or MIDI
   206 	btst	#0,0xfffffc04.w
   206 	btst	#0,0xfffffc00.w
   207 	bnes	ikbd_oldmidi
   207 	beqs	ikbd_oldmidi
   208 
   208 
   209 	movew	d0,sp@-
   209 	movew	d0,sp@-
   210 
   210 
   211 	moveb	0xfffffc02:w,d0
   211 	moveb	0xfffffc02:w,d0
   212 	extw	d0
   212 	extw	d0
   220 	| Mouse packet, byte #3
   220 	| Mouse packet, byte #3
   221 
   221 
   222 ikbd_mousey:
   222 ikbd_mousey:
   223 
   223 
   224 	| Check if source is IKBD or MIDI
   224 	| Check if source is IKBD or MIDI
   225 	btst	#0,0xfffffc04.w
   225 	btst	#0,0xfffffc00.w
   226 	bnes	ikbd_oldmidi
   226 	beqs	ikbd_oldmidi
   227 
   227 
   228 	movew	d0,sp@-
   228 	movew	d0,sp@-
   229 
   229 
   230 	moveb	0xfffffc02:w,d0
   230 	moveb	0xfffffc02:w,d0
   231 	extw	d0
   231 	extw	d0
   239 	| Joystick packet, byte #2
   239 	| Joystick packet, byte #2
   240 
   240 
   241 ikbd_joystick:
   241 ikbd_joystick:
   242 
   242 
   243 	| Check if source is IKBD or MIDI
   243 	| Check if source is IKBD or MIDI
   244 	btst	#0,0xfffffc04.w
   244 	btst	#0,0xfffffc00.w
   245 	bnes	ikbd_oldmidi
   245 	beqs	ikbd_oldmidi
   246 
   246 
   247 	moveb	0xfffffc02:w,_SDL_AtariIkbd_joystick+1
   247 	moveb	0xfffffc02:w,_SDL_AtariIkbd_joystick+1
   248 
   248 
   249 	movel	#ikbd,0x118:w
   249 	movel	#ikbd,0x118:w
   250 	bras	ikbd_endit
   250 	bras	ikbd_endit