News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Unicode string

Started by Magnum, December 10, 2011, 11:24:33 PM

Previous topic - Next topic

Magnum

This is a part of Gunner's code that creates a unistring.

I want to make it print out 'B','E', instead of the letters surrrounded by double quotes.

I think this is the section to change.


@@:
    mov     al, byte ptr [esi]
    inc     esi
    cmp     al, 00H
    je      Done     
    mov byte ptr [edi],'"'
    inc edi
    mov     byte ptr [edi], al
    inc     edi
    mov byte ptr [edi],'"'
    inc edi
    mov byte ptr [edi],','
    inc edi
    jmp     @B

Have a great day,
                         Andy

Gunner

Have you tried changing and see what happens?
You could do 1 of 2 things:
    mov byte ptr [edi], 27H
or

    mov byte ptr [edi], "'"
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

Magnum

I tried the second one already, will try the first.
Have a great day,
                         Andy