{"id":15659301,"url":"https://github.com/superilu/lib16","last_synced_at":"2025-09-14T15:25:50.517Z","repository":{"id":101411356,"uuid":"338554289","full_name":"SuperIlu/lib16","owner":"SuperIlu","description":"Small 16-bit DOS library for use with OpenWatcom","archived":false,"fork":false,"pushed_at":"2025-04-21T16:06:58.000Z","size":1937,"stargazers_count":33,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-21T17:25:32.037Z","etag":null,"topics":["freedos","ms-dos","msdos"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperIlu.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}},"created_at":"2021-02-13T10:58:51.000Z","updated_at":"2025-04-21T16:07:03.000Z","dependencies_parsed_at":"2025-03-09T22:31:48.242Z","dependency_job_id":"ff9dd77e-e797-4453-be9a-fa92c39339dd","html_url":"https://github.com/SuperIlu/lib16","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperIlu%2Flib16","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperIlu%2Flib16/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperIlu%2Flib16/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperIlu%2Flib16/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperIlu","download_url":"https://codeload.github.com/SuperIlu/lib16/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252544080,"owners_count":21765283,"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":["freedos","ms-dos","msdos"],"created_at":"2024-10-03T13:16:08.595Z","updated_at":"2025-05-05T17:39:49.414Z","avatar_url":"https://github.com/SuperIlu.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libsixteen (aka lib16)\n## Small helper library for MS-DOS\n\nLibsixteen provides helper functions for VGA mode 0x13 graphics, BMP loading/saving, mouse pointers, OPL2 music, raw disk access and IPX networking.\nIt was written just for fun using [OpenWatcom](https://github.com/open-watcom).\n\nVGA code is based on the [256-Color VGA Programming in C](http://www.brackeen.com/vga/index.html) tutorial by David Brackeen\n\nIPX code was developed with the help of the Cylindrix [source](https://github.com/hyperlogic/cylindrix/blob/master/src/legacy/jonipx.c).\n\nOPL2 code was ported from [ArduinoOPL2](https://github.com/DhrBaksteen/ArduinoOPL2).\n\nBe warned: the raw disk access code ist mostly untested, use at you own risk!\n\n### files/directories\n```\n|\n+- fonts/\t\texample fonts and a Python script to convert TTF to BMP.\n+- lib/\t\t\tlib16 library source files\n+- lua-5.4.7/\tlua 5.4.7 source\n+- prj01/\t\tshowcase for all the implemented functions\n+- prj02/\t\tmulti player drawing canvas using IPX\n+- prj03/\t\tlib16 port of demotune.cpp\n+- prj04/\t\texample code using lua-5.4.7\n+- LICENSE\t\tlicense description for all parts provided\n```\n\nI have included the OpenWatcom project files as a reference. You need to change these if you want to compile the examples yourself because OpenWatcom includes absolute paths in these files.\n\nThe EXE were compiled for i386 w/ i387.\n\n### Tunables/defines\n#### VGA_DYNAMIC_TABLE\nif defined the SIN/ACOS table for drawing circles is created dynamically when vga_init() is called. If undefined a pre-compiled table is used. Using the pre-compiled table can reduce EXE size when `sin()/acos()` is not used elsewhere.\n\n### NO_ERRORS\nIf defined the `errno` functionality in `error.h/error.c` clone is disabled. This reduces EXE size.\n\n## Fonts\n### Converter\nfont_converter.py can be used to create BMP fonts for `bitmap_render_char()` and `bitmap_render_string()`.\nIt needs at least Python 3.6 and PyGame.\n\n### \"Computer\" and \"Magic 5\"\nThese font are kindly included with permission of DamienG https://damieng.com/typography/zx-origins/\nMake sure to check his site for more awesome fonts.\n\n## Contact\nYou can find me on [Mastodon](https://mastodon.social/@dec_hl) if you want...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperilu%2Flib16","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperilu%2Flib16","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperilu%2Flib16/lists"}