port setcc

This commit is contained in:
Awal Garg 2017-07-27 16:46:24 +05:30 committed by Fabian
parent 725edc451f
commit cd4d449159
3 changed files with 5 additions and 2 deletions

View file

@ -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); },

View file

@ -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()

View file

@ -284,3 +284,7 @@ void pusha32()
push32(reg32s[ESI]);
push32(reg32s[EDI]);
}
void setcc(bool condition) {
set_e8(condition);
}