{"id":18419018,"url":"https://github.com/redcode/z80-lkm","last_synced_at":"2025-08-13T18:43:18.140Z","repository":{"id":73652882,"uuid":"574247623","full_name":"redcode/Z80-LKM","owner":"redcode","description":"Zilog Z80 CPU emulator - Linux kernel module","archived":false,"fork":false,"pushed_at":"2022-12-26T12:18:17.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T13:37:14.336Z","etag":null,"topics":["cpu","cpu-emulator","emulator","kernel-module","linux","linux-kernel","linux-kernel-module","lkm","z80","z80-emulator","zilog"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/redcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/Kbuild.in","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"redcode","ko_fi":"redcode","liberapay":"redcode","patreon":"redcode"}},"created_at":"2022-12-04T21:35:36.000Z","updated_at":"2024-09-09T17:11:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"f25ffd86-2230-4708-900b-dfddeeb398b2","html_url":"https://github.com/redcode/Z80-LKM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redcode/Z80-LKM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2FZ80-LKM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2FZ80-LKM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2FZ80-LKM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2FZ80-LKM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redcode","download_url":"https://codeload.github.com/redcode/Z80-LKM/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redcode%2FZ80-LKM/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264729339,"owners_count":23654997,"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","emulator","kernel-module","linux","linux-kernel","linux-kernel-module","lkm","z80","z80-emulator","zilog"],"created_at":"2024-11-06T04:15:33.334Z","updated_at":"2025-07-11T04:32:57.962Z","avatar_url":"https://github.com/redcode.png","language":"CMake","readme":"\u003ch1\u003e\u003cb\u003eZ80-LKM\u003c/b\u003e\u003c/h1\u003e\n\u003cp\u003e\n\t\u003ca href=\"https://github.com/redcode/Z80-LKM/actions/workflows/build_kernel_module.yml\"\u003e\n\t\t\u003cimg src=\"https://github.com/redcode/Z80-LKM/actions/workflows/build_kernel_module.yml/badge.svg\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://discord.gg/zU4dkzp8Mv\"\u003e\n\t\t\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/848534208129138738?color=5865F2\u0026label=Discord\u0026logo=discord\u0026logoColor=white\"/\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\nThis tiny project allows you to build the [Z80 library](https://github.com/redcode/Z80) as a Linux kernel module.\n\n## Build\n\n### Prerequisites\n\n* CMake v3.14 or later.\n* Linux kernel headers.\n\n### Configuration options\n\nThe CMake script supports the following options:\n\n* \u003cspan id=\"option_Z80_LKM_STABLE\"\u003e**`-DLINUX_KERNEL_HEADERS_DIR=\u003cpath\u003e`**\u003c/span\u003e  \n\tSpecify the directory of the Linux kernel headers.  \n\tIf this option is not defined, the directory will be autodetected.  \n\tNot defined by default.\n\n* \u003cspan id=\"option_Z80_LKM_STABLE\"\u003e**`-DZ80_LKM_STABLE=(YES|NO)`**\u003c/span\u003e  \n\tDownload the source code packages of the stable versions of Z80 and Zeta instead of cloning the `master` branch from their respective Git repositories.  \n\tThe default is `NO`.\n\n### Build\n\nType the following:\n\n```shell\ngit clone https://github.com/redcode/Z80-LKM.git\nmkdir Z80-LKM/build\ncd Z80-LKM/build\ncmake .. [options]\nmake\n```\n\nThis will generate the `z80.ko` module, which then you can load and unload:\n\n```shell\ninsmod z80.ko     # Load the module\ndmesg | tail -n 1 # Will print \"Zilog Z80 CPU emulator v0.2\"\nrmmod z80         # Unload the module\n```\n\n## License\n\n\u003cimg src=\"https://www.gnu.org/graphics/gplv3-127x51.png\" align=\"right\"\u003e\n\nCopyright © 2022 Manuel Sainz de Baranda y Goñi.  \n\nThis program is [free software](https://www.gnu.org/philosophy/free-sw.html): you can redistribute it and/or modify it under the terms of the **[GNU General Public License](https://www.gnu.org/licenses/gpl-3.0.en.html)** as published by the [Free Software Foundation](https://www.fsf.org), either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but **WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE**. See the GNU General Public License for more details.\n\nYou should have received a [copy](COPYING) of the GNU General Public License along with this program. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","funding_links":["https://github.com/sponsors/redcode","https://ko-fi.com/redcode","https://liberapay.com/redcode","https://patreon.com/redcode"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcode%2Fz80-lkm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredcode%2Fz80-lkm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcode%2Fz80-lkm/lists"}