News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

WARNING: CONFUSION A MUST

Started by Evan, December 02, 2013, 04:36:06 AM

Previous topic - Next topic

dedndave

here's another version
i added 5 more lines of code to show each step of the loop

dedndave

in both of those, i used BYTE values for yallin and yallout

in 32-bit code, 32-bit values are often easier to work with (and sometimes faster)
in this version, i made everything DWORD's

dedndave

in the above programs, we loaded yallin into EDX
we can compare a register value with another register value

we can also compare a register value directly with a memory value
we cannot compare a memory value directly with another memory value
    cmp     yallin,yallout
will not work

(it can be done with string instructions, but let's keep things simple)