{"id":50975573,"url":"https://github.com/moulahguine/mips-student-projects","last_synced_at":"2026-06-19T07:32:08.348Z","repository":{"id":290743777,"uuid":"975432466","full_name":"moulahguine/mips-student-projects","owner":"moulahguine","description":"Project showing a C codebase and its manual translation to MIPS assembly instructions","archived":false,"fork":false,"pushed_at":"2025-04-30T10:47:36.000Z","size":226,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T11:25:22.714Z","etag":null,"topics":["c","code-conversion","cprogramming","homework-assignments","mips"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moulahguine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-30T09:56:02.000Z","updated_at":"2025-04-30T10:51:23.000Z","dependencies_parsed_at":"2025-04-30T11:37:25.682Z","dependency_job_id":null,"html_url":"https://github.com/moulahguine/mips-student-projects","commit_stats":null,"previous_names":["moulahguine/mips-student-projects"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moulahguine/mips-student-projects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moulahguine%2Fmips-student-projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moulahguine%2Fmips-student-projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moulahguine%2Fmips-student-projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moulahguine%2Fmips-student-projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moulahguine","download_url":"https://codeload.github.com/moulahguine/mips-student-projects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moulahguine%2Fmips-student-projects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34522034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","code-conversion","cprogramming","homework-assignments","mips"],"created_at":"2026-06-19T07:32:07.554Z","updated_at":"2026-06-19T07:32:08.340Z","avatar_url":"https://github.com/moulahguine.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MIPS Assembly Practice – Student Projects\n\nThis repository contains four beginner-level MIPS assembly programs written and tested using the [MARS simulator](http://courses.missouristate.edu/KenVollmar/MARS/). These programs are based on basic C code exercises (conditionals, loops, arrays) and rewritten step-by-step in MIPS to help understand how low-level logic works\n\n---\n## My Homework\n\n### Original C Code\n![C Code](images/code.png)\n\n### Converted MIPS Code\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/code1.png\" width=\"200\"/\u003e\n  \u003cimg src=\"images/code2.png\" width=\"200\"/\u003e\n  \u003cimg src=\"images/code3.png\" width=\"200\"/\u003e\n  \u003cimg src=\"images/code4.png\" width=\"200\"/\u003e\n\u003c/p\u003e\n\n---\n## Overview\n\nEach file in this project is a simple translation of a small C program into MIPS. No macros, no shortcuts — just basic student-style code using core instructions and syscalls.\n\n| File Name             | Description                                 |\n|----------------------|---------------------------------------------|\n| `q1_compare.asm`     | Compare two integers and apply conditions   |\n| `q2_even_numbers.asm`| Print even numbers from 0 to 9              |\n| `q3_array_double.asm`| Print double the value of each array element|\n| `q4_array_add.asm`   | Add two arrays and print the result         |\n\n---\n\n## How to Run\n\nYou can run these files in the **MARS MIPS Simulator**:\n\n1. Download [MARS.jar](http://courses.missouristate.edu/KenVollmar/MARS/)\n2. Open the `.asm` file\n3. Assemble (`F3`)\n4. Run (`F5`) and enter input if needed\n\n---\n\n## Screenshots\n\n### Running `q1_compare.asm`\n\n![q1_compare](images/q1_compare.png)\n\n### Running `q2_even_numbers.asm`\n\n![q2_even_numbers](images/q2_even_numbers.png)\n\n### Running `q3_array_double.asm`\n\n![q2_even_numbers](images/q3_array_double.png)\n\n### Running `q4_array_add.asm`\n\n![q2_even_numbers](images/q4_array_add.png)\n\n---\n\n## What I Learned\n\n- Using `syscall` for input/output\n- Comparing values with `bgt`, `ble`, `beq`\n- Looping with `addi`, `slt`, and labels\n- Working with arrays in memory (`la`, `lw`, `sw`)\n- Keeping code clean and readable\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoulahguine%2Fmips-student-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoulahguine%2Fmips-student-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoulahguine%2Fmips-student-projects/lists"}