DLX Flashcards

1
Q

how many Registers does DLX have

A
32 32-bit general purpose registers
r0 -r31
32 32-bit floating point registers
f0-f31
can also use double precision in even f registers
r0 is always 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Alle datentypen und wie gross die sind

A

byte 8, halbwort 16, wort 32, doubleword 64, bits respectively

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

how is empty filled when bytes and halfwords are used in the register?

A

unused area will simply be filled with zeros or ones depending on unsigned or signed numbers respectively,

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

how long are command?

A

Opcodes 6, rs 5, rd 5, immediate 16. i instructions, Store, load,
Opcodes 6, rs1 5, rs2 5, rd 5, func 11. R instructions, ALU
Opcodes 6, PC offset 26, J type, only for jumps and traps

32 bits all together
rs register source
re register destination

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

what are I type instructions

A
source and destination
load, store, 
all immediate commands,
 branches, rd unused, immediate ist jump address
jump, rd and immediate = 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are R type instructions?

A

All Alu operations

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

what are J type instructions?

A

Jumps and Traps.
the offset is used to get to jump address,
jump and link, the return address ist stored in r31,

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

what does LB, LBU and ST do?

A

load and store bytes.

LBU R1, 100(R2) <— load Byte from R2+100 in R1

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

What do LH, LHU, SH do?

A

loads halfwords signed or unsigned and stores halfwords.

LH R3, 100(R1). loads halfword from R1 + 100 into R3

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

What do LW, SW do?

A

load and stores words.

SW R1, 100(R2). saves word from R1 to R2 + 100

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

what do LF, LD, SF, SD do.

A

load and stores floats and doubles.

LD F2, 100(R2). loads double from R2 to + 100 to F2 and F3

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

What do MOVI2S, and, MOVS2I, do?

A

transfers data between GPR (general purpose registers) and special registers

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

What do MOVF, MOVD, do?

A

transfer data between FPRs (Floating Point Register).

MOVF F3, F7. Copies F7 to F3

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

What do MOVFP2I, MOVI2FP, do?

A

MOVFP2I R1, F2.

copies F2 to R1

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