flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > OS Construction > MikeOS32 - 32 bit PM translation

Author
Thread Post new topic Reply to topic
Mike Gonta



Joined: 26 Dec 2010
Posts: 202
MikeOS32 - 32 bit PM translation
This is the 16 bit real mode MikeOS translated to run as 32 bit protected mode.

_________________
Mike Gonta
look and see - many look but few see

http://mikegonta.com


Last edited by Mike Gonta on 05 Dec 2016, 10:49; edited 13 times in total
Post 28 Dec 2010, 02:48
View user's profile Send private message Reply with quote
Domi2Show



Joined: 11 Jan 2011
Posts: 1
Hey,

can you Zip all files together so that i can download it?
sry, i am German Wink

Edit: thank you Smile

ty
Post 11 Jan 2011, 17:57
View user's profile Send private message Reply with quote
tom tobias



Joined: 09 Sep 2003
Posts: 1320
Location: usa
Thank you Mike, well done.

Smile
Post 13 Jan 2011, 22:34
View user's profile Send private message Reply with quote
roboman



Joined: 03 Dec 2006
Posts: 122
Location: USA
I like MikeOS, did a translation of MikeOS Basic to DexOS. I hadn't thought about the idea of making a 32 or 64 bit ver of MikeOS. Taking a quick look at the source and your line "aeBIOS - case study - MikeOS" this only runs after you start aeBIOS, right?
Post 03 Mar 2011, 04:48
View user's profile Send private message Visit poster's website Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 202
MikeOS32 version 4.4
Here is the latest version of MikeOS32 (and the latest version of aeBIOS)

_________________
Mike Gonta
look and see - many look but few see

http://mikegonta.com


Last edited by Mike Gonta on 10 Jun 2014, 10:09; edited 1 time in total
Post 02 Aug 2013, 17:13
View user's profile Send private message Reply with quote
dogman



Joined: 18 Jul 2013
Posts: 114
Re: MikeOS32 version 4.4

Mike Gonta wrote:
Mike Gonta
look and see - many look but few see

http://mikegonta.com



How true! I looked at your website but couldn't see anything Razz

_________________
Sources? Ahahaha! We don't need no stinkin' sources!
Post 05 Aug 2013, 09:37
View user's profile Send private message Reply with quote
Shirk



Joined: 12 Sep 2011
Posts: 10

Quote:
look and see --- many look but few see



Nice one - you should add a "if you can read this you don't need prescription glasses"
but what are TWOTHBRUSHES??
Post 19 Aug 2013, 09:57
View user's profile Send private message Reply with quote
sid123



Joined: 30 Jul 2013
Posts: 340
Location: Asia, Singapore
Is more than 64K memory accessible?
If this is really Protected Mode then I think that you could access more than 64K of memory right? Question

_________________
"Those who can make you believe in absurdities can make you commit atrocities" -- Voltaire https://github.com/Benderx2/R3X
XD
Post 21 Aug 2013, 10:10
View user's profile Send private message Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 202
Re: Is more than 64K memory accessible?

sid123 wrote:
If this is really Protected Mode ...

That's very simple to verify.

Code:
use32 ; PM32
org 0x400000 ; MikeOS32 loads apps to 4Mb
times 0x80000 db 0x90 ; NOP - file size at least 1/2 Mb
  mov esihello ; 32 bit registers
  call print
  mov ah0x10
  int 0x16 ; standard BIOS functions
  ret
print:
  mov ah0x0E
.1:
  mov al, [esi]
  lea esi, [esi+1]
  test alal
  je .2
  int 0x10
  jmp .1
.2:
  ret
hellodb "This is a big app!"0

Assemble this as big_app.bin, copy to the root directory, boot MikeOS32, select it from the menu and press any key to go back to MikeOS32.

_________________
Mike Gonta
look and see - many look but few see

http://mikegonta.com
Post 21 Aug 2013, 20:35
View user's profile Send private message Reply with quote
sid123



Joined: 30 Jul 2013
Posts: 340
Location: Asia, Singapore
Re: Is more than 64K memory accessible?

Mike Gonta wrote:

sid123 wrote:
If this is really Protected Mode ...

That's very simple to verify.

Code:
use32 ; PM32
org 0x400000 ; MikeOS32 loads apps to 4Mb
times 0x80000 db 0x90 ; NOP - file size at least 1/2 Mb
  mov esihello ; 32 bit registers
  call print
  mov ah0x10
  int 0x16 ; standard BIOS functions
  ret
print:
  mov ah0x0E
.1:
  mov al, [esi]
  lea esi, [esi+1]
  test alal
  je .2
  int 0x10
  jmp .1
.2:
  ret
hellodb "This is a big app!"0

Assemble this as big_app.bin, copy to the root directory, boot MikeOS32, select it from the menu and press any key to go back to MikeOS32.


AWESOME!
That's great Mike Gonta
As Mike Saunders made MikeOS-16
Mike Gonta takes it to 32.... Razz

_________________
"Those who can make you believe in absurdities can make you commit atrocities" -- Voltaire https://github.com/Benderx2/R3X
XD
Post 24 Aug 2013, 12:30
View user's profile Send private message Reply with quote
z0q



Joined: 17 Mar 2015
Posts: 3
I have a question about the bootloader. How does it look for the file? It first looks in the root directory and then reads the FAT?

I'm not sure if I understand correctly how this works.

Any help is greatly appreciated Smile
Post 13 Jun 2015, 20:35
View user's profile Send private message Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 202

z0q wrote:
I have a question about the bootloader. How does it look for the file? It first looks in the root directory and then
reads the FAT?

The file name is found by checking each root directory entry in the root directory table one entry at a time. That
root entry contains the first cluster of the file. That cluster number is used to locate the next cluster number in
the FAT and so on until the last one is found and loaded.
https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system

_________________
Mike Gonta
look and see - many look but few see

http://mikegonta.com
Post 14 Jun 2015, 08:24
View user's profile Send private message Reply with quote
z0q



Joined: 17 Mar 2015
Posts: 3
Thank you very much Smile

I have another question. I could not find in the comments why it starts in 32-bit mode. Could you explain this to me? I thought bootloaders always start in real mode.
Post 14 Jun 2015, 12:19
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.