Need Help In ASM

Programming, for all ages and all languages.
Post Reply
thoover

Need Help In ASM

Post 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.
thoover

Need Help In ASM

Post by thoover »

Again can any one help me i googled for 2 hours and cant find anything useful in binary files.
Bob the Avenger

Re:Need Help In ASM

Post 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?
blip

Re:Need Help In ASM

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Need Help In ASM

Post 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)
Every good solution is obvious once you've found it.
octavio

Re:Need Help In ASM

Post 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
Ryu

Re:Need Help In ASM

Post by Ryu »

If its x86 architecture your after, this reference may be useful: http://faydoc.tripod.com/cpu/index.htm
Post Reply