16 Bit GUI

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Chad Sobodash

16 Bit GUI

Post 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.
DIGO_RP

RE:16 Bit GUI

Post 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 :-)
ASHLEY4

RE:16 Bit GUI

Post 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.
Chad Sobodash

RE:16 Bit GUI

Post 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?
DIGO_RP

RE:16 Bit GUI

Post 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
ASHLEY4

RE:16 Bit GUI

Post 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.
Chad Sobodash

RE:16 Bit GUI

Post by Chad Sobodash »

I found what I was looking for. I looked it up on Wotsits.
Post Reply