The following is an 8051 instruction: CJNE A, # 'Q' ,AHEAD a) what is the opcode for this instruction? b) how many bytes long is this instruction? c) explain the purpose of each byte of this instruction. d) how many machine cycles are required to execute this instruction? e) If an 8051 is operating from a 10 MHz crystal, how longdoes this instruction take to execute?

The following is an 8051 instruction: CJNE A, # 'Q' ,AHEAD a) what is the opcode for this instruction? b) how many bytes long is this instruction? c) explain the purpose of each byte of this instruction. d) how many machine cycles are required to execute this instruction? e) If an 8051 is operating from a 10 MHz crystal, how longdoes this instruction take to execute?

Question
Other
asked 2021-04-24
The following is an 8051 instruction: CJNE A, # 'Q' ,AHEAD
a) what is the opcode for this instruction?
b) how many bytes long is this instruction?
c) explain the purpose of each byte of this instruction.
d) how many machine cycles are required to execute this instruction?
e) If an 8051 is operating from a 10 MHz crystal, how longdoes this instruction take to execute?

Answers (1)

2021-04-26
a)OPCODE OxB4
b)no.ofbytes 3
c)the first byte contains the first operand
direct data specified
the second and third byte are relative address AHEAD
0

Relevant Questions

asked 2021-02-25
We will now add support for register-memory ALU operations to the classic five-stage RISC pipeline. To offset this increase in complexity, all memory addressing will be restricted to register indirect (i.e., all addresses are simply a value held in a register; no offset or displacement may be added to the register value). For example, the register-memory instruction add x4, x5, (x1) means add the contents of register x5 to the contents of the memory location with address equal to the value in register x1 and put the sum in register x4. Register-register ALU operations are unchanged. The following items apply to the integer RISC pipeline:
a. List a rearranged order of the five traditional stages of the RISC pipeline that will support register-memory operations implemented exclusively by register indirect addressing.
b. Describe what new forwarding paths are needed for the rearranged pipeline by stating the source, destination, and information transferred on each needed new path.
c. For the reordered stages of the RISC pipeline, what new data hazards are created by this addressing mode? Give an instruction sequence illustrating each new hazard.
d. List all of the ways that the RISC pipeline with register-memory ALU operations can have a different instruction count for a given program than the original RISC pipeline. Give a pair of specific instruction sequences, one for the original pipeline and one for the rearranged pipeline, to illustrate each way.
Hint for (d): Give a pair of instruction sequences where the RISC pipeline has “more” instructions than the reg-mem architecture. Also give a pair of instruction sequences where the RISC pipeline has “fewer” instructions than the reg-mem architecture.
asked 2021-03-24
A 2.4-kg object is attached to a horizontal spring of forceconstant k=4.5 kN/m. The spring is stretched 10 cm fromequilibrium and released. Find (a) the frequency of themotion, (b) the period, (c) the amplitude, (d) the maximum speed,and (e) the maximum acceleration. (f) When does the objectfirst reach its equilibrium position? What is itsacceleration at this time?
Two identical blocks placed one on top of the other rest on africtionless horizontal air track. The lower block isattached to a spring of spring constant k= 600 N/m. Whendisplaced slightly from its equilibrium position, the systemoscillates with a frequency of 1.8 Hz. When the amplitude ofoscillation exceeds 5 cm, the upper block starts to slide relativeto the lower one. (a) What are the masses of the twoblocks? (b) What is the coefficient of static frictionbetween the two blocks?
asked 2021-05-05
The bulk density of soil is defined as the mass of dry solidsper unit bulk volume. A high bulk density implies a compact soilwith few pores. Bulk density is an important factor in influencing root development, seedling emergence, and aeration. Let X denotethe bulk density of Pima clay loam. Studies show that X is normally distributed with \(\displaystyle\mu={1.5}\) and \(\displaystyle\sigma={0.2}\frac{{g}}{{c}}{m}^{{3}}\).
(a) What is thedensity for X? Sketch a graph of the density function. Indicate onthis graph the probability that X lies between 1.1 and 1.9. Findthis probability.
(b) Find the probability that arandomly selected sample of Pima clay loam will have bulk densityless than \(\displaystyle{0.9}\frac{{g}}{{c}}{m}^{{3}}\).
(c) Would you be surprised if a randomly selected sample of this type of soil has a bulkdensity in excess of \(\displaystyle{2.0}\frac{{g}}{{c}}{m}^{{3}}\)? Explain, based on theprobability of this occurring.
(d) What point has the property that only 10% of the soil samples have bulk density this high orhigher?
(e) What is the moment generating function for X?
asked 2021-05-04

When a gas is taken from a to c along the curved path in the figure (Figure 1) , the work done by the gas is W = -40 J and the heat added to the gas is Q = -140 J . Along path abc, the work done by the gas is W = -50 J . (That is, 50 J of work is done on the gas.)
I keep on missing Part D. The answer for part D is not -150,150,-155,108,105( was close but it said not quite check calculations)
Part A
What is Q for path abc?
Express your answer to two significant figures and include the appropriate units.
Part B
f Pc=1/2Pb, what is W for path cda?
Express your answer to two significant figures and include the appropriate units.
Part C
What is Q for path cda?
Express your answer to two significant figures and include the appropriate units.
Part D
What is Ua?Uc?
Express your answer to two significant figures and include the appropriate units.
Part E
If Ud?Uc=42J, what is Q for path da?
Express your answer to two significant figures and include the appropriate units.
asked 2021-04-25
A stunt man whose mass is 70 kg swings from the end ofa 4.0 m long rope along thearc of a vertical circle. Assuming that he starts from rest whenthe rope is horizontal, find the tensions in the rope that are required to make him follow his circular path at each of the following points.
(a) at the beginning of his motion N
(b) at a height of 1.5 m above the bottom of the circular arc N
(c) at the bottom of the arc N
asked 2021-06-08
How long does it take for an investment to double in value if it is invested at \(14\%\) compounded quarterly and compounded continuously?
a) At \(14\%\) compounded quarterly, the investment doubles in how many years?
b) At \(14\%\) compounded continuously, the investment doubles in how many years?
asked 2021-05-10
Hypothetical potential energy curve for aparticle of mass m
If the particle is released from rest at position r0, its speed atposition 2r0, is most nearly
a) \(\displaystyle{\left({\frac{{{8}{U}{o}}}{{{m}}}}\right)}^{{1}}{\left\lbrace/{2}\right\rbrace}\)
b) \(\displaystyle{\left({\frac{{{6}{U}{o}}}{{{m}}}}\right)}^{{\frac{{1}}{{2}}}}\)
c) \(\displaystyle{\left({\frac{{{4}{U}{o}}}{{{m}}}}\right)}^{{\frac{{1}}{{2}}}}\)
d) \(\displaystyle{\left({\frac{{{2}{U}{o}}}{{{m}}}}\right)}^{{\frac{{1}}{{2}}}}\)
e) \(\displaystyle{\left({\frac{{{U}{o}}}{{{m}}}}\right)}^{{\frac{{1}}{{2}}}}\)
if the potential energy function is given by
\(\displaystyle{U}{\left({r}\right)}={b}{r}^{{P}}-\frac{{3}}{{2}}\rbrace+{c}\)
where b and c are constants
which of the following is an edxpression of the force on theparticle?
1) \(\displaystyle{\frac{{{3}{b}}}{{{2}}}}{\left({r}^{{-\frac{{5}}{{2}}}}\right)}\)
2) \(\displaystyle{\frac{{{3}{b}}}{{{2}}}}{\left\lbrace{3}{b}\right\rbrace}{\left\lbrace{2}\right\rbrace}{\left({r}^{{-\frac{{1}}{{2}}}}\right)}\)
3) \(\displaystyle{\frac{{{3}{b}}}{{{2}}}}{\left\lbrace{3}\right\rbrace}{\left\lbrace{2}\right\rbrace}{\left({r}^{{-\frac{{1}}{{2}}}}\right)}\)
4) \(\displaystyle{2}{b}{\left({r}^{{-\frac{{1}}{{2}}}}\right)}+{c}{r}\)
5) \(\displaystyle{\frac{{{3}{b}}}{{{2}}}}{\left\lbrace{2}{b}\right\rbrace}{\left\lbrace{5}\right\rbrace}{\left({r}^{{-\frac{{5}}{{2}}}}\right)}+{c}{r}\)
asked 2021-05-09
The dominant form of drag experienced by vehicles (bikes, cars,planes, etc.) at operating speeds is called form drag. Itincreases quadratically with velocity (essentially because theamount of air you run into increase with v and so does the amount of force you must exert on each small volume of air). Thus
\(\displaystyle{F}_{{{d}{r}{u}{g}}}={C}_{{d}}{A}{v}^{{2}}\)
where A is the cross-sectional area of the vehicle and \(\displaystyle{C}_{{d}}\) is called the coefficient of drag.
Part A:
Consider a vehicle moving with constant velocity \(\displaystyle\vec{{{v}}}\). Find the power dissipated by form drag.
Express your answer in terms of \(\displaystyle{C}_{{d}},{A},\) and speed v.
Part B:
A certain car has an engine that provides a maximum power \(\displaystyle{P}_{{0}}\). Suppose that the maximum speed of thee car, \(\displaystyle{v}_{{0}}\), is limited by a drag force proportional to the square of the speed (as in the previous part). The car engine is now modified, so that the new power \(\displaystyle{P}_{{1}}\) is 10 percent greater than the original power (\(\displaystyle{P}_{{1}}={110}\%{P}_{{0}}\)).
Assume the following:
The top speed is limited by air drag.
The magnitude of the force of air drag at these speeds is proportional to the square of the speed.
By what percentage, \(\displaystyle{\frac{{{v}_{{1}}-{v}_{{0}}}}{{{v}_{{0}}}}}\), is the top speed of the car increased?
Express the percent increase in top speed numerically to two significant figures.
asked 2021-05-05

