Skip to content

Instantly share code, notes, and snippets.

@nixeagle
Created July 20, 2010 03:04
Show Gist options
  • Save nixeagle/482423 to your computer and use it in GitHub Desktop.
Save nixeagle/482423 to your computer and use it in GitHub Desktop.
;;; E means a r/m byte
;;; b means a byte regardless of operand code
;;; L means Lock prefix is valid
;;; r means r/m bit has part of the opcode
;;; d means bit 1 for direction is present
;;; w means bit 0 for operand size is present
(binop add #x00 r (d w)
(operand E b) (operand G b)
(:x L)
;; arch defaults to *default-arch* which can be set in a (let ...)
(:arch :x86)
;; instruction set if applicable.
(:set :blah)
(:groups general arithmatic binary)
(:documentation "Some documentation....")
(:cost "some assembler indication of cost, various papers I have
researched give a general idea across several different x86
brands."))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment