listing1-3

This commit is contained in:
Tyrel Souza 2024-07-12 10:25:41 -04:00
commit 8b16d44b58
2 changed files with 20 additions and 0 deletions

11
listing1-2.cpp Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
extern "C"
{
void asmFunc(void);
};
int main(void){
printf("Calling asmFunc: \n");
asmFunc();
printf("Returned from asmFunc\n");
}

9
listing1-3.asm Normal file
View File

@ -0,0 +1,9 @@
.CODE
option casemap:none
public asmFunc
asmFunc PROC
ret
asmFunc ENDP
END