Day 3 Flashcards

1
Q

What instructions has the form ra, rb, c2?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What instructions has the form ra, rc?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What instructions has the form ra,rb,rc?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • What form does the next instructions have:*
  • shr,shra,shl,shc*
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

non,stop instruction are of which form?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly