DLX Flashcards
how many Registers does DLX have
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
Alle datentypen und wie gross die sind
byte 8, halbwort 16, wort 32, doubleword 64, bits respectively
how is empty filled when bytes and halfwords are used in the register?
unused area will simply be filled with zeros or ones depending on unsigned or signed numbers respectively,
how long are command?
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
what are I type instructions
source and destination load, store, all immediate commands, branches, rd unused, immediate ist jump address jump, rd and immediate = 0
what are R type instructions?
All Alu operations
what are J type instructions?
Jumps and Traps.
the offset is used to get to jump address,
jump and link, the return address ist stored in r31,
what does LB, LBU and ST do?
load and store bytes.
LBU R1, 100(R2) <— load Byte from R2+100 in R1
What do LH, LHU, SH do?
loads halfwords signed or unsigned and stores halfwords.
LH R3, 100(R1). loads halfword from R1 + 100 into R3
What do LW, SW do?
load and stores words.
SW R1, 100(R2). saves word from R1 to R2 + 100
what do LF, LD, SF, SD do.
load and stores floats and doubles.
LD F2, 100(R2). loads double from R2 to + 100 to F2 and F3
What do MOVI2S, and, MOVS2I, do?
transfers data between GPR (general purpose registers) and special registers
What do MOVF, MOVD, do?
transfer data between FPRs (Floating Point Register).
MOVF F3, F7. Copies F7 to F3
What do MOVFP2I, MOVI2FP, do?
MOVFP2I R1, F2.
copies F2 to R1