about summary refs log tree commit diff stats
path: root/subx/013direct_addressing.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-13 12:38:36 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-13 12:38:36 -0700
commit59a04f794f45864fe0901a9747ca24cfc41a9bb4 (patch)
tree1bf1fde5a81eb2580aaaca3ebbdb40f43bbd6ac6 /subx/013direct_addressing.cc
parentcb7b44647e5cf1bdb146986f205dfc71c8263fd5 (diff)
downloadmu-59a04f794f45864fe0901a9747ca24cfc41a9bb4.tar.gz
.
Diffstat (limited to 'subx/013direct_addressing.cc')
-rw-r--r--subx/013direct_addressing.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/subx/013direct_addressing.cc b/subx/013direct_addressing.cc
index d4dcd92a..a2331213 100644
--- a/subx/013direct_addressing.cc
+++ b/subx/013direct_addressing.cc
@@ -249,7 +249,7 @@ void test_subtract_r32_from_r32_signed_and_unsigned_overflow() {
 put_new(Name, "f7", "negate/multiply/divide rm32 (with EAX and EDX if necessary) depending on subop (neg/mul/idiv)");
 
 :(code)
-void test_multiply_eax_by_r32() {
+void test_multiply_EAX_by_r32() {
   Reg[EAX].i = 4;
   Reg[ECX].i = 3;
   run(
@@ -388,7 +388,7 @@ void test_negate_can_overflow() {
 
 //:: divide with remainder
 
-void test_divide_eax_by_rm32() {
+void test_divide_EAX_by_rm32() {
   Reg[EAX].u = 7;
   Reg[EDX].u = 0;
   Reg[ECX].i = 3;
@@ -422,7 +422,7 @@ case 7: {  // divide EDX:EAX by r/m32, storing quotient in EAX and remainder in
 }
 
 :(code)
-void test_divide_eax_by_negative_rm32() {
+void test_divide_EAX_by_negative_rm32() {
   Reg[EAX].u = 7;
   Reg[EDX].u = 0;
   Reg[ECX].i = -3;
@@ -441,7 +441,7 @@ void test_divide_eax_by_negative_rm32() {
   );
 }
 
-void test_divide_negative_eax_by_rm32() {
+void test_divide_negative_EAX_by_rm32() {
   Reg[EAX].i = -7;
   Reg[EDX].i = -1;  // sign extend
   Reg[ECX].i = 3;
@@ -460,7 +460,7 @@ void test_divide_negative_eax_by_rm32() {
   );
 }
 
-void test_divide_negative_edx_eax_by_rm32() {
+void test_divide_negative_EDX_EAX_by_rm32() {
   Reg[EAX].i = 0;  // lower 32 bits are clear
   Reg[EDX].i = -7;
   Reg[ECX].i = 0x40000000;  // 2^30 (largest positive power of 2)