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

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.

Posted Date: 5/25/2013 8:48:12 AM | Location : United States







Related Discussions:- Find 2s complement of 8-bit no. by assembly language program, Assignment Help, Ask Question on Find 2s complement of 8-bit no. by assembly language program, Get Answer, Expert's Help, Find 2s complement of 8-bit no. by assembly language program Discussions

Write discussion on Find 2s complement of 8-bit no. by assembly language program
Your posts are moderated
Related Questions
What are the hardware elements in the embedded systems? Hardware Elements in the Embedded Systems are as follows: (i) Power Source (ii) Clock Oscillator Circuit and Clock

What do you maent by Debugger? Debugger: This is a program that allows user to debug and test programs. All computers with microprocessor kits give debugging facility. To not

Define Hysteresis Hysteresis is the 'lagging' effect of flux density B whenever there are changes in the magnetic field strength H. When an initially unmagnetized ferromagnetic

A three-phase transposed line is composed of one ACSR conductor per phase with flat horizontal spacing of 11 meters as shown in Figure (a). The conductors have a diameter of 3.625

Enhancement type MOSFET In these types of devices operate by comprising a channel enhanced in the semiconductor material in which no channel was constructed, they are termed

1) Assume that we are given the continuous-time signal xa (t) = xa1 (t) + xa2 (t) + xa3 (t), where, xa1 (t) = 2 + cos3 (2pf1 t + p 3 ) + 2 cos(2pf2 t), xa2 (t) = 2 cos(2pf3 t)

Q. Explain the drain characteristics of JFET with external bias? It gives relation between Id and Vds for different values of Vgs.(which is called the running variable). The ab


Specific orientation programme: at this stage, induction is conducted by the foreman. Induction is specific and requires skill on the part of the foreman. A new employee must be p

Explain keyboard interfacing to 8088 through 8279 . The 8279 is a programmable keyboard and display interfacing component which scans and encodes up to a 64-key keyboard and con