Question

QUESTION 2 The following program is written in the assembly language of 8085 processor: LXI B, 20DF LXI H, 2B44 MOV A, C SUBB

0 0
Add a comment Improve this question Transcribed image text
Answer #1

File Examples Help Signin Enter Code here LXI B, 20DFH LXI H, 2B44H MOV A,C SUB B MOV A, L ADD H INX B DCX H HLT Compile

Output Finished compilation in 3 milli seconds

Memory Goto Addr Up 0000: 01 DF 20 21 44 2B 79 90 0008: 7D 84 03 2B 76 76 00 00 0010: 00 00 00 00 00 00 00 00 0018: 00 00 00

I hope all your doubts get clarified. Thankyou.

Add a comment
Know the answer?
Add Answer to:
QUESTION 2 The following program is written in the assembly language of 8085 processor: LXI B,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • QUESTION 1 B A. B. F E (a) (b) Figure 1 Consider the combinational logic circuits...

    QUESTION 1 B A. B. F E (a) (b) Figure 1 Consider the combinational logic circuits shown in Figure 1 (a) and Figure 1 (b). Prove that the two-logic circuit functions the same where the output expression, E equals the output expression, F; given the same inputs (A, B and C). [10 marks) QUESTION 2 The following program is written in the assembly language of 8085 processor: LXIB, 20DF LXI H, 2B44 MOVA, C SUB B MOVAL ADDH INX B...

  • write a program in x86 Processor Assembly Language that uses the variables below and only mov...

    write a program in x86 Processor Assembly Language that uses the variables below and only mov instructions to copy the value from Var1 to Var2 reversing the order of the bytes. .data Var1 DWORD 56942145h; reversing means should become 45219456h Var2 DWORD?

  • Convert the following assembly language program into a C program: *Update: The variables are initialized, in...

    Convert the following assembly language program into a C program: *Update: The variables are initialized, in lines 4 & 6 of the red assembly language code. Convert the following assembly language program into a C program: *Update: The variables are initialized, in lines 4 & 6 of the red assembly language code. include "p24Hxxxx.inc" global__reset bss: Uninitialized data section: Variables start at location 0x0800 x: .space 2: Allocating space (two bytes) to variable. y: .space 2;Allocating space (two bytes) to...

  • Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at...

    Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper 1. (5 marks) Consider the following assembly instruction STMFD r13!, (r5-6} Before executing this instruction, registers hold the following values: Register Value Register r9 Value r4 0x00400040 0x00000000 r5 r10 0x11223344 0x00800080 r6 0x55667788 r11 0x10001000 r7 0x99aabbcc r12 0x20002000 r8 exddeeff00 r13 ex40004000 What memory locations are affected after executing the above instruction? In a table, with a...

  • Machine Language 2. (4pts) Consider the following assembly language instruction which is located in a program...

    Machine Language 2. (4pts) Consider the following assembly language instruction which is located in a program you wrote: MULTIPLY contents of Register 5 with the constant 6. This instruction will store the results back into Register 5. Assume this machine instruction is part of an assembly program that is stored on your hard disk and it is the next instruction to be invoked. Explain how this instruction is processed using the machine cycle. Include hard drive, de, and registers in...

  • Question 3: ARM Processor a) What is the number of bits in a general-purpose register (e.g., R1) of the ARM Cortex-M4 processor (CPU)? b) What is the number of bits in a memory address for the ARM pr...

    Question 3: ARM Processor a) What is the number of bits in a general-purpose register (e.g., R1) of the ARM Cortex-M4 processor (CPU)? b) What is the number of bits in a memory address for the ARM processor architecture? c) What is the number of bits in an assembly instruction for the ARM Thumb-2 instruction set? d) Consider the memory map used with the TM4C123 microcontroller shown below. If the stack is in data memory, what is the initial address...

  • Step 1. Write a program in assembly language (using macros) to print out the following messages...

    Step 1. Write a program in assembly language (using macros) to print out the following messages on the screen [20 marks]: Hello, programmers! Welcome to the world of, Linux assembly programming! Step 2. Write a C function to passed two numbers to the function and calculate the sum of all the numbers between them (both inclusive). [50 marks] a. Make a version with for loop b. Make a version with while loop c. Make a version with do.. while loop...

  • CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simula...

    CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simulator with two print screens, one shows code, registers, memory involved before run, and the second after run. Without them, the mark will reduce to ½. Q3. Assume in locations A and B resides two 8 bit signed magnitudenumbers. Write an assembly subroutine code to multiply them and saves the result in C location. Start your code from 100. The code should be general for...

  • Question 1 (20 marks) a) Lists the four (4) fields of an assembly language statement of...

    Question 1 (20 marks) a) Lists the four (4) fields of an assembly language statement of 80386 microprocessor. (2 marks) b) What are the pairs of registers in 80386 microprocessors used to hold the address of instructions in memory? (2 marks) c) What is the output of instruction: ADD AX, (BX+DI] ? (2 marks) d) Give the name of valid registers pairs used to hold the base and offset address of stack operation in 80386 (2 marks) e) Express C17B000016...

  • Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the...

    Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper. (5 marks) Explain the difference between eor and eors instruction. Use an example to show why both forms are useful. а. b. (5 marks) Explain using an example what the "Idr r3, [r7,#4]" instruction does. c. (10 marks) The following is the assembly language generated by a C compile type mystery, %function mystery: args 0, pretend = 0, frame =...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT