{"id":24527214,"url":"https://github.com/deric-w/amn","last_synced_at":"2026-01-28T01:34:54.203Z","repository":{"id":111294806,"uuid":"527678478","full_name":"Deric-W/AMN","owner":"Deric-W","description":"Virtual machines for the AMN instructions sets","archived":false,"fork":false,"pushed_at":"2024-11-20T02:55:34.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T22:48:16.062Z","etag":null,"topics":["education","python3","read-eval-print-loop","repl","virtual-machine"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Deric-W.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-08-22T18:04:37.000Z","updated_at":"2024-11-20T02:53:46.000Z","dependencies_parsed_at":"2024-02-07T14:52:58.654Z","dependency_job_id":null,"html_url":"https://github.com/Deric-W/AMN","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"42b326ce38b5087ee110df333570ad59807d6891"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deric-W%2FAMN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deric-W%2FAMN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deric-W%2FAMN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deric-W%2FAMN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Deric-W","download_url":"https://codeload.github.com/Deric-W/AMN/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248905018,"owners_count":21180906,"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":["education","python3","read-eval-print-loop","repl","virtual-machine"],"created_at":"2025-01-22T06:17:11.869Z","updated_at":"2026-01-28T01:34:54.167Z","avatar_url":"https://github.com/Deric-W.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AMN\n\n[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)\n![Tests](https://github.com/Deric-W/AMN/actions/workflows/Tests.yaml/badge.svg)\n[![codecov](https://codecov.io/gh/Deric-W/AMN/branch/main/graph/badge.svg?token=SU3982mC17)](https://codecov.io/gh/Deric-W/AMN)\n\nThe AMN package implements a simple virtual machine for the AM0 and AM1 instructions sets.\n\nTo use it, simply execute it with `python3 -m AMN -i \u003cinstruction set\u003e exec path/to/file.txt` to execute the instructions written in a file.\n\nIf you want an interactive console just use `python3 -m AMN -i \u003cinstruction set\u003e repl`.\n\n## Requirements\n\nPython \u003e= 3.10 is required to use the utility.\n\n## Installation\n\n```sh\npython3 -m pip install AMN\n```\n\n## Examples\n\nThe REPL (read eval print loop) in action:\n\n```\npython3 -m AMN -i am0 repl\nWelcome the the AM0 REPL, type 'help' for help\nAM0 \u003e\u003e exec READ 0\nInput: 8\nAM0 \u003e\u003e exec READ 1\nInput: 42\nAM0 \u003e\u003e exec LOAD 0\nAM0 \u003e\u003e exec LOAD 1\nAM0 \u003e\u003e exec GT\nAM0 \u003e\u003e exec JMC 24\nAM0 \u003e\u003e status\nCounter: 24\nStack: []\nMemory:\n    0 := 8\n    1 := 42\nAM0 \u003e\u003e exit\nExiting REPL...\n```\n\nExample program which outputs the biggest of two numbers:\n\n```\nREAD 0;\nREAD 1;\nLOAD 0;\nLOAD 1;\nGT;\nJMC 10;\nLOAD 0;\nSTORE 2;\nJMP 12;\nLOAD 1;\nSTORE 2;\nWRITE 2;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic-w%2Famn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderic-w%2Famn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic-w%2Famn/lists"}