0

Let's say you have some code in the .data section:

doodle db "*****,3,*****"

Is there anyway to change the ,3, into something else? (Perhaps a smiley face or somesuch.)

I was thinking if I had the registers all set up, I could do something like:

~~assume there is code above~~
mov si, 0
mov al, doodle[si]
~~continue down to loop~
characterloop:
cmp doodle[si], ',3,'
jne L1
mov al, 01h
jmp othercode

Any hints or tips would greatly be appreciated.

Edited by kekekerush: n/a

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by NotNull
0

Let's say you have some code in the .data section:

doodle db "*****",3,"*****"

Is there anyway to change the ,3, into something else? (Perhaps a smiley face or somesuch.)

I was thinking if I had the registers all set up, I could do something like:

~~assume there is code above~~
mov si, 0
mov al, doodle[si]
~~continue down to loop~
characterloop:
cmp doodle[si], ',3,'
jne L1
mov al, 01h
jmp othercode

Any hints or tips would greatly be appreciated.

I want to be able to interact with the ",3," in the program if possible. Also, is the way to detect a * the same as the way to detect the ",3,"? Thank you in advance.

0

deadstag db 'aCiDI0',6,'I0AcId'
; damn six gets iNvErTeD \/
mov bx, deadstag+6
not byte [bx] ; six got changed to something ELSE

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.