Forráskód Böngészése

gray.s size optimization by Martial Demolins (use moveq instead of bclr/bset #imm).

git-svn-id: file:///var/svn/tigccpp/trunk@902 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 éve
szülő
commit
21bd7b5356
2 módosított fájl, 11 hozzáadás és 5 törlés
  1. 10 4
      tigcc/archive/gray.s
  2. 1 1
      tigcc/archive/grayversion.c

+ 10 - 4
tigcc/archive/gray.s

@@ -509,9 +509,10 @@ __gray_init_hw1_handler:
 __gray_init_proceed:
 	move.l   %a0,%d2
 	lea      0x600001,%a0
-	bclr.b   #2,(%a0)
+	moveq.l  #2,%d0
+	bclr.b   %d0,(%a0)
 	move.l   %d2,0x64:w
-	bset.b   #2,(%a0)
+	bset.b   %d0,(%a0)
 __gray_clr_l_plane:
     |--------------------------------------------------------------------------
     | clear light plane (done for both HW types)
@@ -551,9 +552,10 @@ GrayOff:
     |--------------------------------------------------------------------------
     | cleanup for HW2 calcs
     |--------------------------------------------------------------------------
-	bclr.b   #2,(%a0)
+	moveq.l  #2,%d0
+	bclr.b   %d0,(%a0)
 	move.l   (__gray_old_int1_hw2,%pc),0x64:w   | restore old INT1 handler
-	bset.b   #2,(%a0)
+	bset.b   %d0,(%a0)
 	movea.l  (__D_plane,%pc),%a1
 	lea      0x4C00.w,%a0
 	move.w   #0x3BF,%d0                   | copy content of darkplane to 0x4c00
@@ -598,6 +600,10 @@ __gray_off_out:
 |  Revision History
 | #############################################################################
 |
+| Revision 3.17 2006/10/30 07:24:15  Kevin Kofler
+| Bumped version to 3.55.
+| Size optimization by Martial Demolins (use moveq instead of bclr/bset #imm).
+|
 | Revision 3.16 2005/10/09 01:48:20  Kevin Kofler
 | Bumped version to 3.54.
 | Size optimization by Jesse Frey (register saving, ROM_CALL optimization),

+ 1 - 1
tigcc/archive/grayversion.c

@@ -1 +1 @@
-volatile char __gray_version[] = "[TIGCCLIB GraySupport v3.54 "__DATE__" "__TIME__"]";
+volatile char __gray_version[] = "[TIGCCLIB GraySupport v3.55 "__DATE__" "__TIME__"]";