www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/12/16:33:53

Xref: news2.mv.net comp.os.msdos.djgpp:4888
From: nicolas AT dsys DOT ceng DOT cea DOT fr (Eric NICOLAS)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: mode13h gdx lib, HCI, ASM
Date: 12 Jun 1996 14:20:52 GMT
Organization: Commissariat a l'energie atomique, Grenoble (France)
Lines: 46
Message-ID: <4pmjo4$734@news.cea.fr>
References: <4pmi32$932 AT roch DOT zetnet DOT co DOT uk>
Reply-To: nicolas AT dsys DOT ceng DOT cea DOT fr
NNTP-Posting-Host: hudson.ceng.cea.fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>For example, in pascal I can do this:
>
>const VGA_SEGMENT = $A000;
>
>and in MC I can do this:
>
>unsigned char *vga = (unsigned char *)0xA0000000;
>
>Needless to say that nither of these ways work in djgpp, so does anyone 
>know how to do it?

This don't work with djgpp because it use PROTECTED MODE memory
managment, so you can't directly read/write to system areas that
are out of you own memory area.
There are functions to read/write dos-memory (dosmemput, 
dosmemget) which will do the job for you.

>I wish to have a simple no cluttered text mode interface, similar to that 
>of the RAR archiver.

Better than that, Robert Hoene have a port of Borland's Turbo Vision
library for djgpp. With that you'll can do nice windows/menus... in
text-mode. look to his home page :
	http://www.tu-chemnitz.de/~rho/rhide.html
	
> Would it be possible to write a procedure in pure-100% asm, compile it to 
> an .obj with TASM or MASM and then call the asm procedure from with in my 
> djgpp souce??
	
Yes, you can. Compile your asm source with TASM using *FLAT* model and
then use the obj2coff converter.


The URL for this converter as well as all answers to your (these) questions
are IN THE FAQ !!!!

So get it and READ THE FAQ.

-- 
Eric Nicolas <nicolas AT dsys DOT ceng DOT cea DOT fr>

Take a look to the SWORD home page :
	france:	http://bunny.ensea.fr/Pages_Perso/Cedric_Joulain/sword.web/home.html
	us:	http://www.iquest.net/~cworley/sword.web/home.html


- Raw text -


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