🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm.x86
Article #120

Re: Calling TC function from TASM

#120
From: black_phantom
Date: Thu, 14 Jan 1999 00:00
32 lines
1889 bytes
> I've used TC and TASM before and as I recall it wasn't too hard, but how do
> I do the initital jump from
> Assembler to C?

In ASM file:

EXTRN _c_entry: near ; far for compact, large and huge memory models

call _c_entry
; Some termination code here - if c_entry() will return.

In C file:

c_entry()
{
}

Similar approach I saw in "Writing OS/2 device drivers in C" - there an author
called _main function this way (put params first).

> Also, does anyone know of any good Serial Comms libraries that do not use
> BIOS/DOS, but simple talk to the UART?

http://www.geocities.com/SiliconValley/Bay/8302/serial1.htm
is a pretty on-line tutorial on COM.


-- Sclerosis cannot be healed but can be forgotten --

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <77jjb2$3c5$4@winter.news.rcn.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <77if4s$96q$1@winter.news.rcn.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: feaef,a5e6f895a74f130f
X-Google-Attributes: gidfeaef,public
X-Google-Thread: 114917,a5e6f895a74f130f
X-Google-Attributes: gid114917,public
From: black_phantom@my-dejanews.com
Subject: Re: Calling TC function from TASM
Date: 1999/01/14
Message-ID: <77jjb2$3c5$4@winter.news.rcn.net>
X-Deja-AN: 432375225
Approved: <johnfine@erols.com>
References: <77if4s$96q$1@winter.news.rcn.net>
X-Authentication-Warning: philabs-gw.philabs.research.philips.com: smap set sender to <news@dejanews.com> using -f
X-Http-User-Agent: Mozilla/4.01 [en] (WinNT; I)
X-Complaints-To: abuse@rcn.com
X-Trace: DusYDh2GrcNvLXODWD3xmJFIXZLZF+DbEcSWvTGxQNw=
X-Http-Proxy: 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 192.116.203.111
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Thu Jan 14 00:34:44 1999 GMT
NNTP-Posting-Date: 14 Jan 1999 02:04:18 GMT
Newsgroups: comp.lang.asm.x86,borland.public.tasm