about summary refs log tree commit diff stats
path: root/013direct_addressing.cc
Commit message (Collapse)AuthorAgeFilesLines
* 6090 - new instruction: multiply by immediateKartik Agaram2020-03-061-3/+1
| | | | | | | | | | | | | | | This is a 3-operand instruction: r32 = rm32 * imm32 It looks like https://c9x.me/x86/html/file_module_x86_id_138.html has a bug, implying the same opcode supports a 2-operand version. I don't see that in the Intel manual pdf, or at alternative sites like https://www.felixcloutier.com/x86/imul Native runs seem to validate my understanding. In the process I also fixed a bug in the existing multiply instruction 0f af: the only flags it sets are OF and CF. The other existing multiply instruction f7 was doing things right.
* 5983 - fix an emulator bounds-check bugKartik Agaram2020-02-051-1/+1
| | | | | | It was possible for an instruction to write out of bounds of the memory data structure. Most of the time this worked fine. However if the block ever got resized and moved the out-of-bounds bytes no longer went along.
* 5818Kartik Agaram2019-12-221-1/+1
|
* 5485 - promote SubX to top-levelKartik Agaram2019-07-271-0/+1279