JSFiddle - React, Tailwind, and code Playground

by electronoob

HTML

<pre style="color:#000000;background:#ffffff;">
<span style="color:#696969; ">; gb snake</span>
<span style="color:#696969; ">; by Jeremy Herbert (jeremyherbert.net)</span>
<span style="color:#696969; ">;</span>
<span style="color:#696969; ">; I've never written any decent sized assembler programs (nor have I ever written gameboy-style Z80 assembly), this was a learning experience so apologies in advance for any terrible code.</span>
<span style="color:#696969; ">; You could also argue that this file is over-commented. Yes, it is. Please see above ^</span>
<span style="color:#696969; ">;</span>
<span style="color:#696969; ">; started Jan 2011</span>
<span style="color:#696969; ">;</span>
<span style="color:#696969; ">; any comments with  ll. 1234-1235 means "see lines 1234-1235 in gbspec.txt"</span>

<span style="color:#004a43; ">INCLUDE</span> <span style="color:#0000e6; ">"gbhw.inc"</span>			<span style="color:#696969; ">; standard header to define the io registers</span>
<span style="color:#004a43; ">INCLUDE</span> <span style="color:#0000e6; ">"ibmpc1.inc"</span>			<span style="color:#696969; ">; nice ascii tileset from devrs.com</span>

<span style="color:#696969; ">; First we set up the IRQs to return back out (since we aren't making use of them) </span>
<span style="color:#004a43; ">SECTION</span>	<span style="color:#0000e6; ">"Vblank"</span><span style="color:#808030; ">,</span>HOME<span style="color:#808030; ">[</span><span style="color:#008000; ">$0040</span><span style="color:#808030; ">]</span>
	<span style="color:#800000; font-weight:bold; ">jp</span> <span style="color:#e34adc; ">$FF80</span>		<span style="color:#696969; ">; DMA code</span>
<span style="color:#004a43; ">SECTION</span>	<span style="color:#0000e6; ">"LCDC"</span><span style="color:#808030; ">,</span>HOME<span style="color:#808030; ">[</span><span style="color:#008000; ">$0048</span><span style="color:#808030; ">]</span>
	reti
<span style="color:#004a43; ">SECTION</span>	<span...