| delorie.com/archives/browse.cgi | search |
| From: | bigbinc <bigbinc AT hotmail DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Nasm 16bit, dos printf |
| Date: | Sun, 18 Jun 2000 23:31:28 GMT |
| Organization: | Deja.com - Before you buy. |
| Lines: | 35 |
| Message-ID: | <8ijm4g$j38$1@nnrp1.deja.com> |
| NNTP-Posting-Host: | 152.163.194.187 |
| X-Article-Creation-Date: | Sun Jun 18 23:31:28 2000 GMT |
| X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; AOL 5.0; Windows 98; DigExt) |
| X-Http-Proxy: | 1.0 x69.deja.com:80 (Squid/1.1.22) for client 152.163.194.187 |
| X-MyDeja-Info: | XMYDJUIDbigbinc |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
This is insane madness. I am trying to call the simplest function of all time but I cant do it. I read docs and manuals etc. But I have comeup completely null. Anyway, here is the problem. All I want to do is use the function printf from a library or dll or anywhere under dos using NASM. I have seen the linux version with a simple use of extern printf and then a call to printf. Of course this isnt that simple under dos where printf has to be loaded by a library or module or something. I have run into several problems trying to use printf. I thought I could try the MASM way and use stdlib.lib which I think is the best way. The only thing is that when I link the lib and the obj file I get an invalid module error. I am using masm linker563 and nasm to create the obj files. I thought maybe I could try writing a c obj file that just has "stdio.h" the only thing about that is that I am using visualC++ 6 which is a 32-bit compiler and I am trying to write this in 16 bits for simplicity. Are there any other ways to print similar to printf, It is a very powerful function. I really dont want to go to linux right now, and really dont want to use masm's syntax or 32-bit code. If anybody has solution I am all ears. Berlin Brown bigbinc AT hotmail DOT com -- "...yes darling, computers are people too..." http://www.geocities.com/southbeach/lights/5679 -- "...yes darling, computers are people too..." http://www.geocities.com/southbeach/lights/5679 Sent via Deja.com http://www.deja.com/ Before you buy.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |