{"id":20596856,"url":"https://github.com/alexander-akhmetov/mos6502","last_synced_at":"2025-07-05T03:10:26.103Z","repository":{"id":48666691,"uuid":"186133666","full_name":"alexander-akhmetov/mos6502","owner":"alexander-akhmetov","description":"MOS 6502 CPU emulator","archived":false,"fork":false,"pushed_at":"2025-05-23T18:59:43.000Z","size":95,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-23T19:34:12.475Z","etag":null,"topics":["cpu","cpu-emulator","mos6502"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/alexander-akhmetov.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":"2019-05-11T13:02:23.000Z","updated_at":"2025-05-23T18:59:41.000Z","dependencies_parsed_at":"2024-06-29T20:44:21.754Z","dependency_job_id":"a2aca81d-b096-4655-8930-d2f08213d67a","html_url":"https://github.com/alexander-akhmetov/mos6502","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/alexander-akhmetov/mos6502","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-akhmetov%2Fmos6502","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-akhmetov%2Fmos6502/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-akhmetov%2Fmos6502/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-akhmetov%2Fmos6502/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexander-akhmetov","download_url":"https://codeload.github.com/alexander-akhmetov/mos6502/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-akhmetov%2Fmos6502/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263674489,"owners_count":23494584,"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":["cpu","cpu-emulator","mos6502"],"created_at":"2024-11-16T08:19:09.923Z","updated_at":"2025-07-05T03:10:26.085Z","avatar_url":"https://github.com/alexander-akhmetov.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MOS 6502 CPU emulator\n\nSimple emulator of the [MOS 6502](https://en.wikipedia.org/wiki/MOS_Technology_6502) CPU.\nI used it to build an [Apple-1](https://github.com/alexander-akhmetov/apple1) emulator.\n\n## Usage\n\n```rust\nlet mut cpu = mos6502::cpu::CPU::new();\n\nlet program = \"LDA #$c0\nTAX\nINX\nADC #$c4\";\n\n// you can skip this step,\n// if you load an assembled machine code\nlet bytes = mos6502::asm::assemble(\u0026program);\n\ncpu.load(\u0026bytes, 0x800);\n\ncpu.run();\n```\n\n## Tests\n\nRun tests:\n\n```shell\ncargo test\n```\n\n### Functional tests\n\nYou can download functional tests from this [repository](https://github.com/Klaus2m5/6502_65C02_functional_tests).\nPut the `6502_functional_test.bin` file to the root of the repository and then run:\n\n```shell\nwget \"https://github.com/Klaus2m5/6502_65C02_functional_tests/blob/master/bin_files/6502_functional_test.bin?raw=true\" -O 6502_functional_test.bin\n\nmake functional-tests\n```\n\n## Resources\n\n* [6502 instruction set](https://www.masswerk.at/6502/6502_instruction_set.html#BIT)\n* [6502 memory test](http://www.willegal.net/appleii/6502mem.htm)\n* [6502 instructions description with undocumented commands](http://www.zimmers.net/anonftp/pub/cbm/documents/chipdata/64doc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexander-akhmetov%2Fmos6502","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexander-akhmetov%2Fmos6502","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexander-akhmetov%2Fmos6502/lists"}