![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Got this from a GATE paper of 2005 Im confused. any clue? The following program starts at location 0100H LXI SP, 00FF LXI H, 0701 MVI A, 20H SUB M The content od accumulator when the program counter reaches 0109H is (A) 20H (B)02H (C)00H (D)FFH If in addition following code exists from 0109H onwards ORI 40H ADD M what will be the result in the accumulator after the last instruction is executed? (A)40H (B) 20H (C) 60H (D) 42H
__________________ Artificial Neural Networks are dangerous to mankind | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| You have to choose the right option from a, b, c, d GATE is graduate aptitude test for engineers , an exam conducted in India for entrence to postgraduate courses
__________________ Artificial Neural Networks are dangerous to mankind | |
| |
| | (permalink) | ||
| If you assume that the program is assembled with assembler as shown then the information is incomplete because To execute the instruction SUB M at location 0108 you need the content of memory location 0701 pointed by [HL] to perform the operaion SUB M which is A = A-[HL] Assuming that the data apears in memory as shown in the instructions which means 0100 LXI SP 0101 00 0102 FF 0103 LXI H 0104 07 0105 01 0106 MVI A 0107 20 0108 SUB M if the memory content is as above then Quote:
Quote:
__________________ Instruite http://www.icesociety.org ===================== Ideas that work, Concepts that sell. ===================== | |||
| |