jeudi 26 mars 2015

visual studio inline assembly emit string macro


Is there a macro for inline assembly to emit a C string as a sequence of bytes using __emit keyword?


For instance to emit "Hello", you have to write



__emit 'H'
__emit 'e'
__emit 'l'
__emit 'l'
__emit '0'
__emit 0x0


Would anybody happen to know of a macro that would instead allow one to just write EMIT_MACRO("Hello")?




Aucun commentaire:

Enregistrer un commentaire