1 out of 1 rated this helpful - Rate this topic

The _emit Pseudoinstruction

The _emit pseudoinstruction is similar to the DB directive of MASM. You use _emit to define a single immediate byte at the current location in the current text segment. However, _emit can define only one byte at a time, and it can only define bytes in the text segment. It uses the same syntax as the INT instruction.

The following fragment places the given bytes into the code:

#define randasm __asm _emit 0x4A __asm _emit 0x43 __asm _emit 0x4B
 .
 .
 .
__asm {
     randasm
     }

END Microsoft Specific

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