delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/26/09:48:23

From: shufla AT infomark DOT com DOT pl (Lukasz 'Shufla' Nowak)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++ "Hello World" compiling problem
Date: Sat, 26 Jun 1999 05:20:09 GMT
Organization: WOS
Lines: 32
Message-ID: <377462eb.979348@news.task.gda.pl>
References: <3768D090 DOT 9BA88A6F AT unn DOT ac DOT uk> <7l0luo$s0t$1 AT news3 DOT Belgium DOT EU DOT net> <377434E9 DOT CC9EDCDC AT cartsys DOT com>
NNTP-Posting-Host: as08.ertel.com.pl
Mime-Version: 1.0
X-Trace: korweta.task.gda.pl 930374130 22110 212.106.128.72 (26 Jun 1999 05:15:30 GMT)
X-Complaints-To: abuse AT task DOT gda DOT pl
NNTP-Posting-Date: 26 Jun 1999 05:15:30 GMT
X-Newsreader: Forte Agent 1.5/32.452
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

On Fri, 25 Jun 1999 19:03:21 -0700, Nate Eldredge <nate AT cartsys DOT com>
wrote:

>Hmm... did you try this?  It won't work in DJGPP; you can't poke
>physical memory addresses directly.
>
>And yes, we know that DJGPP generates large executables.  Hello World
>doesn't show its best side... but try compiling Emacs with a compiler
>that accepts your code above.
>
>Oh, if you want a small Hello World, here you go:
>
>	.org 0x100
>	mov ah, 0x9
>	mov dx, msg
>	int 0x21
>	mov ax, 0x4c00
>	int 0x21
>msg:	
>	.db "Hello, world$"
>
>Run djasm on it.
BTW. djasm accepts code like TASM/MASM?

Shu

Lukasz 'Shufla' Nowak
shufla AT infomark DOT com DOT pl
(c) 1997,98 Shufla/Asterix
http://www.shufla.w.pl/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019