]> Shamusworld >> Repos - rmac/commitdiff
Add fixup stubs for FU_FLOATfoo types. Now at version 1.12.4.
authorShamus Hammons <jlhamm@acm.org>
Sat, 10 Feb 2018 17:41:18 +0000 (11:41 -0600)
committerShamus Hammons <jlhamm@acm.org>
Sat, 10 Feb 2018 17:41:18 +0000 (11:41 -0600)
sect.c
sect.h
version.h

diff --git a/sect.c b/sect.c
index 26fe2f95f304a84e9139de36bfb0c196ffced331..2269403e2b68e3426e843a9cb0569d5aa3b58637 100644 (file)
--- a/sect.c
+++ b/sect.c
@@ -727,6 +727,21 @@ int ResolveFixups(int sno)
                        *locp = (uint8_t)eval;
                        break;
 
+               // Fixup a 4-byte float
+               case FU_FLOATSING:
+                       warn("FU_FLOATSING missing implementation\n%s", "And you may ask yourself, \"Self, how did I get here?\"");
+                       break;
+
+               // Fixup a 8-byte float
+               case FU_FLOATDOUB:
+                       warn("FU_FLOATDOUB missing implementation\n%s", "And you may ask yourself, \"Self, how did I get here?\"");
+                       break;
+
+               // Fixup a 12-byte float
+               case FU_FLOATEXT:
+                       warn("FU_FLOATEXT missing implementation\n%s", "And you may ask yourself, \"Self, how did I get here?\"");
+                       break;
+
                default:
                        // Bad fixup type--this should *never* happen!
                        // Once we call this function, it winds down immediately; it
diff --git a/sect.h b/sect.h
index 58c81ec6be7e5b3164f9b87258609cebeeeb7bbe..dc5e16751e6f06c7c537ee277be6b192ffc3f118 100644 (file)
--- a/sect.h
+++ b/sect.h
 #define FU_DONE      0x8000            // Fixup has been done
 
 // FPU fixups
-// TODO: these are obviously bogus for now!
-#define FU_FLOATSING 0x0D0B            // Fixup 32-bit float
-#define FU_FLOATDOUB 0x0E0B            // Fixup 64-bit float
-#define FU_FLOATEXT  0x0F0B            // Fixup 96-bit float
+#define FU_FLOATSING 0x000A            // Fixup 32-bit float
+#define FU_FLOATDOUB 0x000B            // Fixup 64-bit float
+#define FU_FLOATEXT  0x000C            // Fixup 96-bit float
 
 // Chunks are used to hold generated code and fixup records
 #define CHUNK  struct _chunk
index 315f981c4c17d476a015ad87e1f81a0a049ee117..e80f72d63f7dcea4b657fe3ce78f698b9f833ebd 100644 (file)
--- a/version.h
+++ b/version.h
@@ -15,7 +15,7 @@
 
 #define MAJOR   1              // Major version number
 #define MINOR   12             // Minor version number
-#define PATCH   3              // Patch release number
+#define PATCH   4              // Patch release number
 
 #endif // __VERSION_H__