Professional Documents
Culture Documents
4-Assemble Language program-IAS-11-01-2024
4-Assemble Language program-IAS-11-01-2024
PC 21
MAR 501
500
21
MBR LOAD
STOR
M(X)
M(600),
500,
3 ADD
4 (Other
M(X)
Ins) 501
IR LOAD
STOR
ADD M(X)
M(X)
IBR ADD
(Other
M(X)Ins)
501
AC 7
3 501
AddIBR
M(X) PC
PC←
Mar
MAR =←PC
21
=PC
3 M(X) 501
LOAD M(X) 500, ADD
4
STOR M(X) 500, (Other Ins)
IR MAR
MAR
MAR
MAR
add=500
=2
501
==5001
= 501
add == 500
add
add =12
IAS Computer AC MQ
MARPC
MBRM[MAR] Arithmetic & Logic Circuits
Input/output
IBRMBR<20..39> IBRMBR<20..39> Equipments
IRMBR<0..7> IRMBR<0..7>
MARMBR<8..19> MARMBR<8..19> MBR
MBRM[MAR] MBRAC
ACMBR M[MAR}MBR
IRIBR<0..7> IRIBR<0..7>
MARIBR<8..19> IBR PC
MBRM[MAR]
ACAC + MBR Main
PCPC+1 Memory
MARPC
IR
MBRM[MAR] MAR
Control
Circuits
IAS Computer Flow of Operation Flow-Chart
Write an Assembly language programming for the following expressions using IAS
computer Instruction set and interpret to the flow of IAS computer
1. A=(B-C)*D
2. A=B*(C+D)
3. A=(B-C)/D
4. A=B/(C+D)
5. A=(B+C-D)
6. A=(B*2)/2
Make necessary assumptions.
Dr.J.saira banu , Associate Professor, SCOPE, VIT University
Challenging Problem
Write an assembly language programming for the following code fragment and
Interpret to IAS computer flow of operations.
if(x=0)
c=a*b;
else
c=a/b;
Where
Data variables are avaible from loation address 500 onwards and program can
be stored at memory location 200 onwards.