Home | Reviews | GUIpedia | Forum | Fun500


tacodrake95Executable Emulator
Does anyone have any idea how to make a windows executable emulator in qbasic?
2010-11-272:33 AM

BrandonRe:Executable Emulator
WINE and DOSBox do it on linux, and are open source, ypu might be able to get some ideas there.
2010-11-278:16 AM

tacodrake95Re:Executable Emulator
do you know if there is any QB source that would help, or if there is any kind of exe to asm converters for dos?
2010-11-276:25 PM

ToddRe:Executable Emulator
As for a disassembler, try this: http://www.frontiernet.net/~fys/newbasic.htm Disassemblers are never perfect because there's always data that cannot be detected as easily when disassembled. Because everything is deemed to be an opcode when referenced with instruction sets, data can often be mistaken for instructions.
2010-11-276:56 PM

tacodrake95Re:Executable Emulator
Thanks, i'll try that.
2010-11-278:01 PM

ksrRe:Executable Emulator
Just to correct you Brandon, Wine Is Not an Emulator (hence the acronym). The exes run natively on the processor, and wine just provides the API calls. As for actually writing an emulator, it's a huge task. You'd better get friendly with asm and the x86 internals.
2010-11-2812:30 PM

tacodrake95Re:Executable Emulator
i've already started learning ASM, so i could make something that runs assembly language through QB and use a dos based disassembler to get the asm code.
2010-11-286:04 PM

sbRe:Executable Emulator
Just to let you know, this is a huge undertaking. I started writing an 8186 emu and I got as far as interpreting some of the opcodes. There is alot of hardware that you have to take forgranted when emulating a system. Alot of which the OS relies upon and requires for it to function.Also the BIOS does (which is where I got stuck at because it was looking for specific values) If you are tring to just emulate a specific system executable files, then you will need to implement the underlying api, if its a dos app it may still depends upon certain hardware, hence why dosbox (and others) goes to great lengths to emulate it. For windows, Wine doesnt have to worry about the hardware as much as its more of an api translator it converts or creates appropriate linux/xwindows api calls to do what windows would do, (Theres more to it than that, but just giving a basic example). If you could explain what your trying to accomplish it may help. The other thing you have to remeber QBASIC/Quickbasic have limited memory, freebasic will give you access to most of the avalible memory as its 32-bit.
2010-12-011:38 PM

BASIC Programming Help


2021 Brandon Cornell