Page 1 of 1

16 Bit GUI

Posted: Thu Aug 19, 2004 11:00 pm
by Chad Sobodash
I'm working on a 16 bit GUI for my operating system. Any resources or examples? I have no where to start! I've finished the file system (FAT16) and the rest of the OS, but I still need a GUI.

RE:16 Bit GUI

Posted: Thu Aug 19, 2004 11:00 pm
by DIGO_RP
At what language do you prefer! I have many things but it´s in pascal I have to in C some codes!

DIGO_RP :-)

RE:16 Bit GUI

Posted: Thu Aug 19, 2004 11:00 pm
by ASHLEY4
Try this bit of code
[code]
mov ax,4f02h  ;set vesa 1.0 screen mode
mov bx,101h  ;640*480*256
int 10h

mov dx,0xa000
mov ds,dx              ;sets up registers
call window
rain:
xor dx,dx      ;(pages-1)

mouse:
push dx
call window
xor bx,bx
mov al, 0cch
call dog
pop dx
cmp dx,4
je rain
inc dx
mov ah,01h
int 16h                   ; have we pressed a key,if no then loop
jz mouse

mov ax,0003h       ;back to text mode.
int 10h

mov ax,4c00h      ; This is just
int 21h                ; for test ,take it out in your OS

window:
mov ax,4f05h    ;vesa 1 window select
mov bx,0
int 10h        ;dx is  the reqired window
xor bx,bx
ret

dog:        ;(4*2^16)+45056 pixels
mov [bx],al
inc bx
cmp bx,$00000
jne dog
ret

[/code]

This will get you in 640 x 480 x 256 color's (vesa 1) in 64k chunck's 5 of them, so it can be used in realmode, the above code just fill's the screen with a color, purple i think ?.

\\\\|////
(@@)
ASHLEY4.

RE:16 Bit GUI

Posted: Sat Aug 21, 2004 11:00 pm
by Chad Sobodash
That's pretty much what I was looking for. I prefer assembly, since I don't have file execution done yet. Also, does anyone know where I can find specifications for the .exe file type?

RE:16 Bit GUI

Posted: Sun Aug 22, 2004 11:00 pm
by DIGO_RP
Give ne you e-mail I´ll send to you about many files EXE COM COFF ELF anything you need
:-)

DIGO_RP

RE:16 Bit GUI

Posted: Sun Aug 22, 2004 11:00 pm
by ASHLEY4
If you want to load a exe or com from realmode with your OS, take a look at this bootloader that loads a com/exe from the floppy disk, it come's with asm code.
It's called "bootprog.zip" and you can get it from here: http://alexfru.chat.ru/epm.html

\\\\||////
(@@)
ASHLEY4.

RE:16 Bit GUI

Posted: Sun Aug 22, 2004 11:00 pm
by Chad Sobodash
I found what I was looking for. I looked it up on Wotsits.