Added 32-bit interfaces to the Memory component

This commit is contained in:
Jeff Parsons 2015-01-25 14:09:24 -08:00 • committed by jeffpar
commit e0959dc00c
7 changed files with 319 additions and 119 deletions

View file

@ -38,6 +38,20 @@ if (typeof module !== 'undefined') {
var X86ModSIB = {};
/*
* TODO: Factor out the SIB (scale=1) decoders that are functionally equivalent to one another,
* just as I've already done for all the ModRM (register-to-register) decoders. For example:
*
* opModSIB01(): this.regECX + this.regEAX
*
* is functionally equivalent to:
*
* opModSIB08(): this.regEAX + this.regECX
*
* This isn't super critical, since the SIB decoders are much smaller/simpler than the ModRM decoders,
* but still, it's wasteful.
*/
X86ModSIB.aOpModSIB = [
/**
* opModSIB00(): scale=00 (1) index=000 (EAX) base=000 (EAX)