Changeset 463
- Timestamp:
- Jul 28, 2003, 11:35:55 AM (22 years ago)
- Location:
- trunk/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/Optlink-1-Asm.asm
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r462 r463 17 17 extrn OptSimple:near 18 18 extrn OptPrintf:near 19 extrn _sprintf:near 19 20 20 21 22 public asmfunc 21 23 asmfunc proc near 22 24 xor eax, eax … … 24 26 asmfunc endp 25 27 28 ;; 29 ; asmsprintf(char *pszBuffer, const char* pszFormat, ...); 30 ; 31 public asmsprintf 32 asmsprintf proc near 33 push ebp 34 mov ebp, esp 35 36 push eax ; pszBuffer 37 push edx ; pszFormat 38 lea eax, [ebp+010h] ; &... 39 push eax 40 call _sprintf 41 42 leave 43 ret 44 asmsprintf endp 45 26 46 CODE32 ends 27 47 -
Property cvs2svn:cvs-rev
changed from
-
trunk/testcase/Optlink-1.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r462 r463 2 2 #include <stdarg.h> 3 3 #include <string.h> 4 5 extern int _Optlink asmsprintf(char *, const char*,...); 4 6 5 7 long _Optlink OptSimple(int arg1, int arg2, int arg3, int arg4, int arg5) … … 54 56 int main(int argc, const char * const *argv) 55 57 { 56 int rc = 0; 58 int rc = 0; 59 char szBuffer[128]; 57 60 58 61 if (OptSimple(0x11000011, 0x22000022, 0x33000033, 0x44000044, 0x55000055)) … … 68 71 } 69 72 73 asmsprintf(szBuffer, "%s%c%s%s", "hello", ' ', "world", "\n"); 74 if (strcmp(szBuffer, "hello world\n")) 75 { 76 printf("error: OptPrintf failed\n"); 77 rc++; 78 } 79 80 70 81 if (!rc) 71 82 printf("All Testcases Successfully Executed\n"); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.