mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 19:55:09 +00:00
in g_typeadjust convert the other side to float if one side is float
This commit is contained in:
parent
36ea0cc90e
commit
97a4bc3a6c
@ -102,7 +102,7 @@ static void _typeerror (char *func, int line, unsigned type)
|
||||
if ((type & CF_TYPEMASK) == CF_FLOAT) {
|
||||
Fatal ("%s:%d Floating point type is currently unsupported", func, line);
|
||||
} else {
|
||||
Internal ("Invalid type in CF flags: %04X, type = %u", type, type & CF_TYPEMASK);
|
||||
Internal ("%s:%d Invalid type in CF flags: %04X, type = %u", func, line, type, type & CF_TYPEMASK);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1576,7 +1576,7 @@ unsigned g_typeadjust (unsigned lhs, unsigned rhs)
|
||||
}
|
||||
else if (ltype == CF_FLOAT) {
|
||||
// FIXME(("FIXME: conversion to float format missing\n"));
|
||||
// g_regfloat (rhs);
|
||||
g_regfloat (rhs);
|
||||
LOG(("<g_typeadjust left float return:%02x float\n", (lhs & CF_CONST) | CF_FLOAT)); // FIXME: remove
|
||||
ASMLOG(("nop ;< g_typeadjust return:%02x float", (lhs & CF_CONST) | CF_FLOAT)); // FIXME: remove
|
||||
return (lhs & CF_CONST) | CF_FLOAT;
|
||||
|
Loading…
Reference in New Issue
Block a user