Skip to content

Commit

Permalink
Added opcdes in order to pass args
Browse files Browse the repository at this point in the history
  • Loading branch information
showstopper committed Aug 30, 2009
1 parent 37e06be commit e561524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x86-32/OpCodes.ooc
Expand Up @@ -6,6 +6,8 @@ PUSH_EBP := static const new BinarySeq(1, [0x55 as UChar])
PUSH_BYTE := static const new BinarySeq(1, [0x6a as UChar])
PUSH_WORD := static const new BinarySeq(2, [0x66 as UChar, 0x68])
PUSH_DWORD := static const new BinarySeq(1, [0x68 as UChar])
PUSHW_EBP_VAL := static const new BinarySeq(3, [0x66 as UChar, 0xff, 0x75])
PUSHDW_EBP_VAL := static const new BinarySeq(2, [0xff as UChar, 0x75])
MOV_EBP_ESP := static const new BinarySeq(2, [0x89 as UChar, 0xe5])
MOV_EBX_ADDRESS := static const new BinarySeq(1, [0xbb as UChar])
MOV_EBX_EBP_PLUS_8 := static const new BinarySeq(3, [0x8b as UChar, 0x5d, 0x08])
Expand All @@ -15,7 +17,6 @@ CALL_ADDRESS := static const new BinarySeq(1, [0xe8 as UChar])
CALL_EBX := static const new BinarySeq(2, [0xff as UChar, 0xd3])
LEAVE := static const new BinarySeq(1, [0xc9 as UChar])
RET := static const new BinarySeq(1, [0xc3 as UChar])
TEST := static const new BinarySeq(1, [0x12 as UChar])

push: static func <T> (bseq: BinarySeq, arg: T) -> BinarySeq {
size := T size
Expand Down

0 comments on commit e561524

Please sign in to comment.