Re: asm
Well, all of the programs on a computer are based on a bunch of ints,
jmps, cmps, and all asm stuff.
Bios (int 10h) specified by default that function ah 00h sets the video
mode, and al is the the video mode that we're going to change.
Ax, is ah & al. So if you write ax = 0013h and the call int 10 (the
bios one) it's going to set a video mode to 13h (that is 320x200 with
256 colors if my memory doesn't fail).
I learned assembler by cracking programs. First it results a bit
complicated, but then you realize that it's the lowest way to manage
all kind of things that can happen in a PC.
It's hard to explain, but once you get the base you can know how all
your computer manages all that happens when you're doing something.
Best Regards,
Guillermo BonvehĂ (Caballero Rojo)
--- mwfch at MWEB.CO.ZA wrote:
>
>
> Hi (Most of the time I use lo . Lo is NOT the opposite of Hi , it
> means hello )
> I just dont understand how assembly works . Why do the computer go
> into 320*200*256 if you type in the following lines :
> mov ax,0013h
> int 10h
>
> Why ? Why does it happen ? How can you make a hole game with just a
> bunch of movs,ints,pops,pushs, ect ..... Why does the stuff happen
> when you put a value in a register ? WHY ?
> Help !
>
> Read ya later ! (Later days , Later , good luck ,whatever !)
> Ferdinand Greyling(aka DukeFungus)
>
>
>
|
Not Categorized, Please Help
|
|