» Home » VB Fibre
Site
News
Files

Visual Basic
Strings
Math
General
Properties
Memory
Methods

Search
Testing

Inline ASM-VB
Strings
Math
General
Memory

Search
Using inline ASM
Submit!

SinCos instruction vs VB Sin and Cos (22-02-2004)
With ASM the instruction fSinCos is available. It calculates both Sin and Cos for the same argument.
Often you use Sin and Cos with the same angle (in radians).

GetDistance function in asm (22-02-2004)
This function will calculate the distance between two given points in 2D.

Bitshifting with inline ASM (27-02-2004)
With bitshifting you can shift bits left or right, effectively multiplying or dividing the number by two.

Average array, ASM vs VB (24-03-2004)
This code will simply average the numbers in an array, and return the integer result (no floating points yet ;-)

asmDotProduct vs. vbDotProduct (24-03-2004)
The DotProduct is often used in games where vector math is involved :).

Sqr() vs. ASM fsqrt (25-04-2004)
This is a small snippet which I received from Alex Spurling. It calculates the square root from the given number. The result is similar to VB's sqr() function.

Sqr() vs. Self made ASM Squareroot (25-04-2004)
Another snipper which I received from Alex Spurling. This code calculates the approximate squareroot of the given value (single) Simply call the function like: