Anúncio

a) Why are the constants 1- 2- 4- 8 considered as common constants in.docx

andyb37
3 de Feb de 2023
a) Why are the constants 1- 2- 4- 8 considered as common constants in.docx
Próximos SlideShares
C faqs interview questions placement paper 2013C faqs interview questions placement paper 2013
Carregando em ... 3
1 de 1
Anúncio

Mais conteúdo relacionado

Similar a a) Why are the constants 1- 2- 4- 8 considered as common constants in.docx(20)

Mais de andyb37(20)

Anúncio

a) Why are the constants 1- 2- 4- 8 considered as common constants in.docx

  1. a) Why are the constants 1, 2, 4, 8 considered as common constants in MSP430? b) How many assembly instructions does MSP430 have? (how many real instructions, emulated instructions, and total?) c) How many cycles do the jump instructions take to execute? (jmp, jlo, jhs, jl, jge) d) What is the range of the jump instructions? (how many bytes up or down the code can they jump?) Solution a) The constants 1,2,4,8 are considered commonly in MSP480 this is because using the "constant generator" can eliminate the extra word in the instruction. This makes the code size smaller and execution faster b)It contains 27 real instructions with 7 addressing modes and 24 emulated instructions,25 extended instructions in MSP430 c) Independent of the success jump it takes 2 cycles by all types of jump instruction in MSP430 d) The range of jump instructions is -511 to +512 and jump instructions are 4 word long. Here +indicates down the code whereas - indicates up the code
Anúncio