OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 10:51 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Javascritp x86 emulator
PostPosted: Sat Nov 09, 2013 12:16 am 
Offline
Member
Member

Joined: Fri Nov 08, 2013 7:40 pm
Posts: 62
Very nice... someone (Fabian) definitely had fun.


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator - UPDATE
PostPosted: Mon May 25, 2015 1:58 am 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
bubach wrote:
Have you seen this?
http://copy.sh/v24/
great fun, and a quick way to try out simple OS's :)
DavidCooper wrote:
Is it supposed to be able to handle 32-bit mode or is it limited to real mode? ... It puts up that message within a few seconds with
MikeOS32 and my own OS.
Appears to be fixed and works fine. MikeOS32 is here.


Attachments:
v86 MikeOS32_4.4.PNG
v86 MikeOS32_4.4.PNG [ 44.32 KiB | Viewed 5791 times ]

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

https://mikegonta.com
Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Tue May 26, 2015 7:28 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
I think, it does not like my OS. Still, it's a good approach.
Does it support SSE instructions?


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Tue May 26, 2015 10:25 am 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 901
Location: Maadi, Cairo, Egypt
It runs my OS properly, though the font doesn't seem to work.
It's a little odd that the processor doesn't have a model, though. Not exactly efficient, but definitely very cool, seeing as how we can now test our OSes from smartphones and such. :)


Attachments:
vector os.png
vector os.png [ 117.52 KiB | Viewed 5734 times ]

_________________
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Fri May 29, 2015 1:34 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
My OS seems to run pretty well on this emulator, but only when booting from the hard drive. The CD and floppy boot loaders both lock up. I guess that's what I get for writing my own boot loader...

Still, pretty impressive.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Sat Jul 25, 2015 8:00 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
If anyone is interested, I found this list of online JavaScript emulators.

http://www.cambus.net/emulators-written-in-javascript/

The emulator in the original post is on this list.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Sun Jul 26, 2015 5:26 am 
Offline
Member
Member

Joined: Wed Jun 03, 2015 5:03 am
Posts: 397
SpyderTL wrote:
If anyone is interested, I found this list of online JavaScript emulators.

http://www.cambus.net/emulators-written-in-javascript/

A lot of work and a lot of time were spent. Is the JavaScript emulation so useful (or was it)? Or is it something that students make for some processor related courses?

_________________
My previous account (embryo) was accidentally deleted, so I have no chance but to use something new. But may be it was a good lesson about software reliability :)


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Sun Jul 26, 2015 5:39 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
embryo2 wrote:
A lot of work and a lot of time were spent. Is the JavaScript emulation so useful (or was it)? Or is it something that students make for some processor related courses?

No offense, but why are you bringing *anything* into question, whatever its about? They are clearly just doing it for the lulz and to show that its possible, probably also to show off. Same reason why people on here write their own OS, are they very useful?

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Sun Jul 26, 2015 9:15 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
I think they are useful, because it gives me yet another test bed to test out my OS without having to buy any more hardware.

For instance, the one linked in the original post supports VirtIO Filesystem, which I've never seen before, and am currently researching.

Speaking of which, does anyone have any documentation for this PCI device? I've found some information on the 9p file system, but it only covers the command packets, not the "hardware" involved...

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Sun Jul 26, 2015 3:02 pm 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
The old pre-OASIS virtio specs seems to contain a bit on 9p devices: https://github.com/rustyrussell/virtio-spec

_________________
Developer of tyndur - community OS of Lowlevel (German)


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Sun Jul 26, 2015 8:16 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
I actually already have the VirtIO 0.9.5 spec PDF file. I didn't realize that it included the 9p transport subsystem id. But reading through that document again, I don't see any other information other than the ID. Maybe I'm just missing it...

I may try to look through the source for that VM in the original post, if I can find it.

Usually, the VirtIO communication protocol requires a VirtIO specific header in each packet, but maybe not in this case. Maybe you just write 9p packets directly to the VirtIO buffers. I may just try that when I get a few minutes.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Mon Jul 27, 2015 4:15 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
Yes, the old PDF specs that I can find are too old. The source in the repo I posted does have an appendix for virtio-9p, though.

I didn't read it, but it was rather short, so I guess apart from some initialisation you really just put the 9p packets (if that is what they are called) into the virtqueue.

_________________
Developer of tyndur - community OS of Lowlevel (German)


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Mon Jul 27, 2015 4:22 am 
Offline
Member
Member

Joined: Wed Jun 03, 2015 5:03 am
Posts: 397
max wrote:
No offense, but why are you bringing *anything* into question, whatever its about?

No offense, but I don't understand what do you mean when you use the word "anything". Is it about why I ask the question? Or is it why I think there could be any other intent except the lulz? I really can't figure out what to answer here.

_________________
My previous account (embryo) was accidentally deleted, so I have no chance but to use something new. But may be it was a good lesson about software reliability :)


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Tue Jul 28, 2015 11:20 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
Kevin wrote:
Yes, the old PDF specs that I can find are too old. The source in the repo I posted does have an appendix for virtio-9p, though.

I didn't read it, but it was rather short, so I guess apart from some initialisation you really just put the 9p packets (if that is what they are called) into the virtqueue.

I didn't see this in any of the documents that I found. Can you post an exact link, or instructions on how to find that appendix? Thanks.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Javascript x86 emulator
PostPosted: Wed Jul 29, 2015 4:03 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
It's pretty much the only file with real contents in the repository that I linked above, but here it is: https://github.com/rustyrussell/virtio- ... o-spec.lyx

It's probably easiest to just clone the whole repository and build a PDF document, but if you really want to read it in the source file, look for Appendix J, starting at line 9906. It doesn't say much more than what should be in the header files and "When the driver wantes to send a 9P request it places the descriptor of the PDU in the queue. It will be processed by the device according to the 9P protocol specifications (available at http://ericvh.github.io/9p-rfc/) and returned to the driver."

_________________
Developer of tyndur - community OS of Lowlevel (German)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 62 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group