about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-24 15:52:41 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-24 15:52:41 -0700
commit4524da2bb6feaaed7af5b1eec2b600f2ec57b1be (patch)
tree2afea96d215bb1e1e09387d4f175f23a240f834d /subx
parentb6fdd2e4e5d5267b21c90914c09b86b5413d238b (diff)
downloadmu-4524da2bb6feaaed7af5b1eec2b600f2ec57b1be.tar.gz
4718
Diffstat (limited to 'subx')
-rw-r--r--subx/014indirect_addressing.cc10
-rw-r--r--subx/031check_operands.cc2
2 files changed, 6 insertions, 6 deletions
diff --git a/subx/014indirect_addressing.cc b/subx/014indirect_addressing.cc
index e00cb1d5..cbd9afbc 100644
--- a/subx/014indirect_addressing.cc
+++ b/subx/014indirect_addressing.cc
@@ -578,25 +578,25 @@ case 2:  // indirect + disp32 addressing
 +run: effective address is 0x00002000 (after adding disp32)
 +run: storing 0x00000011
 
-//:: lea
+//:: copy address (lea)
 
 :(before "End Initialize Op Names")
 put_new(Name, "8d", "copy address in rm32 into r32 (lea)");
 
-:(scenario lea)
+:(scenario copy_address)
 % Reg[EAX].u = 0x2000;
 == 0x1
 # op  ModR/M  SIB   displacement  immediate
   8d  18
 # ModR/M in binary: 00 (indirect mode) 011 (dest EBX) 000 (src EAX)
-+run: lea into EBX
++run: copy address into EBX
 +run: effective address is 0x00002000 (EAX)
 
 :(before "End Single-Byte Opcodes")
-case 0x8d: {  // lea m32 to r32
+case 0x8d: {  // copy address of m32 to r32
   const uint8_t modrm = next();
   const uint8_t arg1 = (modrm>>3)&0x7;
-  trace(90, "run") << "lea into " << rname(arg1) << end();
+  trace(90, "run") << "copy address into " << rname(arg1) << end();
   Reg[arg1].u = effective_address_number(modrm);
   break;
 }
diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc
index de78b4b1..f5629a96 100644
--- a/subx/031check_operands.cc
+++ b/subx/031check_operands.cc
@@ -211,7 +211,7 @@ void init_permitted_operands() {
   put(Permitted_operands, "8b", 0x01);
   // swap
   put(Permitted_operands, "87", 0x01);
-  // lea
+  // copy address (lea)
   put(Permitted_operands, "8d", 0x01);
   // pop
   put(Permitted_operands, "8f", 0x01);