Objective: To Understand Branching and Simulate VVM Programs Using "BRP", "BRZ" & "BR" Instructions
Objective: To Understand Branching and Simulate VVM Programs Using "BRP", "BRZ" & "BR" Instructions
LAB 4
OBJECTIVE
To understand branching and simulate vvm programs using ”brp” , “brz” & “br” instructions.
LAB TASK
LAB TASK #1:
Take any integer as input.
▪ If the number is greater than 5, print the number.
▪ If the number is less than 5, halt.
▪ If the number is equal to zero, halt
SOURCE CODE:
CE-207 Computer Organization & Architecture SSUET/QR/114
OUTPUT:
HARDWARE VIEW:
TRACE VIEW:
SOURCE CODE:
CE-207 Computer Organization & Architecture SSUET/QR/114
OUTPUT:
HARDWARE VIEW:
TRACE VIEW:
OUTPUT:
CE-207 Computer Organization & Architecture SSUET/QR/114
HARDWARE VIEW:
TRACE VIEW:
SOURCE CODE:
OUTPUT:
HARDWARE VIEW:
CE-207 Computer Organization & Architecture SSUET/QR/114
TRACE VIEW:
SOURCE CODE:
OUTPUT:
HARDWARE VIEW:
CE-207 Computer Organization & Architecture SSUET/QR/114
TRACE VIEW:
SOURCE CODE:
OUTPUT:
HARDWARE VIEW:
CE-207 Computer Organization & Architecture SSUET/QR/114
TRACE VIEW:
SOURCE CODE:
OUTPUT:
HARDWARE VIEW:
CE-207 Computer Organization & Architecture SSUET/QR/114
TRACE VIEW:
OUTPUT:
HARDWARE VIEW:
CE-207 Computer Organization & Architecture SSUET/QR/114
TRACE VIEW: