Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Yritys 3:
- -----------------
- LOAD R4, =x
- ADD R4, =y
- STORE R4, y
- LOAD R4, =x
- ADD R4, =4
- STore R4, x
- LOAD R4, =20
- STORE R4, res
- PUSH SP, =x
- PUSH SP, =y
- PUSH SP, =res
- CALL SP, F
- POP SP, R4
- STORE R4, res
- Yritys 2:
- ------------------
- LOAD R4, =x
- ADD R4, =4
- PUSH SP, R4
- LOAD R4, =x
- ADD R4, =y
- PUSH SP, R4
- LOAD R4, =20
- STORE R4, res
- PUSH SP, =res
- CALL SP, F
- POP SP, R4
- STORE R4, res
- Yritys 1:
- -------------------
- LOAD R4, =x
- ADD R4, =4
- STORE R4, res
- PUSH SP, =res
- LOAD R4, =x
- ADD R4, =y
- STORE R4, res
- PUSH SP, =res
- LOAD R4, =20
- STORE R4, res
- PUSH SP, =res
- CALL SP, F
- POP SP, R4
- STORE R4, res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement