x86 asm to .bin compiler
Pasha
Posts: 56
would it be possible to create a x86 assembler that assembles to to a file that could be run by a pasm program that would act as a bios (giving keyboard, memory, ...) I really don't know a lot about this, but I would be interested in helping anyone who would like to work on such a project.
Comments
I'm not familiar with x86. But I think x86-assembler is So different from prop-asm that this would be really hard to do
It even might be that way that a x86bios is much bigger than 2K what you have as COG-RAM and even bigger than 32kB
as this is the limit of HUB-RAM. There would be A LOT OF work to emulate x86-code in Prop-ASM.
I think it will take only 20% of time to develop something like this NEW in Prop-ASM.
What do you want to do in the end ?
Maybe there is a much easier solution than going all the way of x86 assembling to Pprop-ASM
best regards
Stefan
The x86 ISA is vast (bloated), only supporting a subset like 8086 instructions means loads of them. You may want to have a look at the 8086 emulator inside the MAME (Multiple arcade machine emulator), an old version will do, I think they use jit nowadays.
You have native C compilers, several languages... it may not be the best approach to just run some off the shelf code (the orignal IBM bios is 8K, the DOS 3.3 is something like 128K together...), though.
The bios I was thinking of would have to be different than a pc bios because it would use things like the keyboard driver and vga driver. I think it could potentially be built out of Mike Green's os even.
If anyone could tell me a good site to learn x86 asm that would be great.
There are loads of tutorials around the web, programmersheaven.com may be of help. There are also many books from the 80s about that topic. I used one of these, I do not remember which one:
www.amazon.de/Nortons-Assembly-Language-Utility-Software/dp/013662149X/ref=sr_1_1?ie=UTF8&s=books-intl-de&qid=1227340284&sr=1-1
www.amazon.de/Assembly-Language-Primer-Personal-Computer/dp/0136619010/ref=sr_1_3?ie=UTF8&s=books-intl-de&qid=1227340284&sr=1-3
www.amazon.de/Assembly-Language-Pc-Book-Disk/dp/1566860164/ref=sr_1_2?ie=UTF8&s=books-intl-de&qid=1227340284&sr=1-2
I'm not affiliated with any of them.
I was thinking that the bios might even be able to split up the tasks and use all available cogs to make it faster. this is what I wanted.
aha NOW we REALLY KNOW what you want to do ! Somehow and somehow still NOT.
If you try to run real MS-DOS software on a propeller - just forget it
if you want the functionality of something like free-dos or ms-dos itself
meaning list up files, copy files delete files etc. take one of the Propeller-DOS-versions that already exist
f.e. superdos by tpw_man
best regards
Stefan
http://forums.parallax.com/showthread.php?p=711157.
I'm still tinkering with it from time to time.
The question of x86 emulation has come up a number of times. A quick look at the x86 instruction set will soon convince you that you really don't want to do that. It's big, complex and ugly. The resulting emulator is bound to be awful slow.
Is there any pressing need to do so ? We already have the equivalent of a BIOS in the various existing keyboard, mouse, video, etc drivers. We already have a DOS in the form of the SD card file system.
So why did I make my 8080 emulator? As a learning exercise, just for fun and my tribute to Gary Kildall.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
You don't have hope I'm sorry. Oldbitcollector has written a text editor and Mike Green has several excellent basic interpreters, but that's about as close as you are going to get.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
Jerry
Jerry that is exactly what I had meant. sorry I couldn't make myself clear. I will fool around with it, and see what I come up with. until then,
best regards,
Pasha
http://www.emacinc.com/
http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=711