Inserting raw data in inline asm
Thomas Kuehne
thomas-dloop at kuehne.cn
Thu Jan 4 14:43:22 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Leopold Walkling schrieb am 2007-01-04:
> What are those "pseudo-ops" in inline asm like db, dw, dd, dl, df... for?
#
# These pseudo ops are for inserting raw data directly into the code. db
# is for bytes, ds is for 16 bit ...
#
sample: asm{inc EAX;} and asm{db 0x40;} result in the same output, because
the x86 encoding of "inc EAX" is 0x40.
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFnY7aLK5blCcjpWoRAjH+AJ9mEzCj8/h679vEEtAbQ7qU8IreIACfSRIf
EvPCKdOFMhC4wUCZ/FGCQO0=
=YE1e
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-learn
mailing list