Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Source File: asig1.asm
- # Student: Hector Diaz Pla
- # Student #: 841-09-2313
- #
- # Poner las differentes partes de el codigo maquina de la instruccion
- # addu $10, $8, $9
- # en registros diferentes y moverlos juntos a el registro $25
- # para que en el registro $25 se lea la instruccion en codigo maquina
- .text
- .globl main
- main: or $25, $0, $0 # clear $25
- ori $8, $0, 0x8 # $8 <- operand
- ori $9, $0, 0x9 # $9 <- operand2
- ori $10, $0, 0xA # $10 <- dest
- ori $11, $0, 0x21 # secondary
- sll $8, $8, 21 # shift the contents
- sll $9, $9, 16 # to the appropriate
- sll $10, $10, 11 # positions
- or $25, $25, $8 # OR the contents
- or $25, $25, $9 # together on
- or $25, $25, $10 # register $25
- or $25, $25, $11 # $25 <- $8|$9|$10|$11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement