Live data from Hacker News

Show HN: My x86 emulator written in JavaScript

copy.sh

81–90 of 194 posts

Re: Show HN: My x86 emulator written in JavaScript

#82
@g3 this is super-mega awesome. 3 questions:

1. I know it is already available via the page, but would you please open-source it so others could contribute?

2. Thought I appreciate the apps being shown in the canvas in the resolution they are supposed to use, a full-screen option would be incredible. That way I could play space invaders the way it was meant to be played, in FreeDOS, in a JS emulator, in Firefox, on a mac. (That's just so wrong, it's right.)

3. Is that your real hair? (Sorry, just had to throw in a Real Genius quote.)

Re: Show HN: My x86 emulator written in JavaScript

#83
cute.

  /% cat /proc/cpuinfo                                                            
  processor       : 0                                                             
  vendor_id       : GenuineIntel                                                  
  cpu family      : 5                                                             
  model           : 1                                                             
  model name      : Pentium 60/66                                                 
  stepping        : 3                                                             
  cpu MHz         : 1.301                                                         
  cache size      : 256 KB                                                        
  fdiv_bug        : no                                                            
  hlt_bug         : no                                                            
  f00f_bug        : no                                                            
  coma_bug        : no                                                            
  fpu             : yes                                                           
  fpu_exception   : yes                                                           
  cpuid level     : 2                                                             
  wp              : yes                                                           
  flags           : fpu pse tsc cx8 pge cmov                                      
  bogomips        : 2.60                                                          
  clflush size    : 32                                                            
  cache_alignment : 32                                                            
  address sizes   : 32 bits physical, 32 bits virtual                             
  power management:
Heh, 1.3 MHz on a Pentium 60.

Re: Show HN: My x86 emulator written in JavaScript

#84
post #58
post #44

Earlier quoted context omitted.

Just for reference's sake this does vary a fair bit by computer and browser - mine never drops below ~8kIPS and runs mostly at ~15kIPS (and up to ~23kIPS). Whilst this is nothing like the several orders of magnitude required for more capable interactive behaviour, it does make my load times noticeably faster than those claimed on the page. :) (I'm Chrome on Linux, i7 4th Gen, incidentally)

I'm getting here > speed 1640kIPS on the old Nexus 7, don't you mean 8kkIPS? (This value was the average while booting Linux)

psst, the SI prefix for 10^6 is M

Re: Show HN: My x86 emulator written in JavaScript

#85

I want to write an emulator as a learning experience. Any tips how should I start?

I recently posted about emulating the NES with JavaScript.

http://blog.alexanderdickson.com/javascript-nes-emulator-par...

Part 2 will be posted when it's done. :)

If you want to get something done much quicker, have a go at emulating the Chip-8 VM.

I also have a post, but it's less hand-holding than the first.

http://blog.alexanderdickson.com/javascript-chip-8-emulator

Good luck!

Re: Show HN: My x86 emulator written in JavaScript

#88
post #47
post #39

Anyone know what format the floppies are expecting? It won't accept a DOS 6.22 install disk from MSDN, maybe it doesn't like DMF? Also, swapping disks during the install might be an issue, I don't see a button...

It expects one of the standard formats (720k, 1440k or 2880k). I'll add switching disks some time in the future.

It rejected my 360Kb images :-(
Post reply on HN