Mail Archives: djgpp/1997/12/15/14:45:31
Matthew wrote:
>
> Im rather new to DJGPP so please excuse my ignorance here
>
> I would like to know how I would use farnspeekb for the following address.
> 0xF000FA6E which contains the 8x8 font for mode 13h in rom. The only
^^^^^^^^^^
Wrong! It's F000:FA6E in 8086 segmented addressing notation. Please
note, that this is _very_ different from 0xF000FA6E. The linear address
for F000:FA6E is 0xFFA6E.
> example close to farnspeekb I can find is for writing to the screen
> ie _farnspokeb(0xA0000 + line_offset, color);
> Im used to writing 0xA0000000 for the screen address!
How so? The VGA framebuffer is at A000:0000, while 0xA0000000 is
somewhere above 2GB in the address space!
> How do I write the adress 0xF000FA6E for use with farnspeekb?
You write F000:FA6E as 0xFFA6E.
Martynas
- Raw text -