|
-
Oct 11th, 2006, 12:12 AM
#1
Thread Starter
New Member
im stuck getting werid error msg,
im getting this error msg.. dunno wat to do...
Linking...
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
C:\Documents and Settings\Racer\Desktop\temp\hw1.1\Debug\hw1.1.exe : fatal error LNK1120: 1 unresolved externals
hw1.1 - 2 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Im suppose to do a inverse of x into y, then sum all the number in y, and put result into z, if anyone know my 2 errors, that be great too, thanks
Code:
include irvine32.inc
.data
X SDWORD -3000, -2000, -1000, 0, 1000, 2000, 3000
Y SDWORD 7 DUP (?)
Z SDWORD ?
.code
begin:
lea eax,x
lea ebx,y
lea edx,z
mov ecx,7
next:
;pushing x into a stack
push [eax]
add eax,4
;pop the stack and store to y
pop [ebx]
add ebx,4
loop next
mov ecx,7
;sum all
next1:
add ebx,4
loop next1
;stores into z
mov edx,ebx
end
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|