[Freemint-list] [PATCH] Milan keyboard handler for ColdFire

Vincent Rivière vincent.riviere at freesbee.fr
Wed Jun 8 01:26:39 MSD 2016


Patch #1:

Add ColdFire support in Milan keyboard handler.
Contributed by Vincent Riviere.

-- 
Vincent Rivière
-------------- next part --------------
--- freemint.orig/sys/arch/intr.S	2016-03-08 20:40:21.843750000 +0100
+++ freemint/sys/arch/intr.S	2016-06-07 22:59:19.171875000 +0200
@@ -608,13 +608,27 @@
 	dc.l	0x4d694e54		// MiNT
 _oldkeys:	dc.l	0
 _newkeys:
+#ifdef __mcoldfire__
+	lea	-20(sp),sp
+	movem.l	d1-d2/a0-a2,(sp)
+#else
 	movem.l	d1-d2/a0-a2,-(sp)
+#endif
 	move.l	_keyrec,-(sp)
+#ifdef __mcoldfire__
+	and.l	#0x00ff,d0
+#else
 	and.w	#0x00ff,d0
+#endif
 	move.w	d0,-(sp)
 	jsr	_ikbd_scan
 	addq.l	#6,sp
+#ifdef __mcoldfire__
+	movem.l	(sp),d1-d2/a0-a2
+	lea	20(sp),sp
+#else
 	movem.l	(sp)+,d1-d2/a0-a2
+#endif
 	rts
 #endif
 


More information about the Freemint-list mailing list