Posts

Showing posts with the label Electronics Programs

Addition of two 16-bit numbers

  Aim:- Addition of two 8-bit numbers. Apparatus:- Microprocessor kit. Data:- 7501-98H, LSB's of 1st number 7502-5B, MSB's of 1st number 7503-4CH, LSB's of 2nd number 7504-8EH, MSB's of 2nd number   Memory address   Machine code   Labels     Mnemonics   Operand   Comments   7000   2A,01,75     LHLD   7-501H   1 st   16-bit no. in H-L pair   7003   EB     XCHG     Get 1 st  no. D-E pair   7005   2A,03,75     LHLD   7503H   2 nd  16-bit no. in H-l pair   7007   0E,00     MVI ...

One's compliment of 8- bit number

Aim:- To find one's complement of an 8-bit number. Apparatus:-  microprocessor kit. Data:- 7501-96H   Memory address   Machine code   Mnemonics   Operands   Comments   7000   3A,01,75   LDA   7501H   Get data in the accumulator   7003   2F   CMA       Take its complement   7004   32,02,75   STA   7502   Store result in 7502 H   7007   76   HLT     HALT Procedure:- 1)How to enter the program Esc->S->CR->CR S.address(7000)->CR->Esc->S->CR->CR->Data->CR 2)How to execute the program Esc->Go->CR->CR->S.add...