Pseudo instruksi not merubah tiap-tiap bit yang ada di register. Jika 1 dirubah menjadi 0, dan jika 0 dirubah menjadi 1.
not d,s # load register d with the
# bitwise not of register s
# (pseudoinstruction)
Itu adalah pseudo instruksi. Assembler menerjemahkan ke dalam sebuah instruksi basic assembly, yaitu nor instruction. Operasi nor dijelaskan pada tabel di bawah ini. Nor artinya me not kan dua buah bit yang telah di or kan terlebih dahulu. Instruksi nor menggunakan dua buah register sebagai operand dan menuliskan hasilnya ke register destinasi.
nor d,s,t # $d <— bitwise NOR $s with $t.
# (basic instruction)
| NOR Operation on Bits | |||||
|---|---|---|---|---|---|
| first operand | 0 | 0 | 1 | 1 | |
| second operand | 0 | 1 | 0 | 1 | |
| | |||||
| OR | 0 | 1 | 1 | 1 | |
| not OR | 1 | 0 | 0 | 0 | |
QUESTION 2:
terjemahkan instruksi berikut ini
not $s1,$t5
menjadi instruksi nor
nor , ,