www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/22/13:15:49

From: brennan AT mack DOT rt66 DOT com (Brennan "The Rev. Bas" Underwood)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ROM character set location
Date: 22 Nov 1996 04:11:39 -0700
Organization: Rasterfari
Lines: 33
Message-ID: <5741pb$8r2@mack.rt66.com>
References: <01bbd3d6$70e15be0$0100007f AT hiway DOT co DOT uk DOT hiway DOT co DOT uk>
NNTP-Posting-Host: mack.rt66.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <01bbd3d6$70e15be0$0100007f AT hiway DOT co DOT uk DOT hiway DOT co DOT uk>,
Mark Gilbert <mark DOT gilbert AT pop3 DOT hiway DOT co DOT uk> wrote:
>
>Does anyone know the location of the ROM character set when using the
>__djgpp_conventional_base offset?
>
>It's (char far *)0xF000FA6EL when in 16bit real mode.
>
>Is there a general way of converting base pointers from real mode to DJGPP?
>

fontgrab.c:
#include <stdio.h>
#include <fcntl.h>

int main(void) {
  char fonto[256*8];

  dosmemget(0xffa6e, 256*8, fonto);

  setmode(fileno(stdout), O_BINARY);
  fwrite(fonto, 256, 8, stdout);
  exit(0);
}

fontgrab > 8x8.fnt


--brennan
-- 
 brennan AT rt66 DOT com |  fsck /u
Riomhchlaraitheoir|  
   Rasterfarian   |  <http://brennan.home.ml.org>

- Raw text -


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