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.

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.