www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/08/11:30:50

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I get a corrupted font from BIOS ROM. What am I doing wrong?
Date: Sun, 8 Feb 1998 15:10:34 +0000
Organization: None
Distribution: world
Message-ID: <7pgduDAqrc30Ew0R@talula.demon.co.uk>
References: <34ddbc08 DOT 66976903 AT news DOT jet DOT es>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Grzegorz Adam Hankiewicz writes:
>   _go32_dpmi_simulate_int(0x10, &r);

I would suggest changing that to use __dpmi_int(). This go32 function is
actually just an alias for __dpmi_simulate_real_mode_interrupt(), which
should generally be avoided because it requires you to fill %ss, %esp,
and the flags with valid data, which __dpmi_int() will do for you.

>   dosmemput(temp_font,4096, (r.x.es << 4) + r.x.bp );

Don't you mean dosmemget()? This will transfer data from your address
space into conventional memory, which is the exact opposite of what you
are trying to do!


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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