commit 8b16d44b58d6ce683586a81ef1482698eaddb4f7 Author: Tyrel Souza Date: Fri Jul 12 10:25:41 2024 -0400 listing1-3 diff --git a/listing1-2.cpp b/listing1-2.cpp new file mode 100644 index 0000000..d8ef56a --- /dev/null +++ b/listing1-2.cpp @@ -0,0 +1,11 @@ +#include +extern "C" +{ + void asmFunc(void); +}; + +int main(void){ + printf("Calling asmFunc: \n"); + asmFunc(); + printf("Returned from asmFunc\n"); +} diff --git a/listing1-3.asm b/listing1-3.asm new file mode 100644 index 0000000..7c3a3a9 --- /dev/null +++ b/listing1-3.asm @@ -0,0 +1,9 @@ + .CODE + option casemap:none + + public asmFunc +asmFunc PROC + ret + +asmFunc ENDP + END