Page 1 of 1

Need Help In ASM

Posted: Mon Jun 19, 2006 11:39 am
by thoover
I am using ASM for os programming, but thats not the point
I want to know how to use graphics one pix at a time, any help.

Need Help In ASM

Posted: Mon Jun 19, 2006 1:48 pm
by thoover
Again can any one help me i googled for 2 hours and cant find anything useful in binary files.

Re:Need Help In ASM

Posted: Mon Jun 19, 2006 3:49 pm
by Bob the Avenger
I've got some asm tutorials that i used when learning asm that seem to go into grpahics abit, i cant find where i originally downloaded them from, but i'll e-mail them to you tomorrow if you want them?

Re:Need Help In ASM

Posted: Mon Jun 19, 2006 10:16 pm
by blip
No offense but I think you should learn these things before actually writing an OS. Diving into OS development at the same time as you learn the basics isn't a good idea since you may not have sufficient information to make the design decisions you might have otherwise made. Say you haven't heard of VESA and design all of your video APIs around VGA, you may find that your code won't support more than 256 colors without modification.

A good strategy is to play with things outside of your OS, like write test/example programs for DOS (that or in bootcode or something loaded from a bootsector) to give yourself some experience in things like IDE HD PIO transfers or FDC handling. Even when actively developing an OS doing this is invaluable, as is doing things very incrementally and testing like crazy. Assumptions can be your enemy sometimes.

Re:Need Help In ASM

Posted: Tue Jun 20, 2006 12:47 am
by Solar
blip wrote: No offense but I think you should learn these things before actually writing an OS. Diving into OS development...
*cough*

This is the "General Programming" board. 8)

Re:Need Help In ASM

Posted: Tue Jun 20, 2006 4:13 am
by octavio
THoover wrote: I am using ASM for os programming, but thats not the point
I want to know how to use graphics one pix at a time, any help.
The same as with any other language, just write:
setpixel(x,y)

:) Well ,this depends on your programming environnement,libraries,OS,videomode,etc... if you can give more details.
Here are two links to start searching:
http://www.programmersheaven.com/zone5/index.htm
http://board.flatassembler.net/index.php

Re:Need Help In ASM

Posted: Tue Jun 20, 2006 9:39 pm
by Ryu
If its x86 architecture your after, this reference may be useful: http://faydoc.tripod.com/cpu/index.htm