add x86 push_word method
git-svn-id: file:///home/svn/framework3/trunk@5932 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f6464e7116
commit
a35a9b7bdb
|
@ -161,6 +161,13 @@ module X86
|
|||
raise ::ArgumentError, "Can only take signed byte values!", caller()
|
||||
end
|
||||
|
||||
#
|
||||
# This method generates a push word instruction.
|
||||
#
|
||||
def self.push_word(val)
|
||||
return "\x66\x68" + [ val ].pack('v')
|
||||
end
|
||||
|
||||
#
|
||||
# This method generates a push dword instruction.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue