![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4
![]() |
yet another masm compilation error
whats wrong in he followin lines.
ja Label401061 cmp eax , 0C000008Dh jb Label401080 Label401025:; < line 43 mov esi , 01h Label40102a :: mov dword ptr [ esp ] , 08h xor eax , eax mov dword ptr [ esp + 4 ] , eax call Fun4163b0 kaillerasrv.txt(43) : error A2108: use of register assumed to ERROR kaillerasrv.txt(46) : error A2108: use of register assumed to ERROR Thanks in advance
__________________
Spread your wings and fly! Chicken! |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
I may be wrong, but in the assemblers I've used, labels are defined as follows:
.MyLabel |
|
|
|
|
|
#3 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Many assemblers also use the
Label: approach. Not seeing line numbers isn't a huge help to potential respondents. Have you actually checked your documentation to see what A2108 has to say about itself? EDIT: Ahhhh, my curiosity is going to kill either me or my cat. Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4
![]() |
hehe...It better be your cat DaWei
![]() How do i fix it?? I tried ASSUME register:NOTHING with all the registers and it doesnot work ![]() *masm detects .MyLabel as being a syntax error.
__________________
Spread your wings and fly! Chicken! |
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I'm not really up to speed on this, rsnd. Why don't you zip your file and attach it to a post (or, post it directly if it's not too large). I'll clobber the cat with it and see what meows. If Lostcauz happens to peep in, his crystal ball will handle it, no doubt.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 4
![]() |
The crystal ball tells me the code in question is missing the .code section.
![]()
__________________
-- lostcauz Stepped in what?... Behind whose barn?... I didn't even know they had a cow! |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Jun 2005
Posts: 86
Rep Power: 4
![]() |
Try:
mov esi , 00000001h instead of: mov esi , 01h and also: mov dword ptr [ esp ] , 00000008h instead of: mov dword ptr [ esp ] , 08h |
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
LOL. Some balls, Randy.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#9 | |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4
![]() |
Quote:
anyways...the mesage is...never use non-commercial decompilers. NOW!!! What processor mode do I need for the insturction "fucomip" to work? This is driving me nutz.
__________________
Spread your wings and fly! Chicken! |
|
|
|
|
|
|
#10 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
"fucomip" -- maybe it depends on how you pronounce that....
![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|