{"id":15287462,"url":"https://github.com/kondrak/disasm6502","last_synced_at":"2025-08-13T19:21:22.040Z","repository":{"id":57619700,"uuid":"66448999","full_name":"kondrak/disasm6502","owner":"kondrak","description":"6502 disassembler","archived":false,"fork":false,"pushed_at":"2023-07-11T21:28:16.000Z","size":55,"stargazers_count":24,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T22:12:36.173Z","etag":null,"topics":["6502","6502-assembly","disassembler","disassembly","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/kondrak.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}},"created_at":"2016-08-24T09:05:30.000Z","updated_at":"2024-03-04T07:13:49.000Z","dependencies_parsed_at":"2022-09-26T18:10:47.270Z","dependency_job_id":null,"html_url":"https://github.com/kondrak/disasm6502","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/kondrak%2Fdisasm6502","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kondrak%2Fdisasm6502/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kondrak%2Fdisasm6502/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kondrak%2Fdisasm6502/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kondrak","download_url":"https://codeload.github.com/kondrak/disasm6502/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670506,"owners_count":21142897,"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","6502-assembly","disassembler","disassembly","rust"],"created_at":"2024-09-30T15:28:15.232Z","updated_at":"2025-04-13T05:38:08.288Z","avatar_url":"https://github.com/kondrak.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# disasm6502\n\n[![Crates.io](https://img.shields.io/crates/v/disasm6502.svg)](https://crates.io/crates/disasm6502)\n[![Documentation](https://docs.rs/disasm6502/badge.svg)](https://docs.rs/disasm6502)\n[![build](https://github.com/kondrak/disasm6502/actions/workflows/rust.yml/badge.svg)](https://github.com/kondrak/disasm6502/actions/workflows/rust.yml)\n[![Coverage Status](https://coveralls.io/repos/github/kondrak/disasm6502/badge.svg?branch=master)](https://coveralls.io/github/kondrak/disasm6502?branch=master)\n![](https://img.shields.io/crates/l/json.svg)\n\nA crate providing functionality to disassemble 6502 binary code. Supports decoding of forbidden instructions, provides information about cycle count, which registers the instruction accesses and which status flags are affected. Acceptable data input can be either an array of bytes, a vector of bytes or a binary file.\n\n[Documentation](https://docs.rs/disasm6502)\n\nUsage\n-----\n```toml\n# Cargo.toml\n[dependencies]\ndisasm6502 = \"0.2\"\n```\n\nExample\n-------\n```rust\nextern crate disasm6502;\n\nfn main()\n{\n    let bytes = vec![0x05, 0x0B, 0x6C, 0x01, 0x02,\n                     0x0A, 0xA2, 0xFF, 0x20, 0x02,\n                     0xFD, 0x78, 0xD0, 0xFC, 0x1D,\n                     0x05, 0x1E, 0x04, 0x15, 0x02,\n                     0x96, 0xAB, 0x58, 0x61, 0x01,\n                     0x91, 0xFB];\n\n    // disassemble...\n    let instructions = disasm6502::from_array(\u0026bytes).unwrap();\n\n    // ...and print!\n    for i in instructions.iter() {\n        println!(\"{}\", i);\n    }\n}\n```\n\nBuild instructions\n------------------\n\n```\ncargo build\ncargo run --example disasm6502\n```\n\nThis will run the [example](https://github.com/kondrak/disasm6502/blob/master/examples/disasm6502.rs) which produces the following output:\n\n```asm\n$0000: 05 0B    ORA $0B           (3)  Reads:[A]    Writes:[A]    Affects:[NZ]\n$0002: 6C 01 02 JMP ($0201)       (5)                             \n$0005: 0A       ASL A             (2)  Reads:[A]    Writes:[A]    Affects:[NZC]\n$0006: A2 FF    LDX #$FF          (2)               Writes:[X]    Affects:[NZ]\n$0008: 20 02 FD JSR $FD02         (6)                             \n$000B: 78       SEI               (2)                             Affects:[I]\n$000C: D0 FC    BNE $000A         (*4)                            \n$000E: 1D 05 1E ORA $1E05,X       (*5) Reads:[AX]   Writes:[A]    Affects:[NZ]\n$0011: 04 15    NOP $15       ??? (3)                             \n$0013: 02       HLT           ??? (1)                             \n$0014: 96 AB    STX $AB,Y         (4)  Reads:[XY]                 \n$0016: 58       CLI               (2)                             Affects:[I]\n$0017: 61 01    ADC ($01,X)       (6)  Reads:[AX]   Writes:[A]    Affects:[NVZC]\n$0019: 91 FB    STA ($FB),Y       (6)  Reads:[AY]                 \n$001B: .END\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkondrak%2Fdisasm6502","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkondrak%2Fdisasm6502","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkondrak%2Fdisasm6502/lists"}