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

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
EACam Posted - May 05 2004 : 7:14:43 PM
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.
15   L A T E S T    R E P L I E S    (Newest First)
Almar Posted - May 13 2004 : 12:58:10 PM
Files section of VB Fibre

Get it there, bottom link :)
EACam Posted - May 12 2004 : 6:34:41 PM
Yes...I have it loaded, it's linked to the compiler and everything. I've even checked and it IS calling the function. It ISN'T returning a meaningful value (I always get 0) which probably means it's having errors.
Eric Coleman Posted - May 12 2004 : 5:58:57 PM
In VB 5 or 6, go to the Add-Ins menu, then go to Add-In Manager and make sure the add-in is loaded. You can either load it manually there or make it load automatically when vb starts.
EACam Posted - May 12 2004 : 2:48:18 PM
That'd be nice.
Almar Posted - May 12 2004 : 11:25:21 AM
yup. I guess I'll should put up an example project so people can check if the add in works, or doesn't :)
Sr. Guapo Posted - May 11 2004 : 10:26:17 PM
You should be able to call the function like you normally would in straight VB, but the add in thingee should do all the ASM code (assumming the dll is all set up/registered/whatever)
EACam Posted - May 11 2004 : 7:55:47 PM
what do you mean...call the ASM function? I've copied the distance function from your site (directed to Almar). I guess that was a joke...oops.
VBBR Posted - May 10 2004 : 5:04:40 PM
Is the addin really activated? Because if it isn't then the VB compiler won't see any errors as all of the ASM code is commented...
Almar Posted - May 10 2004 : 3:38:17 PM
Call the asm function?
EACam Posted - May 10 2004 : 3:33:52 PM
Well, I downloaded that thing, linked the VB InLine ASM add-in to ML.EXE, and now when I compile, i don't get any errors (i think) but none of the ASM functions work.

I don't know what could be the problem...is there anything else I need to do?
cjb0087 Posted - May 08 2004 : 06:33:25 AM
i know it dosnt mean a thing, anyway isnt that 6 lines opposed to 4?
Almar Posted - May 08 2004 : 03:11:52 AM
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>
cjb0087 Posted - May 08 2004 : 01:26:11 AM
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)
Sr. Guapo Posted - May 07 2004 : 10:51:54 PM
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)
Almar Posted - May 07 2004 : 3:35:10 PM
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 :)

VBGamer © Go To Top Of Page
This page was generated in 0.17 seconds. Snitz Forums 2000

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