瀏覽代碼

+ extended tests with some additional ways to produce call relative near/absolute far in BP7's inline asm

git-svn-id: trunk@32172 -
nickysn 9 年之前
父節點
當前提交
13441261f2
共有 2 個文件被更改,包括 36 次插入0 次删除
  1. 18 0
      tests/test/cpu16/i8086/tfarcal3.pp
  2. 18 0
      tests/test/cpu16/i8086/tfarcal4.pp

+ 18 - 0
tests/test/cpu16/i8086/tfarcal3.pp

@@ -73,24 +73,42 @@ begin
   asm
     int NearInt
     call testproc1
+    int NearInt
+    call [testproc1]
     int FarInt
     call testproc2
     int FarInt
+    call [testproc2]
+    int FarInt
     call testproc3
+    int FarInt
+    call [testproc3]
 
     int NearInt
     call near ptr testproc1
     int NearInt
+    call near ptr [testproc1]
+    int NearInt
     call near ptr testproc2
     int NearInt
+    call near ptr [testproc2]
+    int NearInt
     call near ptr testproc3
+    int NearInt
+    call near ptr [testproc3]
 
     int FarInt
     call far ptr testproc1
     int FarInt
+    call far ptr [testproc1]
+    int FarInt
     call far ptr testproc2
     int FarInt
+    call far ptr [testproc2]
+    int FarInt
     call far ptr testproc3
+    int FarInt
+    call far ptr [testproc3]
   end;
   Writeln('Ok');
 

+ 18 - 0
tests/test/cpu16/i8086/tfarcal4.pp

@@ -73,24 +73,42 @@ begin
   asm
     int NearInt
     call testproc1
+    int NearInt
+    call [testproc1]
     int FarInt
     call testproc2
+    int FarInt
+    call [testproc2]
     int NearInt
     call testproc3
+    int NearInt
+    call [testproc3]
 
     int NearInt
     call near ptr testproc1
     int NearInt
+    call near ptr [testproc1]
+    int NearInt
     call near ptr testproc2
     int NearInt
+    call near ptr [testproc2]
+    int NearInt
     call near ptr testproc3
+    int NearInt
+    call near ptr [testproc3]
 
     int FarInt
     call far ptr testproc1
     int FarInt
+    call far ptr [testproc1]
+    int FarInt
     call far ptr testproc2
     int FarInt
+    call far ptr [testproc2]
+    int FarInt
     call far ptr testproc3
+    int FarInt
+    call far ptr [testproc3]
   end;
   Writeln('Ok');