From: Shawn Hargreaves 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 Precedence: bulk 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