flat assembler
Message board for the users of flat assembler.

flat assembler > DOS > Q on VGA font table location

Author
Thread Post new topic Reply to topic
IdioticMoron



Joined: 17 Oct 2018
Posts: 4
In my quest to find a way to print text in mode13 using bitmap fonts, I found a code snippet that works. However, the money line is below:

lgs di,[fs:43h*4]

I get some of this. Load far pointer to the BIOS 8*16 font located at 43h. So what does the *4 do??

_________________
gee that's a large beetle
i wonder if it's poisonous?
Post 07 Jan 2019, 23:37
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 494
Location: Belarus
If FS is zero by then, 43h*4 stays for the offset of vector 43h within IVT: TechHelp: INT 43H: EGA/VGA Graphics Character Font Pointer
Post 08 Jan 2019, 04:04
View user's profile Send private message Visit poster's website Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 490
Location: Belarus
Each entry in interrupt table is 4 bytes. To get offset to entry number 43h you obviously should multiply it by entry size
Post 08 Jan 2019, 14:05
View user's profile Send private message Reply with quote
IdioticMoron



Joined: 17 Oct 2018
Posts: 4
Thanks for the responses! Cool

_________________
gee that's a large beetle
i wonder if it's poisonous?
Post 08 Jan 2019, 14:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.