{"id":15060042,"url":"https://github.com/shingareom/microprocessordiplomaproject","last_synced_at":"2026-01-02T12:31:23.065Z","repository":{"id":255196299,"uuid":"848826029","full_name":"shingareom/MicroprocessorDiplomaProject","owner":"shingareom","description":"This project is a simple assembly language program that searches for a user-entered number in a predefined array. The program is written in x86 assembly language and runs on a DOS environment. The purpose is to demonstrate basic input/output operations and array processing in assembly language.","archived":false,"fork":false,"pushed_at":"2024-08-28T13:42:42.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T04:12:54.422Z","etag":null,"topics":["asm","assembly","diploma","omshingare","shingareom"],"latest_commit_sha":null,"homepage":"https://omshingare.me","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shingareom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-28T13:29:49.000Z","updated_at":"2024-08-28T13:42:45.000Z","dependencies_parsed_at":"2024-08-28T15:03:17.931Z","dependency_job_id":"e199dea6-6899-401e-a5c9-0b8ab7950561","html_url":"https://github.com/shingareom/MicroprocessorDiplomaProject","commit_stats":null,"previous_names":["shingareom/microprocessordiplomaproject"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shingareom%2FMicroprocessorDiplomaProject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shingareom%2FMicroprocessorDiplomaProject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shingareom%2FMicroprocessorDiplomaProject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shingareom%2FMicroprocessorDiplomaProject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shingareom","download_url":"https://codeload.github.com/shingareom/MicroprocessorDiplomaProject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681084,"owners_count":20330155,"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":["asm","assembly","diploma","omshingare","shingareom"],"created_at":"2024-09-24T22:51:38.212Z","updated_at":"2026-01-02T12:31:23.012Z","avatar_url":"https://github.com/shingareom.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Number Search in Array (Assembly Language)\n\n## Overview\n\n![Project Img](https://github.com/user-attachments/assets/78e2eeaa-7f17-47ed-a7bc-ebe60c0e816a)\n\nThis project is a simple assembly language program that searches for a user-entered number in a predefined array. The program is written in x86 assembly language and runs on a DOS environment. The purpose is to demonstrate basic input/output operations and array processing in assembly language.\n\n## Author\n\n- [Om Shingare](https://github.com/ShingareOm)\n\n## Features\n\n- Prompts the user to enter a number.\n- Searches for the entered number in a predefined array.\n- Displays the index of the number if it is found.\n- Displays a message indicating the number is not present if it is not found.\n\n## Program Flow\n\n1. **Initialization**: \n   - Set up the data segment and initialize pointers and registers.\n\n2. **User Input**:\n   - Prompt the user to enter a number.\n   - Read the user's input and store it in the `num` variable.\n\n3. **Search Operation**:\n   - Traverse through the predefined array (`myarr`).\n   - Compare each element with the user-entered number.\n   - If the number is found, jump to the `exit` label to display the index.\n   - If the number is not found by the end of the array, jump to the `exitt` label to display a not-found message.\n\n4. **Output**:\n   - Display the index of the number if found.\n   - Display a message indicating the number is not present if not found.\n\n5. **Exit**:\n   - Terminate the program.\n\n## Code Explanation\n\n- **Data Segment**:\n  - `myarr`: An array of numbers to be searched.\n  - `num`: The number input by the user.\n  - `index`: To store the current index during the search.\n  - `isfound`: A flag to indicate if the number was found.\n  - `enter`, `found`, `notfound`: Strings for user interaction.\n\n- **Code Segment**:\n  - Uses `int 21h` for DOS interrupt services to handle input and output.\n  - Utilizes loop constructs and conditional jumps to search the array.\n\n## Usage\n\n1. **Compile**:\n   - Assemble the code using an assembler such as MASM or TASM.\n\n2. **Run**:\n   - Execute the compiled program in a DOS environment or DOS emulator.\n\n3. **Enter a Number**:\n   - Follow the on-screen prompts to enter a number between 0 and 9.\n\n4. **View Results**:\n   - The program will display whether the number was found and its index or indicate that the number is not present.\n\n## Example\n\n```\nEnter the number: 5\nnumber is present in the array at index 4\n```\n\n## Notes\n\n- Ensure that you are using a DOS environment or emulator like DOSBox to run this assembly program.\n- The code is designed for educational purposes and may require modifications for different environments or more complex use cases.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshingareom%2Fmicroprocessordiplomaproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshingareom%2Fmicroprocessordiplomaproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshingareom%2Fmicroprocessordiplomaproject/lists"}