View Full Version : Porting
Mike359
01-02-2005, 08:19 AM
Is there a way for me to completly convert Ken Silverman's ASM code to MSVC++ .NET?
Fill me in?
CronoMan
01-03-2005, 05:04 AM
__asm
{
}
?
Depends
What ASM code are you talking about?
He writes alot for DOS applications, and if it is for DOS, you will have to rewrite alot to make it work on DirectDraw or something.
Most of his "older" code is made for VESA, which is not supported by windows
DudeMiester
01-07-2005, 01:50 AM
You could make something that worked equliavently to his code, but it would bear no resemblance to the origional, as it would operate through OpenGL, Direct3D or DirectDraw or something, instead of direct memory access. Although doing this would be rather pointless, there are much superior ways to render things these days.
pjohnsonjr
03-04-2005, 11:18 PM
If you're thinking on converting his .ASM code into symbolic C++ code... there is no way to convert up... Because the flow of symbolic code is downward. It's like trying to swim upstream with a strong downstream current, isn't gonna happen. The best bet you're gonna have to decipher his ASM and then convert it to something similar in C++.
You might be able to open the assembly if you have the asm file, but other than that...
Sephiroth
03-05-2005, 03:06 PM
Cronoman is right, even though Ken's assembly is 32bit (protected mode) there are some functons that would need to be completely rewritten, Windows does too support VESA, otherwise reslutions such as 640x480 and higher can't exist in fact SciTech Display Doctor wich used to emulate some VESA modes was for windows, it was installed as a windows driver, so I would think that VESA has to be supported.
You're better off rewriting Kenbuild on your own, if you wanted it to be 100% C/C++. my advice would be to do a total rewrite of hs rendering code step by step until it is complete in your prefered language.
If I was doing this, I would choose Darkbasic Pro and port Ken's 32bit assembly protected mode to win32's assembly but write them as functions I can use, then peaice it all together with BASIC since I am using my own funtions i am basically just linking ASM funtions with bits of BASIC... thats how I port things on windows...
In linux it's assembly all the way, (NASM ROX!)
JonoF
03-12-2005, 07:18 PM
Ken already released the C versions of the assembly code from Build and if you use my port's source as reference, you can build the entire thing without a sniff of assembly if you want. It would be worth looking at that for what you're wanting to do.
Cheers
Jonathon
Destroyer
03-13-2005, 12:16 AM
whos ken silverman
Kristian Joensen
03-13-2005, 04:15 AM
He is the programmer behind the Build Engine and Level Editor.
Mike359
05-17-2005, 08:24 AM
Destroyer said:
whos ken silverman
You have sinned against God.
CronoMan
05-27-2005, 05:22 AM
Destroyer said:
whos ken silverman
And you ask that question on the forum of 3DRealms?
He's the father of the Build Engine, and as I see it, one of the most brilliant programmers alive.
Why did one of the lines in my previous post disappear?
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.