Interrupt 10h

Programming, for all ages and all languages.
Post Reply
lolkusus
Posts: 15
Joined: Thu May 03, 2012 2:10 am

Interrupt 10h

Post by lolkusus »

1. Can I have my resolution and colors in interrupt 10h ?
2. What is the equivalent of pascal "putpixel" in assembler ?





Sorry for my English :)
I'm polish
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Interrupt 10h

Post by Combuster »

I'm seeing you're having a bigger problem with controlling the magic powers of google.

Looking up the details of int 10h provided the following:
http://www.ctyme.com/intr/rb-0069.htm
http://www.ctyme.com/intr/rb-0104.htm

The wiki has many more examples of how drawing pixels is actually done - you should read that too.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
lolkusus
Posts: 15
Joined: Thu May 03, 2012 2:10 am

Re: Interrupt 10h

Post by lolkusus »

thanks :D
I'm polish
User avatar
miker00lz
Member
Member
Posts: 144
Joined: Wed Dec 08, 2010 3:16 am
Location: St. Louis, MO USA

Re: Interrupt 10h

Post by miker00lz »

yeah this information is so easy to find. in any case, would suggest you don't use int 10h to actually draw pixels. it's slow. use int 10h to change your video mode, and then write directly to video memory.
lolkusus
Posts: 15
Joined: Thu May 03, 2012 2:10 am

Re: Interrupt 10h

Post by lolkusus »

Ok I've bought book about interrupts in bios, thanks for help :)
I'm polish
Post Reply