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

Metal–oxide–semiconductor structure, Metal-Oxide-Semiconductor Structure ...

Metal-Oxide-Semiconductor Structure A traditional metal-oxide-semiconductor abbreviated as MOS structure is acquired by growing a layer of silicon dioxide (SiO 2 ) on top of

Explain interrupt vector table, The interrupt vector table is always create...

The interrupt vector table is always created in the first 1K area of the memory. Justify the statement. While the CPU receives an interrupt type number start from the PIC, this

Dc chooper, Establish the relationship between duty ratio and output voltag...

Establish the relationship between duty ratio and output voltage

Determine the range of the step size, 1. (a) Consider a sinusoidal signal m...

1. (a) Consider a sinusoidal signal m(t) = A cos(2 Π f m t) applied to a delta modulator with step size . Determine the range of the step size so that slope overload will be avoide

Transmission line, A three-phase transposed line is composed of one ACSR co...

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

Merits and demerits of fixed bias with emitter resistor, Merits: The ci...

Merits: The circuit has the trend to stabilize operating point against changes in temperature and β-value. Demerits: In this type of circuit, to keep I C  independent o

Valence band- conduction band- valence electrons energy gap, Explain the te...

Explain the terms: valence band, conduction band, valence electrons, and energy gap with the help of suitable diagrams. Valence Electrons: The electrons in the outermost orbi

Give some applications of constantan, Give some applications of constantan....

Give some applications of constantan. Constantan is an alloy of nickel and copper. It is used in thermocouples, motor starters and precision resistors.

Temperature controller, This assignment concerns the planning of a software...

This assignment concerns the planning of a software development. You are required to plan the software development for a typical microprocessor based, 4-channel temperature control

Fet operation, FET operation: Figure: I-V characteristics and o...

FET operation: Figure: I-V characteristics and output plot of a JFET n-channel transistor. The FET manages the flow of electrons (or electron holes) from the sourc

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