03-05-2006, 03:00 PM
Do the following code snippets violate Rule 2.1?
1. macro encapsulation:
#pragma asm
MOV A,B
....
....
#pragma endasm
2.function call
asm(\"CLI\");
or
move(\"MOV A,B\");
Also statements like
asm{ \"CLI\" };
seem to be compiler specific.
What are the other possible ways of violating this rule (compiler specific/not specific).
Also, please can you give examples where the rule is not violated.
1. macro encapsulation:
#pragma asm
MOV A,B
....
....
#pragma endasm
2.function call
asm(\"CLI\");
or
move(\"MOV A,B\");
Also statements like
asm{ \"CLI\" };
seem to be compiler specific.
What are the other possible ways of violating this rule (compiler specific/not specific).
Also, please can you give examples where the rule is not violated.
<t></t>