0 ratings 0% found this document useful (0 votes) 8 views 27 pages Unit 2 Notes
The document provides information about the Swami Keshvanand Institute of Technology, Management & Gramothan, including its approval by AICTE and recognition by UGC. It contains technical content related to assembly language programming, including instructions and examples of machine code. Additionally, it discusses various programming concepts and operations relevant to computer science education.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here .
Available Formats
Download as PDF or read online on Scribd
Go to previous items Go to next items
Save Unit 2 Notes For Later
a
Swami Ki .
eshvanand Institute of Technology, Management & Gramothany
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Mini ,
‘cogni: :, Ministry of HRD, Government of India
WW Recognized by UGC under Section 2(9 of the UGC Act, 1956
el. :491-0141- 5160400Fax: +91-0141-2759555
E-mail: info@[Link] Web: www. [Link]
a ae
basascher Assevnbly Samus 5e-
D Baste umit of apdemdtey famegrert tae
Rafe ef Lomeprnege fadh Gne of om anmrnibs Langue
fo arranged wy % columns called plde Fields specifa
Rollouning; ‘iafesmathen:
label - maybe emphy om apecifty age
2 eos ime inser or & peed |
a Gonmment - Mag be empl or Inchdes corned
12od aphasia
be Duper, ret RO
om he Letters or reumbreads » Siqubolic addrrese 19 lal
Yass to forminabeh by ot Carman. be frat He abilbe wecogued
by omente
\nsdivcn ja om amrexclbiy Nemapucrcagee mag peda:
ons of re {oll eubogy ‘Nereus
a) Motarebad ration
1) A Reg Rebeee To iwhchin (men tet)
euchen bin or eAtnowk an Cprad
3) Lt peered
Rice
lic addeas
ator}
anboolic adders = Comaiste
Page|1rrr Te eee
el
A menting MRI. acaspico 2] Ayriola Lepurched, &
Ypatso® Task mu} beg Belen damubo Aehinin Ga
MRT opratron
Second @ yynlinbic addres,
Tiel Srbet io Sor not 1
CLN y hon MAL
AyD of
dived addres
App (TRL Mdivtck addirne
Gant addrere in “Inshnachen edd aprcigves traaney
\ocabun 4 Se ee SS approins, 4 (abd
VS Column Fae hanalobéem ne) 1h that reeppeu ae
an allel:
ORG*N Hexadec number N to memeg leah,
foc rarucon om operand. Mieked W Hilo ling
END — temctes ems of Iepnbolie program
BEC NN Bqed dromol number N fp be Conssent fo
Lino
ow eee
mo tebe cnuehal te bY
en N= Rew?
a é
ome 83 - 2) ne
By ORG10O ~ ie, “sa (+8
Loh seb
ah ie
om. a cat! om c
|we ?
App MIND C28) > ane vc comp
gn OF ' .
UT 83 + 2's emp: (23)
win) BEC 23
=83
cos, DEC -23 +23 = I0¢
pie, Hex O (Or. 5
peje’- i
Swami Keshvanand Institute of Technology, Management & Gramothan,
‘Ap Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Ri ‘pproved by AICTE, Ministry of HRD, Government of India
My) ‘ecognized by UGC under Section 2(f) of the UGC Act, 1956
Tel. : +91-0141- $160400Fax: +91-0141-2759555
info@[Link] Web: [Link]
lecahoy Conlon? oR aS
loo 2107 LOR sua
FOV eae CMA
joe 7020 ine
joe ILO6 Aon min
jou «3108 gTA DIF
om, 7a eh HUY
106 0053 —Mw pec &3
von FFES —svu8, nec-2g
) 108 gv-00 = DIF HEexo
eno
eeKesorbolir : Ain assembler. to cx progam maf
excepts o tyrabolic Lonaacrge- program amd Produces iL,
Me ony machine RLamqua ge eqns vehent
Taper dymbeli- Premown y
& ranaling bran, pogrom
Assembdn is o prryrarn Mot operates oa hanachen_
Ahings and. prediaces om equdvedlevct Bina infer preation,
Refere- Assernbily prose, aigmbolit. proyprem hyped bya
> coded Sourte prryrayn
— objec Ream
LEH ona ferminal to sured in reumeng Areeragia_— Soe
a loadin: pronperen: Eade chanewcher bo Aydalited
bye Bb code Wiggin orden bi tagtialavcris Or,
RR ADin gy see Tibi oe ASCl)-
Pinas 6] lee tp steredin commence
Lbuattom ain 2. caonades in cach locakton
ferrminar unfn a Commins
A lob Byrntola lo
mayors ane ferreinakcA of
° poration. raddrend
tata RIN EN
LU
Akpact endo inn bo Ap ged bog Connie Game
Raw Code
Bay. Liner
ASA 2-50
B-4T 0-3°
9-38
‘J-uk Be
cA OD
od
¢ 50
reaps Spe
pusg ico! sue L
Hew Code.
eae Bo 4G
Bee. B 26
eee) yw MY
KA Nis 22.
So Bo NG,
& w_ Le
ht CR 4 ob
etol 600
fa, 0180 aeApproved by AICTE, Ministry of HRD, Govern ”" |
Recognized by UGC under Section 2(f) of the UGC Act
Tel. : +91-0141- 5160400Fax: +91-0141-2759555
(se ISON E-mail: info@[Link] Web: [Link]
(
Fivst- Fann
> Gemnatto a table Met correlates oll atr dutivad'
addirer® Anerentrela cA treir binom4, equivalent Value:
Brnorg dramatobiem to dene duane Dtcond pres:
To kewp trade of Location “4 \nawuchen ,
uta LC Clocation Counter), (¢ to inihadbiad by ORG
ea yrowenmanbed. by A patter processing, ead Greg
aes
Page | I~Second Rasd 2. Madina inahuchons du hamul
during Aecondd pare by aan, 4 ‘babble —lockurp Prreedise,
A fobds-Lookurp praudune toa hear, I Wwe Fale oot,
te dabermine ufulrur o. spre item Mahhts one ag
Home Shred in Me fable Agsembtber uses 4 rbd,
Bry Syphon ounlrrdin te Proaaam Sra be crallel
a am cs in @ ome of Prune etilua, ohare. bn tnt
Comndyr be interpreted -
D) beeudoinsbnchion fable DMAL D Non-MRT, Cae
DY Pedro dypmbrok bobsly
Enbvien of Reeude inshuchin ane OR, END, DEC < HEX
MRE tetlle — contains 7 Aupentiols nom: “ihalndo,
Ey 3 . oy Tet the
chy 3 bt opcode Se.
ORE ee Reels aril doe ne
wim & 16 bE binary, codie. emul aed Le
Addieord Mprtubtabte so qenenafed dusting ta fircp
fo fod drat aunnerty Wain pro {
firembl. dude fe possible emir th kyrnlic
pe een
Gla adie Mc code Keel .
Prema herare reginleol adders thee dtdn't appear.
ghov oo « laleckManagement & Gramov™ ”
2017, INDIA
Swami Keshvanand Institute of Technology,
Ramnagaria, Jagatpura, Jaipur-30- ,
Approved by AICTE, Ministry of HRD, Government of aes
Recognized by UGC under Section 2(1) of the UGC Ach
Tel. : +91-0141- 5160400Fax: +91-0141-2759555
info@[Link] Web: www.
Seromd perso
Page| ISwami
Keshvanand Institute of Technology, Management & Gramothan,
rae gatpura, Jaipur-302017, INDIA
‘ Ministry of HIRD, Government of India
of the UGC Act, 1956
1-0141-2759555
[Link]
Ty
info@[Link]
com “
[EEE Alamdard 754 Floatin
ig componanss- d pe eal
Signet Mambsse 2G _ postbve
A steph
2 Biooad Cxponanhs — hsthve
AN , pont
GAM biased veda, cue
3: Normalized Mombsse Mambkissa, Conteine
Bignifamh duegis ea mumists: A normalized
Mambssa do 2 one aith o one 4h bo me
mm 82 -baA Sinagde preais rey
LbF ~ebin Sie
Cu-pih - tN +52 ——Dailbi precision
Sinng precision: 9 Sign A Cai bir)
les Brazel & ponent 2 \aih (30-23)
Gs Manns 23 wit (2-0)
Bias in 127
aa
for Doub press © Sen 4 (CGS bit)
Bia [| Cer -©2)
Maundn'ssa: S261 —*)
Bias % 1024
Page| 1eonl2s
eB = fololo)
oles +00)
ee = Jo10)0) +00)
= lorololool #2
Gay + 0
Single pre’ son
braned expover
[23 = Joooo fo).
‘Nomabized. (eaten. o)0 foloo)
A = o's _ : Gel
FS (7 F6 = 128
siete aReyann beeps leap a kenya jslral
rere caked many fine . ‘ ;
vy Fiemte cach time win. different
Set of alatemunls
Dietenssian A (wo) —s Rurwes too mrunong anda
INTEGER BM, A Ba loo Opnnds 2
SLM =o ;
Ser tee ca oO
Do 3%
3 som= som+ ACT)
Sgmbclic Prypav to adi loo. rumbbeu ~
Q
1 ORG 100
2 LDA -ADS I Firs jose
bee Sth TR Uh Share AC PTR y
ee ber ae 1) Lead mires 100
5 STR CTR Wf Sree Counter a!
6 CLA :
7: Lop, AOD pte tM hdd conopanoeadh fp etnent taker 4
eee PIR a J Inorerensk teint ut
a ser cir I] Invoxcredk counter . |
Bun Lo 1 Rupes leop again
we BTR sum NW Shere some Sure. frm te” |
tae Nes
1g- ADS , Hex 150
I PTR, Hex ? . ‘
Na, pec ~100 Jf cocstomb fo inideliae cunler
,
Location watts (ve Couto
11 Pers open
Oot ©o
Swami Keshvanand Institute of Technology, Management & Gramothan,
aria, Jagatpura, Jaipur-302017, INDIA
ICTE, Ministry of HRD, Government of India
Approved by
Recognized by UGC under Section 2() of the UGC Aet, 1956
Tel. : 491-0141- 5160400Fax: +91-0141-2759555,
Caen) ee info@[Link], Web: [Link]
et are ey
Muthiplicahon Progra: + XK —Mubipiivamd Y= Mudbpliev
pe foducl?
X= 0000 111
Y = 5000 jo!)
eats ais
eooo jt
or ie
pooole wit fachonal pad
Nyditten,
LpA AL — Lead Cow ) |
apd BL — Aad A(lew) amgine |
sm cl = Shae, KC in CL)
cus
cil
Aod MH ADD A CHA) & Cama ©
add 8H Ao BCHighry
sta CH Steven c CHG)
HUT,
logical open» or (No dived ORe
operate)
LpA A
ma &
ObH ctA TMP
wa &
cma &
AND TMP
omar‘Swami Keshvanand Institute of Technology, Management & Gramothan,
201
Ramnagaria, Jagatpura, Jaip
Approved by AICTE, Ministry of HRD,
Recognized by UGC under Section 2(1) ¢
Tel, +91-0141- 5160400Fax: $91
Caer, mania We 4
int of India
Act, 1956
9555,
Subvouhh — See Cae
——— trough BSA wa brach'on
Suloroulind. comaictd of a self Caplan, Seqyrence.|
ot inshuchions mak Canrien ouragiven teak h
brunch canbe mada ty subroutine Korn ane
parte te yrgpam Bukit le Wecemany fo tod
Fea adders p
Rg. Program te Shi a cond. Ccontemb of AC)
Sourtimes to tre ke
ORG 100
loo = DA X — load X fe W23Y
Jo. OSA SHY L. Branch fe Subrouttng
foeensgih 75 [Shue Swick wees,
Ree UA, [loa Y
jou esr SHY rare iene
fog sth y¥ 1 Se WY Wirt,
NoLcumet
foe ates est
1o€ Hem BPE routine
joa SHY, Hex O / Short verurnaddinns hare
yoA CIL / Groslabe bkrone.
jo® Cle t
(e cre
(apmeel 7 ct U™ fing
1o& AND MSK: / Set AC CI3-I6) te two
ska HorkPF Oo
eraP
lof BUN Sy L / Rchun fo mah progeny
lo tisk, Hex FFFo ari
ENDour 7p
To Pogpaeine Wiad. >a Ee,
INP insnechion hamafeu binawg cobid dhasather b ke(0-7)
Tur character to printed bora tread el OUT Inshuchin,
Fy fewminal wait “nat commun castes diredyy wine
a doeon't prink tre chareck, , orl tre bag tel Pra
fe hypeity ME lo Ruecanrang, fo Bem. OUT inshudien & prinkey
\P SkT inhnchon fro Hog bit of 0, uxt Tnahncelye
Hn Bequance fy Qrecuked: Tair walsh" toa byzndh fo
rehun Edrede rn Magy it ageiny IPdeviads
itn a Computer bo hwo marae Jin Loop al
SXeented. martinis before < tharachr
ty aemntabhy 5 —
Pergrarn be yp & ofP 4 charade
“I~ Skip if in ab fy
_—— ees
«aun ci # by
Flag =O
InP Flag =I ih pub aoe,
ous CPrint draw é dhanky |
Stak CHR : b 2
HUE ' :
CHAS ( Chenader )
LDA CHR
coF, SKO- * Cade of? log
a BNF fay 20
: Out Plag =)
i +
CHR, Hex os reStet
Debroukine bo Tnpuk amd Pack hve Chanackens
N2 ome casaty ray
Be [Simin onhye (Clbarauier encodings)
‘ST, SkL
Bon FST
re [input hs Sheraton
BSA SH4 af Slit Yh
BSA SHY: tt oft
Sed, gkL
Bun Sch
InP [Inport Seed dhara dor
out
gon nz L Rete
fe fp Store, Input Chonachens th & buffer
Loa ADS [load first addeers of buffer
STA PTR p\wibalize pointer
Lop, sk EN? [ tro be Subroutine IND 5
Sta PTR E [Ske ouble croracker, wind in buffer
ys2 PTR — I bnemernemb pointer
Bun Loh) Brame fe inputs mere cranacto
ALT:
ADs, Hex 50° [PrsFraddmens of
pre, Hex 0 [location for pointer.
Progam inkernag: Thug am inkemruph facility aaifiny me,
ja redaud Grid ensbigres fone aicrare Te Os
Ti
nfocrmakon fraunafen te initiakd, upon ve ene
Orkernal duyia. » ,ohwite ,
2 Coonputer to alaruigs wal
external duarice hy rxek it ~ t wally GrrTow = Inlemuph on
Tok -Intemuph Of
Seevin Rowines damtdiney
} Save contents of procenace reqqiskewa
D Chat uid fags Yo Sek ne
% Senvice Me device snore Nag ‘eo
Ne Realere conlents ob prousoer reogictens
5 Tan tae ntemuph (adlity ont
© Rehm to tue Yuruningy poy:
Microprarannened Carel &
Tn Cee: of adigtal compuben:
Con holy, ope Aequences woe Big ted
Cabot kv machen Anat Specifres te a por foa binamy veel
Gobrot variabl. in opposite bine. state decon't change tre
Hale of veeister tn true Ayslem Achive. shake dea combo
ars be cihwe L or Otleke; depending Pai pe
Gohl unit inihiates « Aonr
a, |
i “2 of Aecyoonbiol Khe,
Daring ag gieem Hie, akan gu [ope
PF wet he inte
ile ohers wynain tale Conbret vetelbe ary ene i
contre Unit whoge bineng con Verte he, ant beard
in mumeny to collec Mivroperspranumed, Galwol Unit.
Gach amdin conbol Conkedv a Microi nlnech on.
A miowinshuchron Apeu
4 oneer Mone fropa-
A Secpsemee.
Sf Ainak —mneteoo fr
eee
~~_——————————<——— i=
at
emery * (Rom ).
Ga
fol momen tam be a read-only
4+ he abkered
| Gn
| Golent ot umd in ROM are fire » om
Computer emploging MCU gyill howe hw
) Main tremory 2) Cabot Munnenge
conten b ane ablerabt.
(HH) Maan memerg > Sree PY ans
Chom )Conbrot memo * Shores fied per’ tamt be ablereds
Minar fron pero fetes de inatnuchion deve main MMAn™y
Colewlabe Efutrenddere * Gleca doa Pee ae prehaun Conf
fe Ahn phawe
L, Gabel
Dod
code Prpcdane veer
preutk tain addurena
inakional
Reva? ov
‘apa Com
Rom oprralee
ali. co input & Corerente anda, unnde ao of?
Conlenr of specie [Link] ROM ermadns In o]P asea
an long hy adders LE remarno Th AR-
Ne chomeg ia, alvin Wud enw anutechent odeadders Sequemding' fie ACinahuaions ane Serth Ne
Control, crusmony sn opouge, wih kad roup Apecifingy a moult
Stegs fre adaaero Dacpusmeing,
onto addirene Rugeker
3) Wouonattional [condi Hooks branch , depending
pik condition:
Jgcers. nshrustion Lib bp addirere Gur
Adler ba kanes-
5 \newernemh ny
on tha |
SD) Maypins
Conbol manne
cod ve
4) foal Rulers
) faalihe uo ae a
Tnatruchn Cod
Mapping
»
Kidnedts Aeluahimn foe conbrrl- i
Beaming by uliipor ‘sloiua Ue eee
ee eats (baker cee: .
Swami Keshvanand Insitute of Technology, Management & Gramothan,
TRamnagari, Jagatpura, Jaipur-302017,INDIA
Approved by AICTE, { HRD, Government of India
Recypnized by UGC under Seetion 2(f ofthe UGC Acts 1956
eel 49-0141 5160400 Fax: +91-0141-2759555
Cre eens Toa infodaskitacin Web: nw skitacin
Mappive of atuchion
Dicwinaluds ot
Place Om YB,
Arar rea LSB of ©
; Mapping 2 dont bug am TC éoblid. Programmable
logre bovis (PLD).
Suboulint * Sequence Mrere typ Reece necded
frran insmuchin a4 be Cammen aM MRLs
This pene could be. 2 Sulrmubints codlick from. bii's
chur voubnes fo execute Effectres acldinne cereputabion .
Page |1=
Crnputer Configuration sh" (Up » Grbwk. Oni
Procasaes Unik Raggio « fe, AR, DR & AC
Coorek Oot — cht, SBR
Info avon po dont. using MUX & nok mm
S j zi
Ce Ac, Pc, Memory
AR e— Pe OK
po eRSwami Keshvanand Institute of Technology, Management & Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HIRD, Government of India
AW Recognized by UGC inder Section 2(f) ofthe UGC Act, 1956
“Tel. 491-0141- 5160400 Fax: #91-0141-2759555
Niccoinahmctien front”
ics mw to
(e[orede
Fe 4
€9) \lmpuler
Men] e-he l
paceman) ,mler Je BK
ea fe rabreehtin Che
Fi, 2,3 + Mop tilde C2obih)
ddners frebd to 1 bilo be RoM hee OT 2128 wrodd
Mop: are subdivided into 3 pade fF 3 bie ead
B-bib mm 2adn da, ane Oncoduudh be Specify 7 dishing
Mop cabin aivceo fol DI prop:
Page |Not more. fem % pop canbe thocen brow frist ey
be choyen Ip fuser mam 3)
ware pop reused Ue Re
Colt OD \r No op om
Sa fs Foetoo — DR eMLAe)
P3-Jo) Poe Pc)
& FI= 000 .
bo He call be ovo 1o0"4 6)
We shoutan'h apecigy conacingy pete simuietones
Uke 010 00) 600
MF; ~ Symbol, .-
cud Now
oo) Ace ACTOR Add
010 Aceo CLR AC
ov Ace Act) JNCAC
loo ACE DR DRTAC
tol ARE DR(o-1e) DRTAR rr
(10 ARE PC CTA R
uw) Mfar\ + duds onrot Shake Mb in MUX, bath
ZL, Tesbvartte Tl lard: ee
aul loc. ain perfonns Sequendng CINC, BR f Toney) cleatSwami Keshvanand Institute of Technology, Management & Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
“Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel: 491-0141- 5160400 Fax: 491-0141-2759555
Gaara Teamal infv@[Link] Web: www skitacin
Romany A Sequances Nan vegitler byada, “Wb 8 lua
dup Sv pw) ) pop oporahin ead am external add.
{gin d inpala Bequenenn, cam provicke ye fo ® addrero
Aeauenuind, op ord
" al ape 55a cwdunbical f bib ude
Bote | wept ela Gb ede S) 1S, are deform
EWM Yoon Saked- kumi
cr Oy eis
Siew) Se
|
junit huqyirte SAND QRS. T, es
4 oR qake. end ce
'
be
invnka Lou
Sig (ee
—¥