{"id":17309514,"url":"https://github.com/vulcalien/6502-emulator","last_synced_at":"2025-07-31T16:30:40.620Z","repository":{"id":158445732,"uuid":"374785572","full_name":"Vulcalien/6502-emulator","owner":"Vulcalien","description":"6502 processor emulator","archived":false,"fork":false,"pushed_at":"2024-03-04T20:21:55.000Z","size":72,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T12:28:48.113Z","etag":null,"topics":["6502","cpu-emulator","emulator"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vulcalien.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-07T19:58:26.000Z","updated_at":"2023-01-07T03:08:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"2da97318-5706-43b8-8eba-06751268cfc4","html_url":"https://github.com/Vulcalien/6502-emulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vulcalien%2F6502-emulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vulcalien%2F6502-emulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vulcalien%2F6502-emulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vulcalien%2F6502-emulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vulcalien","download_url":"https://codeload.github.com/Vulcalien/6502-emulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228265809,"owners_count":17893834,"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":["6502","cpu-emulator","emulator"],"created_at":"2024-10-15T12:29:18.855Z","updated_at":"2024-12-05T08:40:54.651Z","avatar_url":"https://github.com/Vulcalien.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 6502 Emulator\nSome time ago, I decided to create a CPU emulator in order to better\nunderstand how these work.\n\nThis emulator is built as a **C library**.\n\n## Using the library\n1. Include the emulator header\n```C\n#include \"6502_emulator.h\"\n```\n\n2. Initialize the library\n```C\ncpu_library_init();\n```\n\n3. Create and set the CPU's IO functions\n```C\ncpu_read_byte = read_byte;\ncpu_write_byte = write_byte;\n```\n\n4. Reset the CPU\n```C\ncpu_reset();\n```\n\n5. Make the CPU run\n```C\nwhile(1) {\n    cpu_clock();\n}\n```\n\n## Resources\n- [This website](http://web.archive.org/web/20210803072420/http://www.obelisk.me.uk/6502/)\ncontains information about architecture, registers, instructions\nand addressing modes.\n- I also used some of the information present in\n[this book](http://archive.6502.org/books/mcs6500_family_hardware_manual.pdf)\nto make sure that the emulator behaves correctly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvulcalien%2F6502-emulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvulcalien%2F6502-emulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvulcalien%2F6502-emulator/lists"}