{"id":18550654,"url":"https://github.com/openrakis/logo","last_synced_at":"2026-04-27T11:31:40.801Z","repository":{"id":113415967,"uuid":"534766155","full_name":"OpenRakis/LOGO","owner":"OpenRakis","description":"A fully reverse-engineered real DOS app exemple, from the floppy version of DUNE (WIP).","archived":false,"fork":false,"pushed_at":"2025-11-19T09:02:44.000Z","size":7960,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-19T09:11:36.983Z","etag":null,"topics":["assembly-x86","dotnet","dune","msdos","reverse-engineering"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenRakis.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-09T18:44:46.000Z","updated_at":"2025-11-19T07:12:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f59a758-d593-4123-ac15-5b79f52e83df","html_url":"https://github.com/OpenRakis/LOGO","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OpenRakis/LOGO","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenRakis%2FLOGO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenRakis%2FLOGO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenRakis%2FLOGO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenRakis%2FLOGO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenRakis","download_url":"https://codeload.github.com/OpenRakis/LOGO/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenRakis%2FLOGO/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["assembly-x86","dotnet","dune","msdos","reverse-engineering"],"created_at":"2024-11-06T21:05:24.430Z","updated_at":"2026-04-27T11:31:40.786Z","avatar_url":"https://github.com/OpenRakis.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LOGO\nA fully reverse-engineered real DOS app exemple, from the floppy version of DUNE.\n\n\u003cdiv style=\"height: 25px; width: 160px; border: 1px solid red; white-space: nowrap; text-align: center; margin: 1em 0;\"\u003e\n    \u003cspan style=\"display: inline-block; height: 100%; vertical-align: middle;\"\u003e\u003c/span\u003e\u003cimg src=\"logo.gif\" style=\"vertical-align: middle; max-height: 400px; max-width: 640px;\" height=\"400\" /\u003e\n\u003c/div\u003e\n\n## High level view\n\n\nIn this animation there is a lot. Let's break it down:\n\n- Call to the DOS Open File Interrupt (LOGO.HNM is the argument)\n- The code checks 288 times overall (via the BIOS Keyboard interrupts) for any key received in the input buffer, and exit to DOS in that case.\n- Constant changes to the VGA palette\n- Loops to animate colors on the screen (and wait ~16.667 ms for the VGA retrace in between)\n- Call to the DOS Read File Interrupt (several times)\n- Copy part of the file into the main memory\n- Decompression of video frames read in memory previously\n- Show it to the screen (which means changes to the VGA palette, and deciding where to write which color on the screen)\n- Call to the DOS Close File Interrupt\n- Call to the \"Quit with exit code\" DOS Interrupt (here, in Spice86, Cpu.IsRunning is set to false, marking the end of the emulation loop)\n- Call to to the DOS Print String Interrupt (for some reason)\n- Call to the \"Exit to DOS\" Interrupt (here, the Spice86 emulation loop exits, since the DOS command prompt isn't emulated)\n\n## Purpose\n\nThis repository serves as an example in order to document and show case the usage of Spice86.\n\n\nLOGO.EXE and LOGO.HNM only exist in the PC Floppy version of DUNE.\n\n## How to run\n\nGet LOGO.EXE from the floppy version of Dune.\n\nsha256 checksum:\n\n    896a55f02555f708b57c6fd7576c8404aa479c1ec6e90fbbb230130bc7a31921\nThen:\n\n    dotnet run -e /path/to/LOGO.EXE -d false\n\n## Main files of interest\n\n- Program.cs : Entry point.\n\n- CodeGeneratorConfig.json: Configuration file used by the Ghidra script named \"Spice86CodeGenerator.java\". This script is available on the Spice86 repo.\n\n\n### Namespace\n\nThe namespace of your assembly the Generated Code must use.\n\n### CheckExternalEvents\n\nCheckExternalEvents must be called often enough to let interrupts run. Interrupts such as DOS interrupts, keyboard interrupts, ...\n\nYou can either let the code generator insert it everywhere with\n\n    GenerateCheckExternalEventsBeforeInstruction\n\n(probably overkill)\n\nOr inject it at keypoints with (for example):\n\n        \"CodeToInject\": {\n        \"CheckExternalEvents({nextSegment}, {nextOffset});\": [\"CS1:100B\", \"CS1:09C1\", \"CS1:09EC\", \"CS1:098C\", \"CS1:09D9\"]\n    },\n\n- GeneratedCode_OriginalAsm.cs: Code generated by Spice86CodeGenerator.java (Ghidra script)\n- GeneratedCode_DecompiledAsm.cs: (optional step) Code written by the .NET Ahead of Time compilation and re-formed into C# from the IL by Jetbrains Dotpeek. This is optional, but the compiler removes a lot of GOTOs for us.\n- GeneratedCode: Final high level translation of \"C# ASM\" to high level C#. This is done by hand.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenrakis%2Flogo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenrakis%2Flogo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenrakis%2Flogo/lists"}