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
% Q- Art oF Assembly Language \
at
¥ Progyaammin g
_ Algortlin + |
Thit the shpusise tnstruchory sto solve oO ponitular
Problem
| |
Frowchard:
J TU te graprical represent ation oF can any orth
as mbols ot ftowcharé :
Sia — pro a”, — Connectors
ppc? ag. Si eaelenten
= Saccenetei
- =
alg enthn to perto , adaiten Pe eeieb
mbes. and pthun_drnys_ftavo thas far same -
Algorithm il a
+ Start
Take the Hse 1¢-bik Number 10 Ax regu
nd 16-bit number in Bx regisky
addihun axr+bxExx_atgoninm € Mow chat to find the smallut urbe,
Among Hoo “Numbers
_A\gortthm:
Usp Staak
OSHP2s Take 1 no. (0 Ax regtuter
oShp Si Take 2°4 no. tn Bx register -
—SHpas tf ax > Bx. Bx tr smaliet no.
a Seay ly smaliat no.
I SHps" Display ro uu J
L skp co. Shop eee aie
Rin Shaye’
pe.
[eke no. in Ax rgunr]
Fate 2rd no.We dtfrrrent populere ? accermblen avathable ane
Jtven pelow +
Q@TASM .C Tirbo Asse mblem frorm > Borland)
| @ mMasm Cmacm Ascember from Mrersoht)
QO NASM (CNettotde Assembler from titndows £ Livy)
Ia program Hat combines objet pise
s Agsembler iwthh other object files itbrary
prigroin fir exe ery
am that atows execution ot
e contin ot equity: and
1 ake a
bea Itke NoHtpad
ler trices ok! 8036s.
pad. g-raunn, using be
ed to te assembler
C Seqment _=f Fav exampieMnumi =P OH ee
——@Aroy de ton, con 80 5 Lows
———In_fimt tramp num) a byte type “of vonabe
———whtth sleru 10H date in mening! um {)
—— In _Setond example 2
$@DeHine word Cyr): This diner used be debire
+a word Variable _yphich shares 2 byte
date fe. 16 bit na
— Fer _exampte: “= can
—=5__@ numi Dw yaseH bre ie
@) Perron, Dw__ lili, 2222 g030H
@_peting -poube word (Dd) This dyredive 9
Bouble word type ot yanddble
Agta ie. 92 bee
ured t~ ole Fire
ushtch corsa & byte |
For_wampe> nummy dD 123460618b=
—@ END: Te tokes the assember thot the ipwgram_rs
ended. Assembler ull) t(anore any statemenks ater
END clirtchive. =
syntax.
4
|
: @_ENDS: This derecive tells He assembles that paort(war!
: segment ts ended. | dni 2 :
+ Bs 28 09h) | bic re Be 8 i
@_ENPP: This drectve mdicatts end ot procedure
@ PROCEDURE - yntoy i) PROG protedur— name i
Tnts Afrechve tts the assembler thak procedure “8
SEGMENT: Three dtrechve tndtcate: tart ot partcular —
OT 0 ee a