Course: Computer Organization and Architecture (SWE-212L) Semester: 3rdโ|โBatch: 2023Fโ|โSection: F University: Sir Syed University of Engineering & Technology (SSUET) Department: Software Engineering
| Name | Role |
|---|---|
| Syed Azan Amir | Implementation & Debugging |
| Muhammad Safwan | Testing & Documentation |
| Shaheer Abbassi | Flowchart & Logic Design |
| Muhammad Tariq | Algorithm Design & Report |
The goal of this project is to create a Temperature Conversion Program in MIPS Assembly Language that converts temperatures between Celsius (ยฐC) and Fahrenheit (ยฐF).
It demonstrates how basic arithmetic, branching, and user input are handled at the assembly level, showcasing the connection between software logic and computer architecture.
Temperature conversion between Celsius and Fahrenheit is a frequent requirement in daily life, science, and engineering. Manual calculations are error-prone, so an automated converter in assembly language provides both accuracy and educational value.
This MIPS Assembly program:
-
Prompts the user to select conversion type:
1 โ Celsius to Fahrenheit2 โ Fahrenheit to Celsius
-
Takes a numeric input (temperature value).
-
Performs the required conversion using formulas below.
-
Displays the result in the selected scale.
Celsius โ Fahrenheit: F = (C ร 9/5) + 32
Fahrenheit โ Celsius: C = (F โ 32) ร 5/9
Prompt user for conversion type and input value.
Perform the correct formula based on user choice using floating-point registers.
Display result with an appropriate label (ยฐC or ยฐF).
โ Successfully converts between Celsius and Fahrenheit โ Accurate results verified with sample inputs โ Demonstrates MIPS arithmetic, branching, and system calls โ Floating-point calculations handled using FPU
| Field | Use Case |
|---|---|
| Scientific Research | Quick temperature conversion in lab experiments |
| Engineering | Conversion for thermal, energy, and material studies |
| Meteorology | Temperature reporting in different scales |
| Embedded Systems | Integration into temperature-sensing microcontrollers |
| Education | Teaching tool for understanding assembly-level arithmetic |
- Add Kelvin conversion support
- Implement error handling for invalid input
- Include graphical/text-based UI for better user interaction
- Extend program for embedded temperature sensors
The Temperature Converter in MIPS Assembly demonstrates how low-level instructions handle arithmetic, I/O, and branching. It bridges the gap between software logic and computer architecture, helping students understand how processors execute even simple programs.
The project successfully fulfills its goal and can be extended for real-time embedded applications in the future.
- MIPS Assembly Language Programming โ Robert L. Britton
- MIPS Architecture Reference Manual
- Online resources: Stack Overflow, MIPS forums, and educational blogs
This project was developed as part of COA Lab (SWE-212L) at Sir Syed University of Engineering & Technology (SSUET). ยฉ 2025 โ Team 2023F-BSE-F. All rights reserved.
