Skip to content

Instantly share code, notes, and snippets.

@nixeagle
Created July 22, 2010 04:40
Show Gist options
  • Save nixeagle/485577 to your computer and use it in GitHub Desktop.
Save nixeagle/485577 to your computer and use it in GitHub Desktop.
(hexize (asm (:x86oid)
(add :al :bl)
(add :ax :bx)
(add :eax :ebx)
(add :al #x30)
(add (make-displacement #x50) :al)
(add :al (make-displacement #x50))
(add (make-indirect-base :si :bp) :bx)
(add :eax (make-indirect-base :si :bp))
(lodsb)
(lodsw)
(int #x80)
(push :si)))
;;=> "00 C3 | 01 C3 | 66 01 C3 | 04 30 | 00 06 | 02 06 | 01 1C | 66 03 04 | AC | AD | CD 80 | 56"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment