uaveiro-leci/2ano/1semestre/ac1/aula02/ex01.asm

23 lines
277 B
NASM
Raw Normal View History

.data
.text
.globl main
.eqv val_1, 0x5C1B
.eqv val_2, 0xA3E4
.eqv val_3, 0xE543
main: # a), b)
ori $t0, $0, val_1
ori $t1, $0, val_2
and $t2, $t0, $t1
or $t3, $t0, $t1
nor $t4, $t0, $t1
xor $t5, $t0, $t1
# c)
ori $t6, $0, val_3
nor $t7, $t6, $0
jr $ra