A random sample of \( n_1 = 14 \) winter days in Denver gave a sample mean pollution index \( x_1 = 43 \).
Previous studies show that \( \sigma_1 = 19 \).
For Englewood (a suburb of Denver), a random sample of \( n_2 = 12 \) winter days gave a sample mean pollution index of \( x_2 = 37 \).
Previous studies show that \( \sigma_2 = 13 \).
Assume the pollution index is normally distributed in both Englewood and Denver.
(a) State the null and alternate hypotheses.
\( H_0:\mu_1=\mu_2.\mu_1>\mu_2 \)
\( H_0:\mu_1<\mu_2.\mu_1=\mu_2 \)
\( H_0:\mu_1=\mu_2.\mu_1<\mu_2 \)
\( H_0:\mu_1=\mu_2.\mu_1\neq\mu_2 \)
(b) What sampling distribution will you use? What assumptions are you making? NKS The Student's t. We assume that both population distributions are approximately normal with known standard deviations.
The standard normal. We assume that both population distributions are approximately normal with unknown standard deviations.
The standard normal. We assume that both population distributions are approximately normal with known standard deviations.
The Student's t. We assume that both population distributions are approximately normal with unknown standard deviations.
(c) What is the value of the sample test statistic? Compute the corresponding z or t value as appropriate.
(Test the difference \( \mu_1 - \mu_2 \). Round your answer to two decimal places.) NKS (d) Find (or estimate) the P-value. (Round your answer to four decimal places.)
(e) Based on your answers in parts (i)−(iii), will you reject or fail to reject the null hypothesis? Are the data statistically significant at level \alpha?
At the \( \alpha = 0.01 \) level, we fail to reject the null hypothesis and conclude the data are not statistically significant.
At the \( \alpha = 0.01 \) level, we reject the null hypothesis and conclude the data are statistically significant.
At the \( \alpha = 0.01 \) level, we fail to reject the null hypothesis and conclude the data are statistically significant.
At the \( \alpha = 0.01 \) level, we reject the null hypothesis and conclude the data are not statistically significant.
(f) Interpret your conclusion in the context of the application.
Reject the null hypothesis, there is insufficient evidence that there is a difference in mean pollution index for Englewood and Denver.
Reject the null hypothesis, there is sufficient evidence that there is a difference in mean pollution index for Englewood and Denver.
Fail to reject the null hypothesis, there is insufficient evidence that there is a difference in mean pollution index for Englewood and Denver.
Fail to reject the null hypothesis, there is sufficient evidence that there is a difference in mean pollution index for Englewood and Denver. (g) Find a 99% confidence interval for
\( \mu_1 - \mu_2 \).
(Round your answers to two decimal places.)
lower limit
upper limit
(h) Explain the meaning of the confidence interval in the context of the problem.
Because the interval contains only positive numbers, this indicates that at the 99% confidence level, the mean population pollution index for Englewood is greater than that of Denver.
Because the interval contains both positive and negative numbers, this indicates that at the 99% confidence level, we can not say that the mean population pollution index for Englewood is different than that of Denver.
Because the interval contains both positive and negative numbers, this indicates that at the 99% confidence level, the mean population pollution index for Englewood is greater than that of Denver.
Because the interval contains only negative numbers, this indicates that at the 99% confidence level, the mean population pollution index for Englewood is less than that of Denver.
asked 2020-11-10
Consider a hypothetical 32-bit microprocessor having32-bit instructions composed of two fields: the first byte containsthe opcode and the remainder the immediate operand or an operandaddress.
What is the maximum directly addressable memory capacity(in bytes)?
Discuss the impact on the system speed if themicroprocessor bus has:
a32-bit local address bus and a 16-bit local data bus, or
a16-bit local address bus and a 16-bit local data bus.
How many bits are needed for the program counter and the instruction register ?
...