flat assembler
Message board for the users of flat assembler.

Index > Main > What mistake you make the most in Assembly?

Author
Thread Post new topic Reply to topic
FlierMate



Joined: 21 Jan 2021
Posts: 219
FlierMate 12 Apr 2021, 15:29
I found myself starting to get confused with:

Code:
_len    dw   ?    


....and then....

Code:
mov dword [_len], ecx    


....which is wrong. Laughing

Just because of the first two alphabets "dw" look identical.

What's yours?
Post 12 Apr 2021, 15:29
View user's profile Send private message Reply with quote
idle



Joined: 06 Jan 2011
Posts: 440
Location: Ukraine
idle 12 Apr 2021, 17:04
Code:
sub eax,eax
cmovnz eax,dword[eax]
    
Post 12 Apr 2021, 17:04
View user's profile Send private message Reply with quote
sts-q



Joined: 29 Nov 2018
Posts: 57
sts-q 13 Apr 2021, 04:57
I am always confused when to push/pop regs.
caller, callee, use other reg, ???
Post 13 Apr 2021, 04:57
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4046
Location: vpcmpistri
bitRAKE 14 Apr 2021, 04:05
When using a stack frame I'll play with position of RSP and then forget I'm using RBP to reference parameters (which are no longer in the same place). It's hidden in macros so I don't feel so bad about doing it, but it wastes a trip to the debugger to remind me sometimes. (I could just fix the RSP register back to where it was, but there is no need when the frame clean-up will fix it.)

* I don't know if I do this the most - it just happened and is fresh in my mind. Razz

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 14 Apr 2021, 04:05
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4347
Location: Now
edfed 17 Apr 2021, 22:04
erase the c: disk in win98
Post 17 Apr 2021, 22:04
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.