flat assembler
Message board for the users of flat assembler.

Index > OS Construction > MikeOS32 - 32 bit PM translation

Author
Thread Post new topic Reply to topic
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 28 Dec 2010, 02:48
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

https://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 Visit poster's website Reply with quote
Domi2Show



Joined: 11 Jan 2011
Posts: 1
Domi2Show 11 Jan 2011, 17:57
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
tom tobias 13 Jan 2011, 22:34
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
roboman 03 Mar 2011, 04:48
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: 243
Mike Gonta 02 Aug 2013, 17:13
Here is the latest version of MikeOS32 (and the latest version of aeBIOS)

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

https://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 Visit poster's website Reply with quote
dogman



Joined: 18 Jul 2013
Posts: 114
dogman 05 Aug 2013, 09:37
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
Shirk 19 Aug 2013, 09:57
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: 339
Location: Asia, Singapore
sid123 21 Aug 2013, 10:10
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: 243
Mike Gonta 21 Aug 2013, 20:35
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 esi, hello ; 32 bit registers
  call print
  mov ah, 0x10
  int 0x16 ; standard BIOS functions
  ret
print:
  mov ah, 0x0E
.1:
  mov al, [esi]
  lea esi, [esi+1]
  test al, al
  je .2
  int 0x10
  jmp .1
.2:
  ret
hello: db "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

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



Joined: 30 Jul 2013
Posts: 339
Location: Asia, Singapore
sid123 24 Aug 2013, 12:30
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 esi, hello ; 32 bit registers
  call print
  mov ah, 0x10
  int 0x16 ; standard BIOS functions
  ret
print:
  mov ah, 0x0E
.1:
  mov al, [esi]
  lea esi, [esi+1]
  test al, al
  je .2
  int 0x10
  jmp .1
.2:
  ret
hello: db "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
z0q 13 Jun 2015, 20:35
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: 243
Mike Gonta 14 Jun 2015, 08:24
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

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



Joined: 17 Mar 2015
Posts: 3
z0q 14 Jun 2015, 12:19
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


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

Website powered by rwasa.