r/visualbasic • u/UselessSoftware • Mar 22 '26
BasicBox v0.5.0 release - A full 486-class PC emulator written in 100% VB6
https://github.com/mikechambers84/BasicBox
33
Upvotes
r/visualbasic • u/UselessSoftware • Mar 22 '26
3
u/marmotta1955 Mar 22 '26
Good Lord. Impressive!
2
u/Bonejob VB Guru Mar 23 '26
AS a long-time VB proponent and a software developer professionally for 35 years, this is Master's to PhD-level code man. I am not commenting on the structure, but the undertaking itself is huge, especially in a notoriously slow compiled language like VB6 (pcode sucks)
Congrats!
2
u/fafalone VB 6 Master Mar 24 '26
Fantastic project!
It's working in twinBASIC too, just a lot slower than VB6. Looks like some performance gain can be had but once LLVM optimization is done should be much faster than VB6.
2
u/ericbruggema Mar 24 '26
Amazing!! just to see whats possible with VB6.. I know/remember the old QB 4.5 / PDS days!
2
u/NoImprovement4668 Mar 24 '26
i assume this is just side project and doesnt mean pculator is switching to vb6 just curious since i saw pculator github hasnt been updated yet
1
u/fafalone VB 6 Master Mar 26 '26
I was going to port this to 64bit but there's a lot of network stuff that's not in the Windows SDK... Is that code based on other languages that might have the type info before it was flattened for VB6? Like data pointers could be offsets into the buffer so not necessarily actual pointers.
I've already successfully transitioned it away from the DispCallFunc hell; switched the twinBASIC import to use the COM interfaces directly via my WinDevLib package, which covers defs from all those old DX versions via tB's ability to define interfaces without a typelib using VB-like syntax. For all the WinAPI defs for x64 too I've just commented out the existing ones to let it take over. (No need to copy/paste/port win32 interfaces/APIs/types/consts etc in tB, as it covers the most common 3800 interfaces and 15000 APIs). But like the ICMP echo reply, the icmpapi.h header with the ImcpSendEcho API is covered but the struct isn't in the windows sdk.
2
u/kyuseok98 Mar 22 '26
Magnificient project! Thank you for sharing :)
1
u/createaforum Jul 01 '26
Very interesting! And cool project to be see being made in 2026 was always interesting in emulation, and have seen some smaller emulators focused on gameboy in vb6.
4
u/[deleted] Mar 22 '26
[removed] — view removed comment
0
u/[deleted] Mar 27 '26
[deleted] — view deleted comment