Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

100 lines (99 sloc) 2.792 kb
(DATA a)
(FUNCTION addThem [(int d) (int e)]
(BB 0
(OPER 7 Push [] [(m EBP)])
(OPER 8 Mov [(m EBP)] [(m ESP)])
(OPER 9 Load [(r 1)] [(m ESP)(i 8)])
(OPER 10 Load [(r 2)] [(m ESP)(i 12)])
)
(BB 1
(OPER 13 Mov [(r 4)] [(r 1)])
(OPER 4 Add_I [(r 4)] [(r 4)(r 2)])
(OPER 5 Mov [(r 3)] [(r 4)])
(OPER 6 Mov [(m EAX)] [(r 3)])
)
(BB 2
(OPER 11 Mov [(m ESP)] [(m EBP)])
(OPER 12 Pop [(m EBP)] [])
(OPER 3 Return [] [(m EAX)])
)
)
(FUNCTION main []
(BB 0
(OPER 42 Push [] [(m EBP)])
(OPER 43 Mov [(m EBP)] [(m ESP)])
)
(BB 1
(OPER 4 Mov [(r 1)] [(i 5)])
)
(BB 6
(OPER 46 Cmp [(m Flags)] [(r 1)(i 5)])
(OPER 47 BEQ [] [(bb 4)(m Flags)])
)
(BB 3
(OPER 7 Load [(r 7)] [(s a)])
(OPER 8 Mov [(r 7)] [(i 3)])
(OPER 9 Store [] [(r 7)(s a)])
)
(BB 5
(OPER 14 Mov [(r 3)] [(i 0)])
(OPER 15 Mov [(r 5)] [(i 1)])
)
(BB 9
(OPER 48 Cmp [(m Flags)] [(r 5)(i 8)])
(OPER 49 BLE [] [(bb 8)(m Flags)])
)
(BB 7
(OPER 50 Mov [(r 10)] [(r 3)])
(OPER 18 Add_I [(r 10)] [(r 10)(r 5)])
(OPER 19 Mov [(r 3)] [(r 10)])
(OPER 51 Mov [(r 11)] [(r 5)])
(OPER 20 Add_I [(r 11)] [(r 11)(i 1)])
(OPER 21 Mov [(r 5)] [(r 11)])
(OPER 22 Jmp [] [(bb 9)])
)
(BB 8
(OPER 52 Mov [(m EDX)] [(i 0)])
(OPER 53 Mov [(m EAX)] [(r 3)])
(OPER 54 Mov [(r 22)] [(i 3)])
(OPER 23 Div [(m EAX)(m EDX)] [(m EAX)(r 22)(m EDX)])
(OPER 55 Mov [(r 12)] [(m EAX)])
(OPER 24 Mov [(r 4)] [(r 12)])
(OPER 56 Mov [(m EAX)] [(r 4)])
(OPER 57 Mov [(r 23)] [(i 4)])
(OPER 25 Mul [(m EAX)(m EDX)] [(m EAX)(r 23)])
(OPER 58 Mov [(r 13)] [(m EAX)])
(OPER 26 Mov [(r 3)] [(r 13)])
(OPER 27 Push [] [(r 1)])
(OPER 29 Load [(r 14)] [(s a)])
(OPER 28 Push [] [(r 14)])
(OPER 30 JSR [] [(s addThem)])
(OPER 59 Add_I [(m ESP)] [(m ESP)(i 8)])
(OPER 31 Mov [(r 15)] [(m EAX)])
(OPER 32 Mov [(r 2)] [(r 15)])
(OPER 60 Mov [(r 16)] [(r 2)])
(OPER 34 Add_I [(r 16)] [(r 16)(r 3)])
(OPER 61 Mov [(r 17)] [(r 16)])
(OPER 35 Add_I [(r 17)] [(r 17)(i 48)])
(OPER 33 Push [] [(r 17)])
(OPER 36 JSR [] [(s putchar)])
(OPER 62 Add_I [(m ESP)] [(m ESP)(i 4)])
(OPER 37 Mov [(r 18)] [(m EAX)])
(OPER 38 Push [] [(i 10)])
(OPER 39 JSR [] [(s putchar)])
(OPER 63 Add_I [(m ESP)] [(m ESP)(i 4)])
(OPER 40 Mov [(r 19)] [(m EAX)])
(OPER 41 Mov [(m EAX)] [(r 0)])
)
(BB 2
(OPER 44 Mov [(m ESP)] [(m EBP)])
(OPER 45 Pop [(m EBP)] [])
(OPER 3 Return [] [(m EAX)])
)
(BB 4
(OPER 10 Load [(r 8)] [(s a)])
(OPER 11 Mov [(r 8)] [(i 4)])
(OPER 12 Store [] [(r 8)(s a)])
(OPER 13 Jmp [] [(bb 5)])
)
)
Jump to Line
Something went wrong with that request. Please try again.