Someone told me that I need to change this algorithmn to work on bytes
instead of as a word. I don't know where to start. I want it to calculate
the string value at runtime and compare it to a stored value.

Andrew Kennedy
To respond by email remove the LOG from the address.

DETA_it db "Andrew Kennedy 1/31/04" ; string value = 1325h

xor cx,cx
mov cx, 23 ; count = string bytes / 2
mov si, offset ; address of start-of-strings
xor ax, ax
xor ax,
inc si
inc si
dec cx
jnz more
cmp ax, 1325h ; previously calc'd value of string
Posted on 2004-02-03 08:56:08 by skywalker