{"id":24177641,"url":"https://github.com/jacraul/binarycalculator","last_synced_at":"2026-05-31T21:32:02.101Z","repository":{"id":272200207,"uuid":"915809041","full_name":"jacraul/BinaryCalculator","owner":"jacraul","description":"My project for Computer Architecture subject at FILS UPB","archived":false,"fork":false,"pushed_at":"2025-01-13T18:52:40.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T17:12:19.975Z","etag":null,"topics":["assembly"],"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/jacraul.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":"2025-01-12T21:16:01.000Z","updated_at":"2025-01-13T18:52:43.000Z","dependencies_parsed_at":"2025-01-12T22:22:07.911Z","dependency_job_id":"8349ce7d-6646-4f69-ac40-27e9a67c571a","html_url":"https://github.com/jacraul/BinaryCalculator","commit_stats":null,"previous_names":["jacraul/binarycalculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacraul%2FBinaryCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacraul%2FBinaryCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacraul%2FBinaryCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacraul%2FBinaryCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacraul","download_url":"https://codeload.github.com/jacraul/BinaryCalculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241541451,"owners_count":19979121,"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"],"created_at":"2025-01-13T04:15:21.560Z","updated_at":"2026-05-31T21:32:02.047Z","avatar_url":"https://github.com/jacraul.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binary to Decimal Converter in EMU8086\n\n## Description\n\nThis project is an assembly language program written for the EMU8086 microprocessor emulator. It converts a binary number entered by the user into its decimal equivalent and displays the result.\n\n## Features\n\n- Accepts binary input from the user.\n- Validates the input to ensure only `0` and `1` are entered.\n- Converts the binary number to its decimal equivalent.\n- Displays the result in a user-friendly format.\n\n## Files\n\n- `CAProject.asm`: The source code for the binary to decimal conversion program.\n\n## How It Works\n\n1. **Input**:\n   - The program prompts the user to enter a binary number.\n   - The user inputs a series of `0` and `1` characters.\n   - Input ends when the user presses Enter.\n\n2. **Conversion**:\n   - The binary number is processed bit by bit to calculate its decimal equivalent.\n\n3. **Output**:\n   - The program prints the decimal equivalent of the entered binary number.\n\n## Instructions to Run\n\n1. Open EMU8086 and load the `CAProject.asm` file.\n2. Assemble the code.\n3. Run the program using the emulator.\n4. Enter a binary number when prompted.\n5. View the decimal output displayed on the screen.\n\n## Code Highlights\n\n### Input Handling\n```assembly\nMOV AH, 1      \nINT 21h\nCMP AL, 13        \nJE CONVERT\n```\n\n### Conversion Logic\n```assembly\nMOV AX, BX   \nMOV BX, 0      \nMOV SI, 1   \n\nCONVERT_LOOP: \nTEST AX, 1   \nJZ SKIP_ADD\nADD BX, SI\n```\n\n### Output\n```assembly\nPRINT_LOOP: \nXOR DX, DX     \nDIV CX         \nADD DL, '0'    \nPUSH DX       \n```\n\n## Requirements\n\n- EMU8086 emulator.\n\n## Example\n\n### Input:\n```\nEnter your binary number:\n1011\n```\n\n### Output:\n```\nDECIMAL NUMBER:\n11\n```\n\n## License\n\nThis project is open-source and free to use for educational purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraul%2Fbinarycalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacraul%2Fbinarycalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraul%2Fbinarycalculator/lists"}