NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: maplesirop on February 24, 2013, 02:59:49 AM
-
Like:
mov eax, 4
mov ebx, 1
mov ecx, message
mov edx, length
int 80h
mov eax, 4
mov ebx, 1
mov ecx, message2
mov edx, length2
int 80h
mov eax, 4
mov ebx, 1
mov ecx, message3
mov edx, length3
int 80h
and what about:
mov eax, 4
mov ebx, 1
mov ecx, message
mov edx, length
mov eax, 4
mov ebx, 1
mov ecx, message2
mov edx, length2
mov eax, 4
mov ebx, 1
mov ecx, message3
mov edx, length3
int 80h
-
The problem that arises or lack thereof is somewhat subjective, meaning;
1. User will see all three messages
2. Computer doesn't really care, as all your doing is overwriting contents of registers and then finally, only message3 will be displayed. So it's not a problem for computer, but probably is for operator.
-
thanks