flat assembler
Message board for the users of flat assembler.

Index > Heap > Most common instructions?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Bob++



Joined: 12 Feb 2013
Posts: 92
Bob++
edfed wrote:
most used?

dd of course.

and @@: also.

ho, they are not instructions... Wink

we need an instruction counter in fasm.

something like a result in console to tell the usages statistics of every intel mnemonics.

and then, make a big campain about the statistics of every instructions in any language for any processor.

it is certainly an interresting thing to do?

maybe ollydbg can still do that?



I think that a high-level language solution will not be accepted,so I leave it to the next guy. Very Happy
Post 04 Jun 2013, 22:32
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4238
Location: 2018
edfed
Code:

mov eax,[pitch]
call [eax+4]
...
pitch dd 440
.function dd @f
.name db "pitch",0
@@:
  mov eax,[pitch]
  call [sinesound] ;assumed to return carry if sound end 
  jnc @b
  mov [pitch],eax ;and to return eax = new pitch
  jne @b 
  ret
    

here, i see:
2 dd
1 db
1 @@:even if just a label, it is really usefull and take place in the assembly langage.
3 mov
2 call
2 jne
1 ret
Post 04 Jun 2013, 23:24
View user's profile Send private message Visit poster's website Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 20:14; edited 1 time in total
Post 05 Jun 2013, 00:37
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2915
Location: [RSP+8*5]
bitRAKE
HaHaAnonymous wrote:
I would use this in my code if the following was possible:
Code:
happy_code:
jmp @f
jmp @f2 or jmp @ff or jmp @@f ; "or" in this case is not the logical inclusive or, it is or - The conjunction
@@:
; more code here...
@@:
; and here
    
I'm just sharing my useless opinion.
I was thinking if had to re-engineer the syntax for this feature, something like:
Code:
    lodsd
    xchg ecx,eax
    mov eax,[rsi]
::  cdq
    push rcx
::  xchg [rsi+rcx*4],eax
    div dword [rsi]
    xchg [rsi+rcx*4],eax
    loop :<
    pop rcx
    xchg eax,edx
    stosd
    xchg eax,edx
    sub eax,2
    jg :<<    
...would be my useless opinion.

Oh, shit. I forgot to ignore you. Maybe you will ignore this post.

_________________
¯\(°_o)/¯ unlicense.org
Post 05 Jun 2013, 03:49
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:  
Goto page Previous  1, 2

< 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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.