{"id":18378075,"url":"https://github.com/mlabbe/asmfunbox","last_synced_at":"2025-04-06T22:32:12.690Z","repository":{"id":21540119,"uuid":"24859657","full_name":"mlabbe/asmfunbox","owner":"mlabbe","description":"Learn x64 assembly by making games!","archived":false,"fork":false,"pushed_at":"2023-10-02T18:49:01.000Z","size":36,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T07:24:12.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"huangzehao/Super-Resolution.Benckmark","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlabbe.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":"2014-10-06T18:48:37.000Z","updated_at":"2024-10-21T11:32:24.000Z","dependencies_parsed_at":"2024-11-06T00:42:29.298Z","dependency_job_id":null,"html_url":"https://github.com/mlabbe/asmfunbox","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabbe%2Fasmfunbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabbe%2Fasmfunbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabbe%2Fasmfunbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabbe%2Fasmfunbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlabbe","download_url":"https://codeload.github.com/mlabbe/asmfunbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563901,"owners_count":20958971,"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":[],"created_at":"2024-11-06T00:30:57.108Z","updated_at":"2025-04-06T22:32:12.394Z","avatar_url":"https://github.com/mlabbe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASM Funbox #\n\nThis is the ASM Funbox.  Giving you input and a framebuffer 60 times a second, write game logic in x64 assembly.\n\nExplore writing 64-bit assembly by writing a game without all of the setup or shutdown calls, focusing on pure game logic.\n\n## Major Update ##\n\nThis is ASM Funbox 2.0, which removes SCons and makes other quality of life updates.  For legacy projects, ASM Funbox 1.0 is still available at the tag `asmfunbox_1` but is no longer supported.\n\n## Compiling ##\n\n### Dependencies ###\n\nASM Funbox runs on Linux.  Any VM that can run a fixed function OpenGL\npipeline should be sufficient, in lieu of dedicated hardware.\n\n - Python for scons\n - nasm for assembling\n - SDL2 and OpenGL headers\n \n`apt-get install nasm libsdl2-dev libglu1-mesa-dev` should do it.\n\n### Known Issues ###\n\nNone. Report bugs!\n\n\n## Controls ##\n\nSee `sample_input_buttons` in `game.c`\n\n## Building ##\n\nAfter installing dependencies (see above):\n\n    ./make.py\n    \nThis produces executables in the bin subdirectory.\n\n## Writing Your Own Game ##\n\nEach file in `src/asm` generates an exe with the same name under the `bin` directory. So, create `src/asm/game.asm` to generate `bin/game`.\n\nThe game must implement a function called `asm_tick`.  See `stub.asm` for the simplest example.\n\nThe prototype of `asm_tick` is, effectively:\n\n    int asm_tick(u8 buttons, uint32 *pixels, uint32 elapsed_ms);\n    \n - If asm_tick returns 1, the program quits. \n\n - `buttons` is a set of bitflags, akin to a NES controller.  See `BTN` constants in `game.c`.\n\n - `pixels` is a 160x90 32-bit RGBA image buffer.  Write your pixels once per frame.\n \n - `elapsed_ms` is the number of elapsed milliseconds since program start\n\n## Author ##\n\n[Michael Labbe](https://michaellabbe.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabbe%2Fasmfunbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlabbe%2Fasmfunbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabbe%2Fasmfunbox/lists"}