Mail Archives: djgpp/1997/11/09/05:17:15
Gabriel wrote in message <01bcec8a$80d7ce80$6c0da8c0 AT Gabriel DOT ncs DOT com DOT sg>...
>hi there can someone please convert this
>small, humble, light weight, tc 3.0, voxel code to djgpp in svga for me???
>
>Regards
>
>please reply to lord DOT gabriel AT rocketmail DOT com & kmyeo AT ncs DOT com DOT sg
>
Things to do:
1) Get rid of every occurrence of the word FAR.
2) Put the assembly in quotes and make it the DJGPP format
3) Change farmalloc(a) to malloc(a)
4) The function MK_FP does not exist (line 198).
you could start the code with these:
#define far
#define farmalloc(a) malloc(a)
and change:
asm {
mov ax, 0x13
int 0x10
}
to the DJGPP format. This includes quotes and reversing movl:
asm (
" movl $0x13, %eax\n"
" int $10h "
);
I don't know asm so don't trust my syntax! These are just guesses to get you
going!
This will make the program compile. I am still trying to figure out what makes
the fatal exception :) I'll tell you later, if I figure it out...
- Raw text -