mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
Immediate constants now work, though still not shared.
This commit is contained in:
parent
3c95667b79
commit
bc7d42d176
1 changed files with 7 additions and 2 deletions
|
@ -90,8 +90,13 @@ get_operand_def (operand_t *op)
|
|||
//FIXME share immediates
|
||||
def = new_def (".imm", ev_types[op->type], pr.near_data,
|
||||
st_static);
|
||||
memcpy (D_POINTER (pr_type_t, def), &op->o.value,
|
||||
pr_type_size[op->type]);
|
||||
if (op->type == ev_string) {
|
||||
EMIT_STRING (def->space, D_STRUCT (string_t, def),
|
||||
op->o.value->v.string_val);
|
||||
} else {
|
||||
memcpy (D_POINTER (pr_type_t, def), &op->o.value->v,
|
||||
pr_type_size[op->type]);
|
||||
}
|
||||
return def;
|
||||
case op_label:
|
||||
zero_def.type = &type_short;
|
||||
|
|
Loading…
Reference in a new issue