Questions: 338

Answers by our Experts: 279

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write an assembly language code fragment to implement the following loop expression,
where R0 and R1 refer to the registers R0 and R1, N is an unsigned word variable with a
value greater than zero, and R0 contains an unsigned word value.
for (R1 = 0; R1 < N; R1++)
R0 = (R0 >> 1) XOR R1 //Shift right one bit and XOR
Write an assembly language code fragment to implement the following loop expression,
where Time is a signed word variable. If you keep a copy of Time in a register, whenever
Time changes value make sure the actual value in the variable Time is updated—not just
the register copy.
Time = 20
while (Time < 150) {
Time = Time + 1
}
Write an assembly language code fragment to implement the following loop expression,
where R0 refers to the registers R0, and where MaxCount is an unsigned word variable.
repeat {
R0 = R0 + 1
} until (R0 ≥ MaxCount)
Write an assembly language code fragment to implement the following conditional
expression, where R0 and R1 refer to the registers R0 and R1, respectively.
if (R0 ≤ 0)
R0 = 0
else
R0 = R0 + R1
Write and run a 8086 Assembly language program that converts a three digit ASCII number
stored in three consecutive byte locations in the memory, into a binary number. The output
should be stored in DX register. For example, if three consecutive byte locations contain
'345' (please note they are three ASCII digits), then the DX should get binary equivalent of
decimal number 543, which is (0000 0010 0001 1111)2. This binary value will be stored in
DX register.
Write and run (using appropriate calling program) a near procedure in 8086 assembly
language, which is passed a single parameter by the calling program. The procedure checks
if the input parameter has a value zero or not. If the value of input parameter is zero then
procedure/program is terminated, otherwise a value of 1 is returned to the calling program,
which then continue to execute the remaining program. Make and state suitable assumptions,
if any
Write and run a 8086 assembly language program that finds the sum of first N natural
numbers. The value of N is input to the assembly program. The sum is stored in DX register.
Assume the value of N between 1 and 10 only
Explain the following in the context of 8086 Microprocessor :
(i) Physical address calculation using CS:IP and SS:SP pairs
(ii) Processing of software Interrupts in 8086 microprocessor
(iii)Indirect Addressing modes of 8086 microprocessor
Write a program using 8086 assembly Language (with proper comments) that finds the top
two values in an array of positive numbers stored in an array of size 10.
Write a program using 8086 assembly Language (with proper comments) that accepts a
single character input from the keyboard, if this character is '+' then the program adds two
six byte arrays stored in the memory into a third array in the memory, otherwise program
simply terminates. Make suitable assumptions, if any. (The effect of addition should be
similar to the array operation like:
for i=1 to 6 {C[i]=A[i]+B[i];} )
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS