sure do :)
THE SEGMENT FOR VIDEO MEMORY is 0a000H.
CX=X
DX=Y
mov AX,0A000h
mov ES,AX
;Calculate Pixel Address = ((Y*BPL)+X)
mov DI,CX
mov AX,DX
mov CX,320;bytes per line
mul CX
add DI,AX
;Write Pixel
mov [byte ptr ES:DI],40;Red
This will only work if you are in 320x200 because
320x200 is...
:) Show Off :)
You have to leave SOME of the work up to them.
But you got me on the E's. I missed the 32-Bit Part the first time I read the question. DataC5155
"...NO FATE..."
If you know the length of the string to copy all you need to do is use movsb.
cld
ES:DI = place to copy to
DS:SI = place copying from
CX = # of characters to copy
REP movsb = Repeat mov until CX = 0
Hope this helps you.
"It is the struggle itself that is most...
It is windows. You can call me crazy, but if I run the program from a pure DOS mode, there is no problem. From a DOS box, it errors on the second open (after a save and delete).
Must have something to do with the recycle bin or something, it wont let it access the file or something funky.
Thanks...
A circle is just plotting a point around a center X,Y Position. You need to rotate that point around the Z Axis using sin and cos (some people use predfined tables for "speed", but for the sake of data space they are too inaccurate for me).
But AmkG is right, bios is bad for drawing...
Does anyone know how to perminantly delete a file? using the INT21h delete doesnt remove the entry from the disk, just marks the space as free. But I found that if you try to resave something under the same name (after a delete) the program is unable to read the file back in again (I get all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.