Find 2s complement of 8-bit no. by assembly language program, Electrical Engineering

Assignment Help:

Write an assembly language program to determine one's complement and two's complement of an 8-bit number.

Ans

One's complement of an 8-bit number

LDA 2501H

CMA

STA 2502H

 HLT.

Two's complement of an 8-bit number

LDA 2501H

CMA

INR A

STA 2502H

HLT.


Related Discussions:- Find 2s complement of 8-bit no. by assembly language program

Unit to measure the electric charge q, Unit to measure the electric charge ...

Unit to measure the electric charge Q?? The unit used to measure the quantity of electrical charge Q is called the coulomb C

Show the bode plot, Question: (a) Show the Bode Plot, showing the relev...

Question: (a) Show the Bode Plot, showing the relevant corner frequencies and slopes, for the unity feedback system whose open loop transfer function is given by: (b) T

Seal management - meter field testing, Seal Management - Meter Field Testin...

Seal Management - Meter Field Testing For an effective seal management system it is necessary that: i) The  seals  used  are  tamper  proof,  that is they  cannot  be  remo

Gas hazards in the laboratory, GAS HAZARDS IN THE LABORATORY : As mentione...

GAS HAZARDS IN THE LABORATORY : As mentioned in the introduction of this unit, the gas hazards in a laboratory arise from LPG and other compressed gases. Though the use of gas for

What do you understand by detroit-type automation, (a) What do you understa...

(a) What do you understand by Detroit-type automation? (b) What are the situations under which the above kind of automation can be planned ?

Obtain the complete solution for the voltage, Consider the circuit of Figur...

Consider the circuit of Figure and obtain the complete solution for the voltage v C (t) across the 5-F capacitor and the voltage vx(t) across the 5- resistor.

The programming model of 8085 microprocessor , The  programming  Model of...

The  programming  Model of 8085 Microprocessor The programming  model  of 8085 microprocessor is  shown in figure  below in this  model  various 8 bit  and 16  bit registers a

Write a brief note on common drain amplifier, Q. Write a brief note on comm...

Q. Write a brief note on common drain amplifier Since voltage at the gate-drain is more easily determined than that of the voltage at gate-source, the voltage source in the inp

Coherent psk system, To have the same value of P e , show that E b /N 0 in...

To have the same value of P e , show that E b /N 0 in a coherent-ASK system has to be twice that in a coherent PSK system.

Process of amplitude modulation, Q. Process of Amplitude Modulation? In...

Q. Process of Amplitude Modulation? In AM the message signal is impressed on the amplitude of the carrier signal. There are several different ways of amplitude modulating the c

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd