From 8b16d44b58d6ce683586a81ef1482698eaddb4f7 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 12 Jul 2024 10:25:41 -0400 Subject: [PATCH] listing1-3 --- listing1-2.cpp | 11 +++++++++++ listing1-3.asm | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 listing1-2.cpp create mode 100644 listing1-3.asm 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