I need some book or tutorial how to code profesional. I do not know how to use registers with theyr special usefullnes. For me ther is no difference betwen registers.
Posted on 2003-03-20 16:13:53 by AceEmbler
Posted on 2003-03-20 16:26:13 by Domain
Use eax as a general register.
Use ecx as counter
Use edx in the usage of EDX:EAX
Use esp for data on stack
Use esi for address of string source
Use edi for address of string destination

Does this make your code professional?
Posted on 2003-03-21 06:13:11 by roticv
In principle, all registers are equal except eip and esp. However some opcodes implictly use specific registers (eg. mul, div, movs), mostly due to the processor's 8086 roots. Also windows APIs only preserve ebx/esi/edi/ebp and stackframes often use ebp.

Knowing this doesn't make you an asm professional. Even knowing every opcode and its use from the top of your head won't, the trick is to use them in a clever way with the right algorithms. That's something you'll have to learn by doing it, looking at other people's optimizations and just trying.

Thomas
Posted on 2003-03-21 13:46:01 by Thomas
Something I have extracted from the intel document
Posted on 2003-04-08 05:33:00 by roticv
I need some book or tutorial how to code profesional.
Define what you mean by "code professional". No book is going to teach you how to do that, that is a skill that can only be learnt by experience.
Posted on 2003-04-08 06:41:31 by sluggy
I just use what register you can use under a situation, although in certain cases you have to retain the Intel definition of the usage of registers, I think many programmers here will recommend that you do not in most cases, if it will benefit your program in speed, size etc.
Posted on 2003-04-08 15:05:38 by x86asm
use assembly professionally? avoid it except where necessary :)
Posted on 2003-04-08 15:07:29 by f0dder
Professional ?? just try gain some money with it ! huahahahahah
Posted on 2003-04-09 06:03:53 by Bit7
the secret is: never make any mistakes! :grin:
Posted on 2003-04-09 07:34:50 by Hiroshimator
lol the last posts sounds a lot like crusade :grin:
Posted on 2003-04-09 07:46:39 by AceEmbler