sSum Cavry Lnputs
p0/p I2
Addey Half
Y= R A y At Y A.ß Y
puts In
-NOT
D
XNOR NoR
DNANO
esvithmetic GateUnivensal
s BusicGates
Gates: Logic
NQTES> HOI <S
XYxY)t 2
X
X.
2 Y x S
x
Carry
Sum X
2 Y
Addey Fl
DATE:
N0. PAGE
JINDAL JAY
's)
's)
(i's) =001 -6
cemplement: 2's complementi 1s
bit
sign
-6>IO vep Cant
hag Siqneo igned Uns
way. sqme Sented
in YepYe S resentation
no ve ep 4all |n
ve ve Ove ve Ove ve
conplennt
2's ve
's Signed ighed Uns
Complenent Magnitvde
Yepvesentatiem Data
Representation Data
X8O62 S
)(31.50 (25.c25
|0 I12 8
12)4’(IGo
octal Decimal
to
50 . =
X2= 0.625
(uo01.1o
to). (25.62c),
13),
bingy Decimal
to
Systen Numbex
DATE
Ho. PAOS
(ay
mal dei othevs
to
-2
|3427
3:1213. (27.+).
O61Sx\6= 25
Ao)e 9(25.625),,
16
hexadecimal: Decimal
to
Se S
HA HA
Ae A
C Menatoy incTeAL binavy 4-bitA
S
fA A
A A
subtucte adder 4-bit
S. S Sy
C4
FA FA FA FA
A
- 8
A AL B A
-
adde binay -bit 4
MictopReTation_ Avithmetie
DAre.
No
PAOR
carYythyough Left Rotate
caYYy thyough "
right Rotate
leftRotate "
ight Rotate
ight "Aoithematic
Shift
ett
Shittighti sShitt matic Pyithe
"Logical -
shifttett "LogicaL
micvoopetations Shitt
OT
BoR
MUX
Ai.
i S.H
o/p Si,So
ANO A-
ORV-
pgxations Micxog Leyie
MuL
Ri,G IV 0
R,F DIV
SUB
R,C MOV
Ri<-RMLB1 SUB
R,
A MOV
iostruetion: adoess 2-
RX
R MX]E ,Ri,R MUL 1:
Ra,G R, DIV
FRy, R, DIV
-MCo] MCI Rit
ML&] MAl- Rit R,
BA, SUG
nstYvchon: Tess add 3-
-D)/F)/ (CCc (A-8)* x>
a)
lnstruction: AJdress
DArg
AMDAL
YAL
1- adoress instyUcfion:
LOAD A
ACE Ac- M[o7
STORE T: M[TIeAC
LOAO C
AC<AC- MLDI
0TV
AC<AC /MCF1
AC &AC/MLG]i
MUL AC< AC* MLII
S$ORG X
0- address indyuLhion:
PUsH A
TOSA
-ei
PusH F
PUSH
2!
TOs <-Cc-o)/F
Cc-)/ E)F/G
MUL
Pop X
70 (s2
Soo
75
dec Auto
-Auto
inc
700 48
indi. Reg. 13S.
Reg-di
65 Indexed G00 99
Relative
00 7
So0
Indivect 47
\00 Amnediate
Dizeit
instvction Next
nt Addvesing S2
\00AddYess= SI
AC/Mode toLoad So
A
xanple E
Loop
bles Navia þointers
nstructioy 6f
of
in bitstsbi lno. the Yedvtes Benetit’
Jata
oYthLaddress
the tho datu be Cun
operand ope OPcode
sing9Modes res Add
DAra:
DAL JAT NoPAO
-JAY SMDAL
nultipli cafion
Ox'x0x2°
0 1o.(2°)
*2')
0x 2x\y 2
igned Bingyg nu mbers
|0to
-'1 2 2 2
-35
- (18 t64t0 +L6+ 8t t0t l -35
Lonsileved
vpto 8-bit
JAADOAL
DANL
|0o0 |00|
yFS x 7
3S..
Both's Adyprithm,
Start
AC*0, &->0
M-multi plicand
a: mulielier
Count n
Q,Q
Ac-AC-M Ac-ActM NO
Avithematie shitt vight Yes
Count Count
x3
2's
2- M
AC
Operation
)Ac- Ac-M = ACt Gm)
|001
JAT DMOAL
PAO NO
DArt:
a
AC
Qpevation
2 I I o0
000
3
(i) ACACt M
10 |0
= 2
-)
t Ve -Ve
Mltiply -7 and t3 (veqistey blts =5)
-M = 7 2
AC
Op evutioM
0 0011 i) AC=AC-M
=00000 +001: 00l|
:
ASROCa
2000I| 41000L J00) ASR
3200001:A |00 o O1UACACt M
O000 |+ | | 0OI |101O
|0110
-2|
0000 D|OI01 2|