flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Dos ver of the next release of DexOS

Author
Thread Post new topic Reply to topic
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Here is the dos boot ver of the new DexOS release , its the same as my next ver of DexOS, other than this ver needs dos to boot from, but includes 32bit pm int21h dos functions.
So its like a 32bit dos.

Here you will find a freedos floppy image boot to freedos and run dos2x.exe (thats the name of the 32bit dos ver of DexOS) and it will go to dos2x's gui or cli if you do not have the right vesa mode available .
you can also exit back to freedos by typing exit at the cli, to run normal dos apps.

The image
http://www.dex-os.com/dos2x/dos2x_image.zip
Screenshots
http://www.dex-os.com/dos2x/
This ver is 100% compatable with dos as far as int 21h function go, but its full pm32bit.
Its got a fasm port, both normal and ide vers.
Simple GUI
The non dos boot ver of DexOS will be release in a week or two.

NOTE: Its needs a PURE DOS to run from.
PS: Source will be released with the DexOS ver, unless someones in a rush.
Post 28 May 2011, 02:03
View user's profile Send private message Reply with quote
DJ Mauretto



Joined: 14 Mar 2007
Posts: 464
Location: Rome,Italy
DJ Mauretto
Cooooool Wink

_________________
Nil Volentibus Arduum Razz
Post 28 May 2011, 07:56
View user's profile Send private message Reply with quote
cypher



Joined: 07 Apr 2011
Posts: 51
Location: The cave
cypher
My sentiments exactly!
Smile
Post 28 May 2011, 11:02
View user's profile Send private message Reply with quote
garystampa



Joined: 25 May 2011
Posts: 52
Location: Central FLorida
garystampa
I am starting to show my son how OS's boot/work/etc. and would like to use Dex as an example. Does this announcement mean the files currently available on your site are going to be obsoleted?
Post 28 May 2011, 13:10
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Thanks everyone for your kind words Smile .

@garystampa, Cool that your sons interested in OS, As for are they 'obsolete', if you mean will they run in the new OS than, than its no they will not.

But every app from the old ver will be ported to the new ver and the old ver will still be available if anyone want to add apps or mod the kernel32 etc.

The big advantage with this ver is you can use those old dos asm tut to learn/write pmode asm app's with little modding.

Hello world! example
Code:
;=========================================================;
; Hello world!                                   06/05/11 ;
;---------------------------------------------------------;
; By Dex  .                                               ;
;                                                         ;
; Here is a simple "hello world" program.                 ;
; for dos2x, using the int 21h functions.                 ;
; in 32bit pm.                                            ;
; To assemble in dos2x, use fasm as follows               ;
; fasm.dex hello.asm hello.dex                            ;
;=========================================================;
use32
        ORG   0x400000                                ; where our program is loaded to
        jmp   start                                   ; jump to the start of program.
        db    DOS2                                    ; We check for this, to make shore it a valid dos2x file.

msg1:   db 'Hello world! ',13,10
        db 'Press anykey to return to command.com ',13,10,'$'

 ;----------------------------------------------------;
 ; Start of program.                                  ;
 ;----------------------------------------------------;
start:
        mov   ax,18h                                  ; set ax to nonlinear base
        mov   ds,ax                                   ; add them to ds
        mov   es,ax                                   ; and es.
 ;----------------------------------------------------;
 ; Get int21h address.                                ;
 ;----------------------------------------------------;
        mov   eax,21h                                 ; test for int21h
        int   21h                                     ;
        jc    Int21hError                             ; error leave
        mov   dword[Int21h],eax                       ; if not save address
 ;----------------------------------------------------;
 ; Try print string.                                  ;
 ;----------------------------------------------------;
        ; print string 1       
        mov   edx,msg1                                ; this point's to our string.
        mov   ah,09h                                  ; function number
        call  dword[Int21h]                           ; this call dos function.
 ;----------------------------------------------------;
 ; wait for keypress.                                 ;
 ;----------------------------------------------------;
        ; is the wait for keypress function.
        mov   ah,07h                                  ; function number
        call  dword[Int21h]                           ; this call the print function.
        
Int21hError:
        ret                                           ; This returns to the CLI/GUI

 ;----------------------------------------------------;
 ; Data.                                              ;
 ;----------------------------------------------------;

Int21h     dd 0
    
Post 28 May 2011, 16:09
View user's profile Send private message Reply with quote
garystampa



Joined: 25 May 2011
Posts: 52
Location: Central FLorida
garystampa
Thanks for the info. I was asking form the standpoint of whether the old files were going to be 'obsoleted' by a newer concept or different style or interface.

I'm not fully up-to-speed on your OS and I've been looking at a few so my head's swimming a bit.

I am very fluent in ASM and wanted to help my son assemble and run your OS and start learning how they work. I figured my extensive background in DOS, embedded, firmware and OS dev could keep me from having to spend too much of my own time trying to figure out what's going on - yet still be able to help him.
Post 28 May 2011, 22:25
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
Just curious, is the .dex file just a flat binary file or did you make your own structure. ? Very Happy
Post 29 May 2011, 02:43
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
typedef wrote:
Just curious, is the .dex file just a flat binary file or did you make your own structure. ? Very Happy

Just a flat bin file with small header, we do have our own file formats.
Eg: DIF and DFF
Dex Image Format
Dex Font Format

Plus we have a module/driver structure.

But the .DEX and .GEX are just .bin files the .Dex is loaded at 4mb and run from cli so opens and close in text mode.
The .gex is load at 8mb and is opened and close in vesa mode 800*600 32bpp frome GUI.

PS: We have use the .dex since 2003, but it seems now that the android is using it too.

PSS: I have add the source code to the link dos2x.zip
Post 29 May 2011, 17:06
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
cool beans Very Happy
Post 29 May 2011, 18:54
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
bitshifter has pointed out that i did not include the fasm license and should have more respect for Tomasz Grysztar.
I have every respect for Tomasz Grysztar and bitshifter should open his eyes, the license is in the Doc folder, in the floppy image.
Rolling Eyes
Post 31 May 2011, 20:31
View user's profile Send private message Reply with quote
garystampa



Joined: 25 May 2011
Posts: 52
Location: Central FLorida
garystampa
In noticing the keyboard map file, I was wondering if you allowed the Alt-[enter 3 digits] sequence which either DOS or the BIOS allowed.

I remember that being a handy feature to throw in a high-bit char or other hard-to-get to character.
Post 04 Jun 2011, 10:18
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Not as it stands, but anything like that can be added.
The main reason, is that we used to remap these, unused fonts to make a custom logo in text mode.
Post 04 Jun 2011, 17:34
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.