port setcc
This commit is contained in:
parent
725edc451f
commit
cd4d449159
|
@ -204,8 +204,6 @@ function V86Starter(options)
|
|||
"_popcnt": function() { return cpu.popcnt.apply(cpu, arguments); },
|
||||
"_bswap": function() { return cpu.bswap.apply(cpu, arguments); },
|
||||
|
||||
"_setcc": function() { return cpu.setcc.apply(cpu, arguments); },
|
||||
|
||||
"_lar": function() { return cpu.lar.apply(cpu, arguments); },
|
||||
"_lsl": function() { return cpu.lsl.apply(cpu, arguments); },
|
||||
"_verw": function() { return cpu.verw.apply(cpu, arguments); },
|
||||
|
|
|
@ -300,6 +300,7 @@ CPU.prototype.wasm_patch = function(wm)
|
|||
this.pusha32 = this.wm.funcs['_pusha32'];
|
||||
this.pop16 = this.wm.funcs['_pop16'];
|
||||
this.get_stack_reg = this.wm.funcs['_get_stack_reg'];
|
||||
this.setcc = this.wm.funcs['_setcc'];
|
||||
};
|
||||
|
||||
CPU.prototype.get_state = function()
|
||||
|
|
|
@ -284,3 +284,7 @@ void pusha32()
|
|||
push32(reg32s[ESI]);
|
||||
push32(reg32s[EDI]);
|
||||
}
|
||||
|
||||
void setcc(bool condition) {
|
||||
set_e8(condition);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue