Re: low level graphics



On 2006-08-22, dave frost <dj.frost@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Ive found a lot of material on the net about asm progrmaming in mode
13h, but its all in dos, a lot like this:

;Change the video mode to 13h
xor ah, ah
mov al, 13h
int 10h

;Prepare for writing to the video buffer
mov di, 0a000h
mov es, di
xor di, di

Now im sure this would compile under linux,

nasm could compile that, it wouldn't do anything useful when you ran it
though.

but i expect id get a seg fault or something due to the video memory
not being in my process memory space, correct ?

yup.

which means i would write a kernel driver correct ?

not needed. svgalib can get you mode 13h I think.

or if you run dosemu in an xterm it'll do an emulated mode13 :)

--

Bye.
Jasen
.



Relevant Pages

  • Re: Hashing
    ... > mov ecx,eax ... > xor ebx,ebx ... > shl ebx,16 ... > shr eax,11 ...
    (alt.lang.asm)
  • Re: Hashing
    ... push ebx ... mov ecx,eax ... xor ebx,ebx ... Its a hash function quality ...
    (alt.lang.asm)
  • Hi-Tech c compiler
    ... Paths and correct source file list are defined but when I go to COMPILE there are errors relating to: ... ORL A,# ... MOV A,# ... ANL A,#LOW_MASK;mask out low nybble ...
    (comp.arch.embedded)
  • Re: need to be able to know basic MASM ONLY
    ... The reason Dirk's code looks "different" may be that it's for dos. ... START: mov ax, DATEN ... trying to compile his first program, after that I abandoned it all. ... VS with Nasm (hmmm, ...
    (comp.lang.asm.x86)
  • Re: The Mark Of The Mushroom
    ... This failed to compile properly with those compile lines displayed. ... mov eax, 0900h ... ; int 20h ... 0C2B:0101 8D161500 LEA DX, ...
    (comp.lang.asm.x86)