flat assembler
Message board for the users of flat assembler.
Index
> Main > bytes in an array |
Author |
|
coconut 24 May 2005, 16:02
not sure but try something like
cmp byte [szMessage+1] ,'a' |
|||
24 May 2005, 16:02 |
|
madmatt 24 May 2005, 16:30
Or you can do something like this:
Code: mov ecx, 0; or any character wanted. mov al, [szMessage + ecx] ;get first character, position 0. ;this method allows you to loop though the characters. You did say push, so: Code: mov ecx, 2; or any character wanted mov al, [szMessage + ecx] ;get third character, position 2. push eax ;ALWAYS, push a DWORD sized value on the stack. pop eax ;restores char in AL. and also preserves AH ;this method also allows you to loop though the characters |
|||
24 May 2005, 16:30 |
|
RedGhost 24 May 2005, 18:22
coconut wrote: not sure but try something like yeah you can compare or replace them that way madmatt wrote: Or you can do something like this: thanks alot, and yeah thats exactly what i was trying to do (loop thru em) |
|||
24 May 2005, 18:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.