reading a BYTE as a DWORD in Masm
Posted
by Help I'm in college
on Stack Overflow
See other posts from Stack Overflow
or by Help I'm in college
Published on 2010-03-12T23:45:33Z
Indexed on
2010/03/12
23:47 UTC
Read the original article
Hit count: 503
Hi, once again I'm doing MASM programming. I'm trying to write a procedure using the Irvine32 library where the user enters a string which is put into an array of BYTEs with ReadString. Then it loops over that arrray and determines if each character is a number. However, when I try
cmp [buffer + ecx], 30h
MASM complains about comparing two things that are not the same size. Is there anyway I could read the ASCII code in each BYTE in the array as a DWORD (or otherwise extract the ASCII value in each BYTE)?
© Stack Overflow or respective owner