Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 VB InLine ASM issues
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

EACam
Warrior

154 Posts

Posted - May 05 2004 :  7:14:43 PM  Show Profile  Reply with Quote
I downloaded the VB InLine ASM add-in for VB 6.0. I desperately need to take advantage of ASM's speed, so I tried to compile app with the add-in linked to the compiler. If said I need some Assembler exe (an option that I apparently hadn't set). Um...I don't know what this assembler is and where I can get it...becuase ml.exe doesn't exist on my computer (that seemed to be the name of the executable it wanted).

Thanks.

Almar
Moderator

Netherlands
192 Posts

Posted - May 06 2004 :  12:19:15 PM  Show Profile  Visit Almar's Homepage  Send Almar an ICQ Message  Reply with Quote
quote:
Originally posted by EACam

I downloaded the VB InLine ASM add-in for VB 6.0. I desperately need to take advantage of ASM's speed, so I tried to compile app with the add-in linked to the compiler. If said I need some Assembler exe (an option that I apparently hadn't set). Um...I don't know what this assembler is and where I can get it...becuase ml.exe doesn't exist on my computer (that seemed to be the name of the executable it wanted).

Thanks.



http://www.persistentrealities.com/vbfibre/index.php?category=0&item=5&t=asm

hmm, but it seems I haven't mentioned a download link to MASM... do a quick google for it :)

here:

http://www.masm32.com/


Edited by - Almar on May 06 2004 12:24:21 PM
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 06 2004 :  1:30:38 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
You should probably download the files from the original source. For the assmbly add-in, it is a modification to John Chamberlain's compile controller. His website doesn't exist anymore and he's stopped answering emails unfortunately. Someone did upload his original plug-in to planetsourcecode, but that website tookout all of the examples, so what you get from that website isn't the complete package and is missing documentation. You can find likes to both the modified compiler controller addin and samples for the modifcation by looking in the Tools section here at vbgamer. For Microsoft's assembly compiler, you can get it by downloading their processor pack for visual studio 6. The processor pack allows visual C++ to compiler for processors other than the Pentium Pro, such as for AMD 3DNow! and Penitum MMX, SSE, etc. extensions. It also contains sample source code from AMD on how to do optimized vector, matrix and quaternion mathematics.
Go to Top of Page

Almar
Moderator

Netherlands
192 Posts

Posted - May 06 2004 :  1:59:30 PM  Show Profile  Visit Almar's Homepage  Send Almar an ICQ Message  Reply with Quote
quote:
Originally posted by Eric Coleman

You should probably download the files from the original source. For the assmbly add-in, it is a modification to John Chamberlain's compile controller. His website doesn't exist anymore and he's stopped answering emails unfortunately. Someone did upload his original plug-in to planetsourcecode, but that website tookout all of the examples, so what you get from that website isn't the complete package and is missing documentation. You can find likes to both the modified compiler controller addin and samples for the modifcation by looking in the Tools section here at vbgamer. For Microsoft's assembly compiler, you can get it by downloading their processor pack for visual studio 6. The processor pack allows visual C++ to compiler for processors other than the Pentium Pro, such as for AMD 3DNow! and Penitum MMX, SSE, etc. extensions. It also contains sample source code from AMD on how to do optimized vector, matrix and quaternion mathematics.




Al those files are mirrored on the files section of Vb fibre
Go to Top of Page

Spodi
Warrior

USA
142 Posts

Posted - May 06 2004 :  6:01:29 PM  Show Profile  Visit Spodi's Homepage  Send Spodi an AOL message  Click to see Spodi's MSN Messenger address  Send Spodi a Yahoo! Message  Reply with Quote
Too bad ASM is hella cornfoosin!

vbGORE
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 06 2004 :  6:11:01 PM  Show Profile  Reply with Quote
I'm forced to agree! If it's already kinda hard to learn C++ imagine the brain one must have to properly understand ASM... I think he must be some kind of a genius or have nothing more stored on his memory...

...I mean, his "brainal" merory, not his RAM...

...wait I think it also takes a lot of RAM to document ASM too, right?...

Whatever. Who knows...
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 06 2004 :  8:10:59 PM  Show Profile  Reply with Quote
How much faster could a method be using ASM anyway


Edited by - Sr. Guapo on May 06 2004 8:11:46 PM
Go to Top of Page

cjb0087
Knave

