Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question

Sign extension

  • same number, more bits
  • Replicate [...] to the left
  • RISC-V:
    • lb (load byte): sign-extend loaded byte (byte interpreted as 2's-complement)
    • lbu (load byte unsigned): zero-extend loaded byte
    • addi (add immediate): sign-extend 12-bit immediate (immediate interpreted as 2's complement)
Answer
sign bit

Question

Sign extension

  • same number, more bits
  • Replicate [...] to the left
  • RISC-V:
    • lb (load byte): sign-extend loaded byte (byte interpreted as 2's-complement)
    • lbu (load byte unsigned): zero-extend loaded byte
    • addi (add immediate): sign-extend 12-bit immediate (immediate interpreted as 2's complement)
Answer
?

Question

Sign extension

  • same number, more bits
  • Replicate [...] to the left
  • RISC-V:
    • lb (load byte): sign-extend loaded byte (byte interpreted as 2's-complement)
    • lbu (load byte unsigned): zero-extend loaded byte
    • addi (add immediate): sign-extend 12-bit immediate (immediate interpreted as 2's complement)
Answer
sign bit
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
Sign extension same number, more bits Replicate sign bit to the left RISC-V: lb (load byte): sign-extend loaded byte (byte interpreted as 2's-complement) lbu (load byte unsigned): zero-extend loaded byte addi (add immediate): sign-extend 12-b

Original toplevel document (pdf)

owner: pavestonelaboringuntitled - (no access) - 04 Instructions-language of the computer.pdf, p26

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.