{"id":17675607,"url":"https://github.com/ernanej/assembly-mips-ca","last_synced_at":"2025-03-30T17:14:56.680Z","repository":{"id":237413279,"uuid":"649508933","full_name":"ErnaneJ/assembly-mips-ca","owner":"ErnaneJ","description":"Notes and examples referring to the study of the set of instructions that form the basis of low-level programming of processors with a focus on the set of instructions of the 32-bit MIPS architecture.","archived":false,"fork":false,"pushed_at":"2023-06-05T03:08:34.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T18:59:50.538Z","etag":null,"topics":["assembly","computer-architecture","dca0104","mips"],"latest_commit_sha":null,"homepage":"","language":null,"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/ErnaneJ.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}},"created_at":"2023-06-05T03:08:02.000Z","updated_at":"2023-06-05T03:09:35.000Z","dependencies_parsed_at":"2024-05-01T14:30:10.673Z","dependency_job_id":"9fc33e5a-698f-4518-a749-499bdfacedc5","html_url":"https://github.com/ErnaneJ/assembly-mips-ca","commit_stats":null,"previous_names":["ernanej/assembly-mips-ca"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnaneJ%2Fassembly-mips-ca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnaneJ%2Fassembly-mips-ca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnaneJ%2Fassembly-mips-ca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnaneJ%2Fassembly-mips-ca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErnaneJ","download_url":"https://codeload.github.com/ErnaneJ/assembly-mips-ca/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246351017,"owners_count":20763232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["assembly","computer-architecture","dca0104","mips"],"created_at":"2024-10-24T07:22:52.094Z","updated_at":"2025-03-30T17:14:56.637Z","avatar_url":"https://github.com/ErnaneJ.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Assembly MIPS\n\nNotes and examples referring to the study of the set of instructions that form the basis of low-level programming of processors with a focus on the set of instructions of the 32-bit MIPS architecture.\n\n## MIPS System Calls\n\nMIPS programs can make system calls by placing parameters in specified registers, depending on the call, and executing a trap instruction. Returned results are made available in other specified registers, also depending on the call.\n\nThe trap mechanism used differs from the `syscall` mechanism used by real MIPS. However, the numbers used to identify the system calls are the same. (_where possible_)\n\n|Service|Trap Code|Input|Output|Notes|\n|--- |--- |--- |--- |--- |\n|print_int|1|$4 is int to print||Print an int value to standard output in decimal.|\n|print_float|2|$f12 is float to print||NOT IMPLEMENTED!  Print a float value to standard output.|\n|print_double|3|$f12 (with $f13) is double to print||NOT IMPLEMENTED!  Print a double value to standard output.|\n|print_string|4|$4 is address of `ASCIIZ` string to print||Print an `ASCIIZ` string to standard output. The contents of $1 are destroyed in the process.|\n|read_int|5||$2 is int read|Read a line of standard input as an int value expressed in decimal.|\n|read_float|6||$f12 is float read|NOT IMPLEMENTED!  Read a line of standard input as a float value.|\n|read_double|7||$f12 (with $f13) is double read|NOT IMPLEMENTED!  Read a line of standard input as a double value.|\n|read_string|8|$4 is address of buffer, $5 is buffer size in bytes||Read a line of standard input into a string buffer. The contents of $1 are destroyed in the process.|\n|sbrk|9|$4 is number of bytes required|$2 is address of allocated memory|NOT IMPLEMENTED!  Allocate memory from the heap.|\n|exit|10|||Terminate execution of the MIPS program.|\n|print_byte|101|$4 contains byte to print||Print a single byte to standard output.|\n|read_byte|102||$2 contains byte read|Read a single byte from standard input.|\n|set_print_inst_on|103|||For debugging.  Turns on printing of each instruction before execution.|\n|set_print_inst_off|104|||For debugging.  Turns off printing of each instruction before execution.|\n|get_print_inst|105||$2 contains current status of printing instructions||","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernanej%2Fassembly-mips-ca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernanej%2Fassembly-mips-ca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernanej%2Fassembly-mips-ca/lists"}