Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Languages Misc > Re: Need a 32-b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 1083 of 1217
Post > Topic >>

Re: Need a 32-bit environment in which to test new language under Windows

by "Rod Pemberton" <do_not_have@[EMAIL PROTECTED] > Dec 16, 2007 at 06:10 PM

"James Harris" <james.harris.1@[EMAIL PROTECTED]
> wrote in message
news:61e3ae1d-5797-4fa0-901c-f74dec70eb75@[EMAIL PROTECTED]
> I'm nearing the point of first compile tests. Nothing fancy, just a
> few arithmetic operations to start with.
>
> Problem is, I want the code to be 32-bit and not tied to a particular
> OS.
>
> I'm planning to compile to NASM - so that when the machine code starts
> it is already in 32-bit mode - and wanting initially to test under
> Windows. Would I need something like MinGW to provide a 32-bit command
> prompt? The ability to run effectively 32-bit .com files is what I
> have in mind.
>

 1) write your own startup - 16-bit RM to 32-bit PM as a .com
 2) DPMI startup - 16-bit RM to 16-bit PM to 32-bit PM
 3) Multiboot header
 4) your own bootloader

1) and 2) work for older versions of Windows (95,98,ME).  I use both of
these.  I just patch them onto the start of the 32-bit code I need to
check.
But I'm unsure if XP etc. have sufficient v86 or DPMI sup****t...

3) You could add a multiboot header.  This header allows multiboot
compliant
bootloaders, i.e., Grub, Chris Giese's MBLOAD for DOS, etc. to start
32-bit
image from floppy, hardisk, etc.

MBLOAD http://my.execpc.com/CE/AC/geezer/temp/mbload.zip

4) You could write your own bootloader with 32-bit PM startup.


Rod Pemberton
 




 6 Posts in Topic:
Need a 32-bit environment in which to test new language under Wi
James Harris <james.ha  2007-12-16 11:54:18 
Re: Need a 32-bit environment in which to test new language unde
Marco van de Voort <ma  2007-12-16 21:37:05 
Re: Need a 32-bit environment in which to test new language unde
Marco van de Voort <ma  2007-12-16 21:37:49 
Re: Need a 32-bit environment in which to test new language unde
"Rod Pemberton"  2007-12-16 18:10:43 
Re: Need a 32-bit environment in which to test new language unde
"cr88192" <c  2007-12-17 09:36:44 
Re: Need a 32-bit environment in which to test new language unde
"Rod Pemberton"  2007-12-16 19:39:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:14:18 CDT 2008.