changeset 659:dd49326e9fb2

added ommited asm fixes
author thomask
date Thu, 08 Sep 2005 07:37:28 +0000
parents f87ac47ffa36
children 2474750465ff
files run/a/asm_and_01.d run/a/asm_cwde_01.d run/a/asm_div_01_B.d run/a/asm_esi_01.d
diffstat 4 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/run/a/asm_and_01.d	Thu Sep 08 07:32:03 2005 +0000
+++ b/run/a/asm_and_01.d	Thu Sep 08 07:37:28 2005 +0000
@@ -6,7 +6,9 @@
 
 int test(int i){
 	asm{
+		mov	EAX, i;
 		and	EAX, EAX;
+		mov 	i, EAX;
 	}
 }
 
@@ -14,4 +16,4 @@
 	assert(test(7)==7);
 	assert(test(0)==0);
         return 0;
-}
\ No newline at end of file
+}
--- a/run/a/asm_cwde_01.d	Thu Sep 08 07:32:03 2005 +0000
+++ b/run/a/asm_cwde_01.d	Thu Sep 08 07:37:28 2005 +0000
@@ -16,10 +16,10 @@
 		asm{
 			mov EAX, i;
 			mov AX, s;
+			cwde;
 			mov i, EAX;
 		}
 	
-		printf("%x\n", i);
 		assert(i==0xFF_FF_FF_80u);
 		
 
@@ -28,4 +28,4 @@
 		pragma(msg, "no Inline asm support");
 		static assert(0);
 	}
-}
\ No newline at end of file
+}
--- a/run/a/asm_div_01_B.d	Thu Sep 08 07:32:03 2005 +0000
+++ b/run/a/asm_div_01_B.d	Thu Sep 08 07:37:28 2005 +0000
@@ -41,4 +41,4 @@
 		pragma(msg, "no Inline asm support");
 		static assert(0);
 	}
-}
\ No newline at end of file
+}
--- a/run/a/asm_esi_01.d	Thu Sep 08 07:32:03 2005 +0000
+++ b/run/a/asm_esi_01.d	Thu Sep 08 07:37:28 2005 +0000
@@ -15,7 +15,7 @@
 		asm{
 			mov ESI, 0;
 			mov SI, s;
-			mov i, SDI;
+			mov i, ESI;
 		}
 	
 		assert(i==0x12_34);
@@ -26,4 +26,4 @@
 		pragma(msg, "no Inline asm support");
 		static assert(0);
 	}
-}
\ No newline at end of file
+}