flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Simple Conversion Routines (EAX to ASCII, Win32)

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



Joined: 28 Jan 2004
Posts: 1635
Location: Toronto, Canada
AsmGuru62 08 Jun 2013, 13:20
Wow!
FASM can interpret [REG*5] as [reg + reg*4]??!!
Very cool! Can MASM do that?
Post 08 Jun 2013, 13:20
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20357
Location: In your JS exploiting you and your system
revolution 08 Jun 2013, 15:06
AsmGuru62 wrote:
Can MASM do that?
Who cares?
Post 08 Jun 2013, 15:06
View user's profile Send private message Visit poster's website Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 09 Jun 2013, 16:55
revolution wrote:
Who cares?
Anyone could kick dead lion. Wink
Post 09 Jun 2013, 16:55
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1635
Location: Toronto, Canada
AsmGuru62 09 Jun 2013, 18:52
It is OK -- I was just asking to get some knowledge on it.
I like information!
Post 09 Jun 2013, 18:52
View user's profile Send private message Send e-mail Reply with quote
uart777



Joined: 17 Jan 2012
Posts: 369
uart777 09 Jun 2013, 18:56
revolution: You're right. We should concentrate on what needs to be optimized, consider how often it occurs and use a profiler (or cpuid+rdtsc) to determine critical sections of code. All too often, programmers try to optimize everything equally and they end up wasting time with initiation code that only occurs once or calling and general program flow. Example:
Code:
; It would be foolish to optimize this division because the
; call following it takes 100,000s of times longer

idiv ecx
call draw.complex.imagery ; < 5 million CPU cycles    
Guru: Information is like spiritual enlightenment to a programmer Smile
Post 09 Jun 2013, 18:56
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4347
Location: Now
edfed 10 Jun 2013, 09:44
just another way.
Code:
lea r32_dest,[r32_src*5]
lea r32_dest,[r32_dest*2]
    


or if only on 1 byte
Code:
aad 
    
Post 10 Jun 2013, 09:44
View user's profile Send private message Visit poster's website Reply with quote
tatatat0



Joined: 04 Aug 2016
Posts: 1
tatatat0 04 Aug 2016, 23:34
I all I want is just to be able to see my registers. Is that too much to ask? Like the level of trash talk on this forum is just toxic, its not even funny. I've read 3 threads and every single one of them had trash talk in it. Why are you attacking people over programming?Why is this even allowed on the site? Seriously, swallow your pride and just help people. ._.
Post 04 Aug 2016, 23:34
View user's profile Send private message Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 257
Trinitek 04 Aug 2016, 23:56
tatatat0 wrote:
I all I want is just to be able to see my registers. Is that too much to ask? Like the level of trash talk on this forum is just toxic, its not even funny. I've read 3 threads and every single one of them had trash talk in it. Why are you attacking people over programming?Why is this even allowed on the site? Seriously, swallow your pride and just help people. ._.
Don't let some bad apples spoil the whole bunch. Wink
Post 04 Aug 2016, 23:56
View user's profile Send private message 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 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.