Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#3

Re: Komischer ASM Code

  Alt 10. Okt 2003, 13:06
Ja, soweit war ich auch schon. Inzwischen habe ich rausgefunden, dass das wohl Makros sind, die mit einem Punkt anfangen. Aus der Hilfe zu MASM:
Zitat:
MASM High Level Syntax

In conjunction with the "invoke" syntax, MASM has a set of built in pseudo high level macros for value comparison and loop construction. While many have passed comments about the lack of low level code by using such built in macros, generally they cannot construct normal windows message handling procedures with anything like the same complexity and reliability without them.

The .IF syntax can be nested in the normal manner which makes the "switch block" style of WndProc message handling procedures possible. The alternative using "cmp reg, var", "jne label" produces nightmares in terms of tracking the number of jumps and labels needed and it does not perform any better or asemble any smaller.

The choice where complex conditional testing is required is between reliable fast code and unreadable and unfixable code, most eventually take the choice of doing this type of testing in a reliable and fast manner so that the difficult work in terms of speed and capacity can be done in a reasonably timescale.

.IF
.REPEAT
.WHILE
.BREAK
.CONTINUE
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat