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: 129
FlierMate
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 Visit poster's website Reply with quote
idle



Joined: 06 Jan 2011
Posts: 408
Location: Ukraine
idle
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: 44
sts-q
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: 3307
Location: vpcmipstrm
bitRAKE
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)/¯ unlicense.org
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: 4252
Location: Now
edfed
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.