| <<< Logical expressions | Index | Logical expression example 2 >>> |
# Pseudocode:
# c = ( a < b ) || ( ( a + b ) == 10 )
# Register mappings:
# a: t0
# b: t1
# c: t2
add $t3, $t0, $t1 # tmp = a+b
li $t4, 10 # tmp = tmp == 10
seq $t3, $t3, $t4
slt $t2, $t0, $t1 # c = a < b
or $t2, $t2, $t3 # c = c | tmp
| <<< Logical expressions | Index | Logical expression example 2 >>> |