HELLO
Can someone teach me or give us some graphics tutorial
9 replies to this topic
#1
Posted 11 November 2010 - 02:55 PM
|
|
|
#2
Posted 11 November 2010 - 04:46 PM
#3
Posted 12 November 2010 - 03:56 AM
HELLO mebob
IN DOS 16BIT
IN DOS 16BIT
#4
Posted 12 November 2010 - 12:37 PM
The way I know how to do it is to switch to a video mode, then write to the video memory. I will give an example that uses mode 13h (320x200 resolution, 256 colors). It makes the screen white.
xor ah,ah ;Use function 0 of int 0x13 mov al,0x13 ;Set video mode to mode 0x13 int 0x10 mov ax,0xa000 ;Set the ES register to the segment mov es,ax ;that the video memory resides in xor bx,bx ;Set BX to 0, because we are using it ;as a pointer, and we want to start at 0 mov ch,15 ;Use color #15 in the palette, ;which is white fillscr_loop: ;The loop to make every pixel white mov byte[es:bx],ch ;Make the pixel pointed to by ES:BX white inc bx ;Increment BX cmp bx,64000 ;64,000 is the number of pixels jne fillscr_loop ;If BX does not equal 64,000 continue ;the loop halt: ;Loop to halt the computer hlt jmp haltThere are more video modes, such as one for 640x480 with 16 colors, but I don't know how to use that one. If you want higher video modes, like 1280x1024, read about VESA video modes.
Latinamne loqueris?
#5
Posted 12 November 2010 - 01:44 PM
Thank you mebob for your help
i want some tutorials start from the beginning like how print color text .... Step by step because i didn't find like this tutorials on the web. Is there a person can give me some tutorials
i want some tutorials start from the beginning like how print color text .... Step by step because i didn't find like this tutorials on the web. Is there a person can give me some tutorials
#6
Posted 12 November 2010 - 02:53 PM
Check out my tutorial series, Intro to Intel Assembly Language
http://forum.codecal...e-part-1-a.html
http://forum.codecal...part-2-a-2.html
http://forum.codecal...e-part-3-a.html
http://forum.codecal...e-part-4-a.html
http://forum.codecal...e-part-5-a.html
http://forum.codecal...e-part-6-a.html
http://forum.codecal...e-part-7-a.html
http://forum.codecal...e-part-8-a.html
http://forum.codecal...ge-part-9a.html
http://forum.codecal...ge-part-9b.html
8-9B are the relevant parts, but you might want to read through a few others because I build on top of stuff that I taught before.
http://forum.codecal...e-part-1-a.html
http://forum.codecal...part-2-a-2.html
http://forum.codecal...e-part-3-a.html
http://forum.codecal...e-part-4-a.html
http://forum.codecal...e-part-5-a.html
http://forum.codecal...e-part-6-a.html
http://forum.codecal...e-part-7-a.html
http://forum.codecal...e-part-8-a.html
http://forum.codecal...ge-part-9a.html
http://forum.codecal...ge-part-9b.html
8-9B are the relevant parts, but you might want to read through a few others because I build on top of stuff that I taught before.
sudo rm -rf /
#7
Posted 12 November 2010 - 03:14 PM
THANK YOU dargueta for your Nice tutorials you explain some graphics tutorial in lesson 9 and i want you to give us more about graphics step by step
#8
Posted 12 November 2010 - 04:45 PM
I'm currently swamped with work right now, but I have every intention of continuing this series.
sudo rm -rf /
#9
Posted 13 November 2010 - 03:34 AM
thank you dargueta for these lessons, i'm waiting for your new lessons :thumbup:
#10
Posted 13 November 2010 - 10:56 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









