{"id":17689559,"url":"https://github.com/waitsnake/assemblerexamplesforosx","last_synced_at":"2026-05-09T15:09:47.960Z","repository":{"id":36299220,"uuid":"40603809","full_name":"Waitsnake/AssemblerExamplesForOSX","owner":"Waitsnake","description":"Some assembler code examples how to use OpenGL under OSX","archived":false,"fork":false,"pushed_at":"2017-05-11T15:21:26.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T02:42:53.675Z","etag":null,"topics":["assembly-x86","macos","opengl"],"latest_commit_sha":null,"homepage":null,"language":"Assembly","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/Waitsnake.png","metadata":{"files":{"readme":"readme","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-12T14:00:42.000Z","updated_at":"2022-09-18T17:48:53.000Z","dependencies_parsed_at":"2022-09-04T19:11:52.360Z","dependency_job_id":null,"html_url":"https://github.com/Waitsnake/AssemblerExamplesForOSX","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/Waitsnake%2FAssemblerExamplesForOSX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Waitsnake%2FAssemblerExamplesForOSX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Waitsnake%2FAssemblerExamplesForOSX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Waitsnake%2FAssemblerExamplesForOSX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Waitsnake","download_url":"https://codeload.github.com/Waitsnake/AssemblerExamplesForOSX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385416,"owners_count":20768672,"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":["assembly-x86","macos","opengl"],"created_at":"2024-10-24T11:48:11.404Z","updated_at":"2026-05-09T15:09:42.910Z","avatar_url":"https://github.com/Waitsnake.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"Here are some small assembler code examples how to use OpenGL/GLUT under OSX.\n\nIf you try to assemble and link them for your own try this:\n1.) nasm -g -f macho32 GLandApple.asm\n-\u003e will create an *.o file\n2.) xcrun gcc -framework GLUT -framework OpenGL -m32 -o GLandApple.out GLandApple.o\n-\u003e will link your *.o file together with the GLUT, OpenGL and glibc frameworks of OSX and create your executable *.out file\n\nLast time I assmble them I have used NASM 2.11.04 as assmbler and the linker from XCode 6.2 .\n\n- gl.inc   -\u003e I change an official gl.h   file for C to make it usable for NASM; it contains it's own licenses\n- glut.inc -\u003e I change an official glut.h file for C to make it usable for NASM; it contains it's own licenses\n- *.asm    -\u003e all code was done by me.\n- *.out    -\u003e the executables that should run at least at OSX 10.9\n\nYou can close all applications with cmd+Q or ESC and you can toggle between full screen and window with cmd+F .\n\nThe most part of the examples is allways the same and it initalize an OpenGL window and provides an pointer to an GL frame buffer (fbuff) \nthat can be filled inside the cyclic called draw function _draw_to_frame_buff with own code.\nIn the examples I fill this frame buffer with different things: Julia sets, Mandelbrot sets, an fire plasma or an weierstrass P function (calulates pressure field around an airplane wing).\nMost of this algorithims are realy old and I wrote them decades ago to run in real mode 16-bit in DOS and some later with DirectX under Windows XP. So don't wonder when you see some crazy 8-bit or 16-bit arithmetic.\nToday I would do many thinks a differnet way and would create the algorithims more readable than in times when the CPU's were slow and you have to avoid too many memory accesses.\nAnyway have fun and start to code assembler code for OSX. :B-)\n\n\nCopyright 2015 Marco Köhler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitsnake%2Fassemblerexamplesforosx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaitsnake%2Fassemblerexamplesforosx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitsnake%2Fassemblerexamplesforosx/lists"}