{"id":18419020,"url":"https://github.com/redcode/6502","last_synced_at":"2025-04-07T13:31:27.044Z","repository":{"id":12448964,"uuid":"15108769","full_name":"redcode/6502","owner":"redcode","description":"Highly portable MOS 6502 CPU emulator written in ANSI C","archived":false,"fork":false,"pushed_at":"2022-12-24T04:33:51.000Z","size":132,"stargazers_count":160,"open_issues_count":3,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-22T19:03:21.162Z","etag":null,"topics":["6502","ansi-c","c","cpu","cpu-emulator","emulator","mos"],"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/redcode.png","metadata":{"files":{"readme":"README","changelog":"HISTORY","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-11T14:02:11.000Z","updated_at":"2025-02-26T01:33:56.000Z","dependencies_parsed_at":"2023-01-11T18:19:33.521Z","dependency_job_id":null,"html_url":"https://github.com/redcode/6502","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2F6502","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2F6502/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2F6502/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2F6502/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redcode","download_url":"https://codeload.github.com/redcode/6502/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247661704,"owners_count":20975104,"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","ansi-c","c","cpu","cpu-emulator","emulator","mos"],"created_at":"2024-11-06T04:15:33.554Z","updated_at":"2025-04-07T13:31:26.673Z","avatar_url":"https://github.com/redcode.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"     ____  ______  ______   ____\n    /  _/_/\\  __/_/\\  __ \\ /\\_, \\\n   /\\  __ \\ \\___  \\ \\ \\/\\ \\\\//  /__\n   \\ \\_____\\/\\____/\\ \\_____\\/\\_____\\\nMOS \\/_____/\\/___/  \\/_____/\\/_____/ CPU Emulator v0.1\nCopyright (C) 1999-2018 Manuel Sainz de Baranda y Goñi \u003cmanuel@zxe.io\u003e\n\nThis is a  very accurate 6502 emulator  that I wrote many years ago.  It is fast,\nsmall, easy to understand, and the code is commented.\n\n\nBuilding\n========\n\n  You must first install Z \u003chttp://zeta.st\u003e, a header-only library that provides\n  types  and macros.  This is  the only  dependency, the  emulator does  not use\n  the  C  standard  library or  its  headers.  Then  add  6502.h and  6502.c  to\n  your  project and  configure  its  build system  so  that CPU_6502_STATIC  and\n  CPU_6502_USE_LOCAL_HEADER are predefined when compiling the sources.\n\n  If you preffer to build the emulator as a library, you can use premake4:\n\n    $ cd building\n    $ premake4 gmake                         # generate Makefile\n    $ make help                              # list available targets\n    $ make [config=\u003cconfiguration\u003e] [target] # build the emulator\n\n  There is also an Xcode project in \"development/Xcode\" with several targets:\n\n  6502 (dynamic)\n    Shared library.\n\n  6502 (dynamic module)\n    Shared library with a generic module ABI to be used in modular multi-machine\n    emulators.\n\n  6502 (static)\n    Static library.\n\n  6502 (static module)\n    Static library  with a  generic CPU  emulator ABI to  be used  in monolithic\n    multi-machine emulators.\n\n\nCode configuration\n==================\n\n  There are some predefined macros that control the compilation:\n\n  CPU_6502_DEPENDENCIES_H\n    If defined,  it replaces the inclusion of any external header with this one.\n    If you don't want to use Z,  you can provide your  own header with the types\n    and macros used by the emulator.\n\n  CPU_6502_HIDE_ABI\n    Makes the generic CPU emulator ABI private.\n\n  CPU_6502_HIDE_API\n    Makes the public functions private.\n\n  CPU_6502_STATIC\n    You need to define  this to compile or use the emulator  as a static library\n    or if you have added 6502.h and 6502.c to your project.\n\n  CPU_6502_USE_LOCAL_HEADER\n    Use this if you have imported 6502.h and 6502.c to your project. 6502.c will\n    #include \"6502.h\" instead of \u003cemulation/CPU/6502.h\u003e.\n\n  CPU_6502_WITH_ABI\n    Builds the generic CPU emulator ABI and declares its prototype in 6502.h.\n\n  CPU_6502_WITH_MODULE_ABI\n    Builds the generic module ABI. This macro also enables CPU_6502_WITH_ABI, so\n    the generic CPU emulator  ABI will be built too.  This option is intended to\n    be  used when  building a  true module  loadable at  runtime with  dlopen(),\n    LoadLibrary() or similar. The ABI module can be accessed via the weak symbol\n    __module_abi__.\n\n\nUse in Proprietary Software\n===========================\n\n  This library is released under the terms of the GNU General Public License v3,\n  but I can license it for non-free/propietary projects if you contact me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcode%2F6502","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredcode%2F6502","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcode%2F6502/lists"}