younotesunreadstarredadd url

programming Game Boy games on a Mac in 2016 | Details | Hackaday.io

https://hackaday.io/project/16188-game-boy-cartridge-plus-programmer/log/49145-programming-game-boy-games-on-a-mac-in-2016

september 2018dev emu gameboy macosopen in karakeep

by 7 comments ‧ Hackaday.io ‧ saved copy from 2026.03.02

Karakeep has no AI summary for this page yet. summarize now

page description:

<p>First - get homebrew if you haven&apos;t.</p><p><a href=“http://brew.sh/”>http://brew.sh/</a><br></p><pre class=“hljs bash”>/usr/bin/ruby <span class=“hljs-operator”>-e</span> <span class=“hljs-string”>&quot;<span class=“hljs-variable”>$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)</span>&quot;</span> brew install wget</pre><hr><p>Then follow this for installing gbdk, or do what&apos;s in the box.</p><p><a href=“https://github.com/dunn/homebrew-formulae”>https://github.com/dunn/homebrew-formulae</a><br></p><pre class=“hljs nginx”>brew tap mistydemeo/formulae brew <span class=“hljs-operator”><span class=“hljs-keyword”>install</span> <span class=“hljs-comment”>--HEAD mistydemeo/formulae/gbdk </span></span></pre><hr><p> Then start a new.c file with your text editor of choice</p><pre class=“hljs bash”>nano <span class=“hljs-keyword”>new</span>.c </pre><hr><p>and copy this example I borrowed from the credited site </p><pre class=“hljs cpp”><span class=“hljs-comment”>// <a href=“http://www.loirak.com/gameboy/gbprog.php”>http://www.loirak.com/gameboy/gbprog.php</a></span> <span class=“hljs-preprocessor”>#<span class=“hljs-keyword”>include</span> &lt;gb/gb.h&gt;</span> <span class=“hljs-preprocessor”>#<span class=“hljs-keyword”>include</span> &lt;stdio.h&gt;</span> <span class=“hljs-function”><span class=“hljs-keyword”>void</span> <span class=“hljs-title”>main</span><span class=“hljs-params”>()</span> </span>{ <span class=“hljs-built_in”>printf</span>(<span class=“hljs-string”>&quot;Welcome to GAMEBOY\nProgramming&quot;</span>); <span class=“hljs-built_in”>printf</span>(<span class=“hljs-string”>&quot;\nPress Start&quot;</span>); waitpad(J_START); <span class=“hljs-comment”>// other keys are J_A, J_UP, J_SELECT, etc.</span> <span class=“hljs-built_in”>printf</span>(<span class=“hljs-string”>&quot;\nIsn&apos;t it easy!&quot;</span>); } </pre><hr><p>Run the compiler</p><pre class=“hljs bash”>lcc -o <span class=“hljs-keyword”>new</span>.gb <span class=“hljs-keyword”>new</span>.c</pre><hr><p> Lastly, get <a href=“https://mgba.io/downloads.html”>mGBA</a> to emulate your &quot;game&quot; - example</p><p><img data-src=“https://cdn.hackaday.io/images/7056271479341981556.png” class=“lazy”></p><hr><p>and after you hit [ENTER]</p><p><img data-src=“https://cdn.hackaday.io/images/2950101479341997416.png” class=“lazy”></p>
screenshot of the page

« back to bookmarks