mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
rtasm: learn another version of push
This commit is contained in:
parent
2004b8a769
commit
2c89b75e36
1 changed files with 9 additions and 2 deletions
|
|
@ -449,8 +449,15 @@ void x86_push( struct x86_function *p,
|
|||
struct x86_reg reg )
|
||||
{
|
||||
DUMP_R( reg );
|
||||
assert(reg.mod == mod_REG);
|
||||
emit_1ub(p, 0x50 + reg.idx);
|
||||
if (reg.mod == mod_REG)
|
||||
emit_1ub(p, 0x50 + reg.idx);
|
||||
else
|
||||
{
|
||||
emit_1ub(p, 0xff);
|
||||
emit_modrm_noreg(p, 6, reg);
|
||||
}
|
||||
|
||||
|
||||
p->stack_offset += 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue