0% found this document useful (0 votes)
22 views5 pages

Coal Lab 8

The lab focuses on understanding and handling floating-point exceptions in MIPS assembly language through practical tasks. Students will write programs to perform floating-point multiplication, sum an array of floating-point numbers, and invoke an invalid syscall to simulate errors. The conclusion emphasizes the importance of exception handling for reliable program execution.

Uploaded by

Sohaib Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views5 pages

Coal Lab 8

The lab focuses on understanding and handling floating-point exceptions in MIPS assembly language through practical tasks. Students will write programs to perform floating-point multiplication, sum an array of floating-point numbers, and invoke an invalid syscall to simulate errors. The conclusion emphasizes the importance of exception handling for reliable program execution.

Uploaded by

Sohaib Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

AIR UNIVERSITY

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 8

Lab Title Exceptions in I/O and floating points in MIPS


Student Name: khuzaima Zarar, Sohaib Khan , Ali hasnain Reg. No: 230605, 230683 , 230601

Objective: To understand and handle floating points exception in MIPS


To practice exception handling using MIPS sys calls

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows
the lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:
Department of Electrical and Computer Engineering

Computer Application in Engineering Design Lab

Lab Report: 8

Tittle :

Exceptions in I/o and floating points


MIPS

Name: Muhammad khuzaima zarar


Roll Number: 230605
Class: BCE-4B

Submitted To: Engr. Anam Arshad


Date: March 17th, 2025

2
Air University, Islamabad CAED Lab

Introduction :

This lab focuses on handling exceptions related to input/output operations and floating-point
calculations in MIPS assembly language. By simulating common runtime errors, such as divide-by-zero
or invalid inputs, students will learn how to manage exceptions using MIPS system calls and exception
handling routines.

Lab Tasks

1. Write a program that multiplies two floating -point numbers


and prints the result.

2. Create an array of 5 floating-point numbers and calculate the


sum of all the elements in the

array and print the result.

3. Write a program that attempts to invoke an invalid syscall


number (one that is not

defined).

3
4
Air University, Islamabad CAED Lab

Conclusion :

In this lab, we successfully explored how MIPS handles exceptions during I/O and floating-point
operations. By implementing exception handling routines, we learned how to detect and manage
runtime errors, ensuring more reliable and robust program execution.

You might also like