🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.msdos.programmer
1 messages
1 total messages Started by Cliff Lum Wed, 08 Aug 1990 22:08
Re: Calling .ASM from .C ?
#1835
Author: Cliff Lum
Date: Wed, 08 Aug 1990 22:08
16 lines
981 bytes
If you have Masm 5.1 you should have the documentation for mixed language
programming which will tell you how to call an ASM program from C.
If you use the new segemnt directives which I know will work with Microsoft C.
You would go DOSSEG
.MODEL SMALL,C          ;depending on the model required
                        ;the C sets up the stack for proper returns
.CODE
PUBLIC  hello
hello   PROC
        ...
        code
        ret
hello   ENDP

If yopu do not use the masm simplified directive you have save the bp register
on the stack and it depends on the model you use.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads