{"id":20072380,"url":"https://github.com/markolson/nex","last_synced_at":"2026-03-11T01:02:12.123Z","repository":{"id":140484725,"uuid":"59708985","full_name":"markolson/Nex","owner":"markolson","description":"Why on earth would I try to write an NES emulator in Elixir? This is so dumb","archived":false,"fork":false,"pushed_at":"2016-06-15T04:36:54.000Z","size":207,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T20:42:00.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/markolson.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":"2016-05-26T01:11:50.000Z","updated_at":"2023-09-01T10:47:12.000Z","dependencies_parsed_at":"2023-03-13T05:31:03.901Z","dependency_job_id":null,"html_url":"https://github.com/markolson/Nex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markolson/Nex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolson%2FNex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolson%2FNex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolson%2FNex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolson%2FNex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markolson","download_url":"https://codeload.github.com/markolson/Nex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolson%2FNex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30364608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T14:39:47.229Z","updated_at":"2026-03-11T01:02:12.084Z","avatar_url":"https://github.com/markolson.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NEX\n\nElixir/OpenGL NES Emulator, because why the heck not.\nAll technology is pointless.\n\n\n## Short-term TODO list\n\n* Turn CPU into a Genserver\n* Macro the hell out of opcodes\n* Get something nicer around setting flags/registers\n\n\n## Notes\n\n\nhttp://nesdev.com/6502.txt\nhttp://www.intel-assembler.it/portale/5/6502_undocumented_opcodes/CPU_6502_features.asp\nNesTest is a NROM-128 with no mapper\nIn NROM-128, the 16k PRG ROM is mirrored into both $8000-$BFFF and $C000-$FFFF.\nSo execution can start at C000, which is really location 0000 in the ROM itself. \nWhat have I gotten myself into. Mappers are going to require some thought...\n\n\n\n```\nt = Nex.CPU.boot(\"test/roms/nestest/nestest.nes\")\n{t2, _} = Nex.CPU.run_instruction(t)  # JPM\n{t3, _} = Nex.CPU.run_instruction(t2) # LDX\n{t4, _} = Nex.CPU.run_instruction(t3) # STX\n{t5, _} = Nex.CPU.run_instruction(t4) # STX\n{t6, _} = Nex.CPU.run_instruction(t5) # STX\n{t7, _} = Nex.CPU.run_instruction(t6) # JSR\n\ncpu = Nex.CPU.boot('test/roms/nestest/nestest.nes')\nNex.CPU.flock(cpu)\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkolson%2Fnex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkolson%2Fnex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkolson%2Fnex/lists"}