Search found 1322 matches

by dafhi
Jun 04, 2005 10:37
Forum: Beginners
Topic: asm crashes
Replies: 4
Views: 3532

ah ... okay, i think. i'm a vb-er and saw this example but [Function] instead of [AddFive] was used. Took me at least 15 minutes to figure that one out. Anyway, I'll have a look. Thanks.
by dafhi
Jun 04, 2005 10:26
Forum: Beginners
Topic: asm crashes
Replies: 4
Views: 3532

asm crashes

Code: Select all

FUNCTION AddFive(num AS INTEGER) AS INTEGER
ASM
    mov eax, [num]
    add eax, 5
    mov [AddFive], eax
END ASM
END FUNCTION

DIM i AS INTEGER = 4

PRINT "4 + 5 = "; AddFive(i)

sleep

Go to advanced search