Australia
76 Posts

Posted - May 07 2004 :  02:27:12 AM  Show Profile  Visit cjb0087's Homepage  Reply with Quote
c++ and asm arn't really that difficult, the advanced stuff in c++ link templates are sorta hard.

its just difficult to find out how to do stuff in it

www.bugsplat.tk
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 07 2004 :  10:14:08 AM  Show Profile  Reply with Quote
So there's something that is hard... But I'm trying to learn C++ anyway...

Whatever. Who knows...
Go to Top of Page

Almar
Moderator

Netherlands
192 Posts

Posted - May 07 2004 :  12:32:47 PM  Show Profile  Visit Almar's Homepage  Send Almar an ICQ Message  Reply with Quote
I learned ASM because I think it's easier than C++. I mean.. you know all your Soin /Cos/ + - stuff? Well, ASM it's just words.

mov eax, 10;
add eax, 20;
dec eax;
mov ecx, 15;
add ecx, eax;

would be in VB
dim eax as integer, ecx as integer
eax= 10
eax = eax + 20
eax = eax -1
ecx = 15
ecx = eax + ecx

well, easy isn't it? :)
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 07 2004 :  2:05:46 PM  Show Profile  Reply with Quote
Hum, I guess that is... but this is far simple... What if I want to communicate with DX for example?

Just another thing: Why are ASM variables called like eax, ebx, ecx etc. ?

Whatever. Who knows...
Go to Top of Page

Almar
Moderator

Netherlands
192 Posts

Posted - May 07 2004 :  3:35:10 PM  Show Profile  Visit Almar's Homepage  Send Almar an ICQ Message  Reply with Quote
quote:
Originally posted by VBBR

Hum, I guess that is... but this is far simple... What if I want to communicate with DX for example?

Just another thing: Why are ASM variables called like eax, ebx, ecx etc. ?



Those are registers.. read up on those :) ASM is quite easy.. just check out the stuff @ vbfibre.

You could use ASM to do complex matrix multiplication operations for example :)
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 07 2004 :  10:51:54 PM  Show Profile  Reply with Quote
From what I understand, assembly is about as close to machine code as you can get, right? ANyway, I looked at one of the tutorials... It confused me for a long time, but once you start toi understand, it becomes easier. All I can say is, it's a lot more complicated than higher level languages (like VB)
Go to Top of Page

cjb0087
Knave

Australia
76 Posts

Posted - May 08 2004 :  01:26:11 AM  Show Profile  Visit cjb0087's Homepage  Reply with Quote
mov eax, 10;
add eax, 20;
dec eax;
mov ecx, 15;
add ecx, eax;


would be in C++
int eax =10 ,ecx =15;
eax += 20;
eax--;
ecx+=eax;

less lines of code :D

yeah ASM is as close to machine code as possable, but then who would want to write that as
010101000111010010101010101001010010
101111010011010101010101101010101001
101010010011010100001010011001010101
010010101010101010101011111000011010 ?

(the lines breaks are so it dosnt extend the table)

www.bugsplat.tk
Go to Top of Page

Almar
Moderator

Netherlands
192 Posts

Posted - May 08 2004 :  03:11:52 AM  Show Profile  Visit Almar's Homepage  Send Almar an ICQ Message  Reply with Quote
quote:
Originally posted by cjb0087

mov eax, 10;
add eax, 20;
dec eax;
mov ecx, 15;
add ecx, eax;


would be in C++
int eax =10 ,ecx =15;
eax += 20;
eax--;
ecx+=eax;

less lines of code :D

yeah ASM is as close to machine code as possable, but then who would want to write that as
010101000111010010101010101001010010
101111010011010101010101101010101001
101010010011010100001010011001010101
010010101010101010101011111000011010 ?

(the lines breaks are so it dosnt extend the table)



Lines of code doesn't say a thing. If so, Javascript will own your C code, here:
<script language="javascript">var eax = 10; var ecx = 20; eax+=20; eax--;ecx+=eax; alert("Result: " + eax);</script>
Go to Top of Page

cjb0087
Knave

Australia
76 Posts

Posted - May 08 2004 :  06:33:25 AM  Show Profile  Visit cjb0087's Homepage  Reply with Quote
i know it dosnt mean a thing, anyway isnt that 6 lines opposed to 4?

www.bugsplat.tk
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.16 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.