Day 3 Flashcards
1
Q
What instructions has the form ra, rb, c2?
A
2
Q
What instructions has the form ra, rc?
A
3
Q
What instruction has the form rb,rc, c3
and what can you say about c3?
A
The br instruction
- check the value of rc
- it it satisfies the condition in c3 jump to the address which is located in rb.
- c3 is of 3 bits. Theoretically it can hold 6 conditions since 111,110 are not useable.
4
Q
What instruction has the form ra,rb,rc,c3?
A
- brl*
- same as br but before it verfies the condition it saves the current instruction address in ra.*
5
Q
What instructions has the form ra,rb,rc?
A
6
Q
- What form does the next instructions have:*
- shr,shra,shl,shc*
A
7
Q
non,stop instruction are of which form?
A
8
Q
name all of the br instructions?
A
- brnv, brlnv - never jump*
- br,brl - always jump*
- brzr,brlzr - if R[rc] = 0*
- brnz,brlnz - if R[rc] != 0*
- brlp,brlpl - if R[rc]>=0*
- brmi,brlmi - if R[rc]<0*
9
Q
st reg1,reg2
what is the meaning of this instruction?
A
Always, the second register is the memory.
That is, M[R[reg2]]=R[Reg1]