A short introduction to the x86 instruction set encoding
penberg.blogspot.com
penberg.blogspot.com
Here's a Ruby library I wrote 3 years ago, which we used to bootstrap a cross-platform debugger for reversing work:
http://github.com/tduehr/ragweed/blob/master/lib/ragweed/ras...
I think Zed Shaw pointed this out last year, and I second it: pulling assembly into a scripting language is (a) not very hard and (b) incredibly powerful.
Indeed.