1write down the RTL for the SUBT instructions 2Draw a flowch

1.write down the RTL for the SUBT instructions.
2.Draw a flowchart to indicate SUBT instructions is processed.

Solution

1)

RTL is a easy human understandable language to specify or to perform the operations

SUBT is instruction which is used to perform or subtracts the Source operand from destination operand and the subtracted result is stored into destination operand

Conditions

Source operand should be a register or a memory location or may be a immediate address

Destination operand should be a Register or memory location but not be a Immediate address

At a single time its not possible if both source and destinations to be a memory locations

General format of a SUB RTL(Register Transfer Language) format

SUB DESTINATION OPERAND,SOURCE OPERAND;

eg

SUB AX,18H;

SUB AX,BX;

SUB AX,[2000H];

2)

FLOW CHART to indicate SUBT instruction process

Instruction Cycle Implementation

1) Fetching of instructions will be performed at first

2) Updation of PC(Program counter will takes place) in second stage

3) Decoding of fetched instructions will be takes place in next stage

4) Execution of given eithr arthemetic or logic or conditional or unconditional or anyother operations will takes place in the later stage

If Incase of SUB instruction Both Source and destinations datas are retrieved then it will check Sign of both datas,If

1.write down the RTL for the SUBT instructions. 2.Draw a flowchart to indicate SUBT instructions is processed.Solution1) RTL is a easy human understandable lang

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site