The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: hutch-- on April 21, 2011, 12:48:48 AM

Title: A couple of unicode conversion macros.
Post by: hutch-- on April 21, 2011, 12:48:48 AM
I thought someone may like these, I neded them for the unicode editor i am working on. I prepended "vc" to the macro names so that the names itow and ltow remained available.


    vcltow MACRO number
      LOCAL buffer
      .data?
        align 4
        buffer dw 36 dup (?)
      .code
      invoke crt__ltow,number,ADDR buffer,10
      EXITM <eax>
    ENDM

    vcitow MACRO number
      LOCAL buffer
      .data?
        align 4
        buffer dw 36 dup (?)
      .code
      invoke crt__itow,number,ADDR buffer,10
      EXITM <eax>
    ENDM