I want to draw a square in Assembly language. I have ridden something about int 10h. Does anybody know, how to do it? Please place here some piece of code to tell what can I use for drawing a square, or some quality tutorials. Thanks.
I want to draw a square in Assembly language. I have ridden something about
Share
Like Frederic Hamidi said, “int 0x10h” is an obsolete BIOS interface. If you’re interested in assembly, I would strongly encourage to AVOID 16-bit, DOS/Masm tutorials and learn on a more modern OS (like Linux).
I’d highly recommend “Programming from the Ground Up”, by Jonathan Bartlett:
http://savannah.nongnu.org/projects/pgubook/
Nevertheless, if you REALLY want to draw a line (or a square) in 16-bit real mode (i.e. in DOS), here’s an example:
http://lateblt.tripod.com/asm.htm