Answer the question
In order to leave comments, you need to log in
I don't understand why the label doesn't work as masm32 needs?
.486
.model flat, stdcall
option casemap :none ;
include \masm32\include\windows.inc
include \masm32\include\masm32.inc
include \masm32\include\kernel32.inc
include \masm32\macros\macros.asm includelib
\masm32\lib\masm32.lib
includelib \masm32\lib\kernel32.lib
.data
i db "T ro Ps",0
j db ?
pr dd 20h
zero dd 0
.code
start:
xor ecx,ecx
mov eax,offset i
mov ebx,zero
next:cmp eax,pr
jne nextEl; if the space is equal to an element of the line, then it should go to the next line, and
; jumps anyway to label nextEl
add ebx,1
cmp ebx,1
jg delElement
jmp nextEl
nextEl:
mov eax,[eax+1]
jmp next
delElement:
cmp eax,pr
jne mover
mov eax,[eax+1]
mover:
mov edx,eax
mov eax,[eax+1]
end start
Answer the question
In order to leave comments, you need to log in
mov eax,offset i mov ebx,zero next:cmp eax,pr jne nextEl; если пробел равен элементу строки то должно перейти на следующую строку
mov eax,offset i
mov ebx,zero
next:cmp byte ptr [eax], 20h
jne nextEl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question