<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://8bitworkshop.com/docs</id>
  <title>8bitworkshop Blog</title>
  <updated>2026-11-26T08:20:23.135126+00:00</updated>
  <link href="https://8bitworkshop.com/docs"/>
  <link href="https://8bitworkshop.com/docs/blog/atom.xml" rel="self"/>
  <generator uri="https://ablog.readthedocs.io/" version="0.11.11">ABlog</generator>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2026/news-2026-11-01.html</id>
    <title>8bitworkshop 4.0.0</title>
    <updated>2026-11-01T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;It has been a full &lt;em&gt;year&lt;/em&gt; since an official 8bitworkshop release,
though the latest dev build has always been available via GitHub.
There are so many new features it’s hard to sum up in a single paragraph.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://8bitworkshop.com/latest/"&gt;Try the latest build&lt;/a&gt;
or read the
&lt;a class="reference external" href="https://github.com/8bitworkshop/8bitworkshop/blob/master/CHANGELOG.md#400---2026-10-21"&gt;full changelog&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You may have already noticed the &lt;strong&gt;keyboard shortcuts&lt;/strong&gt; bar at the bottom, a nod
to &lt;em&gt;Turbo Pascal&lt;/em&gt;, which also inspired the new &lt;em&gt;“context-sensitive”&lt;/em&gt; help pages.
There’s also a new &lt;strong&gt;Search button&lt;/strong&gt; on the toolbar that finds text in docs,
symbols, and code files.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2026/news-2026-11-01.html"/>
    <summary>It has been a full year since an official 8bitworkshop release,
though the latest dev build has always been available via GitHub.
There are so many new features it’s hard to sum up in a single paragraph.Try the latest build
or read the
full changelog.You may have already noticed the keyboard shortcuts bar at the bottom, a nod
to Turbo Pascal, which also inspired the new “context-sensitive” help pages.
There’s also a new Search button on the toolbar that finds text in docs,
symbols, and code files.</summary>
    <category term="news" label="news"/>
    <category term="release" label="release"/>
    <published>2026-11-01T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2026/musicotron.html</id>
    <title>Introducing Musicotron</title>
    <updated>2026-10-19T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;&lt;img alt="" src="https://8bitworkshop.com/_images/musicotron1.png" /&gt;&lt;/p&gt;
&lt;p&gt;What was the first arcade game with background music?
Technically, it’s &lt;em&gt;Space Invaders&lt;/em&gt;, with its Jaws-like repeating dirge.
If that’s too minimalist for you, then it’s &lt;em&gt;Rally-X&lt;/em&gt;.
They relied on sound chips (the TI SN76477 and Namco WSG, respectively)
but they needed code to drive the chip, and a data table to represent the tune.&lt;/p&gt;
&lt;p&gt;The music players in 8bitworkshop are inspired by these ancient designs.
They’re pretty simple – a song is a stream of notes and wait values, and every
video frame the player checks the stream and pokes the sound chip if
neccessary.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2026/musicotron.html"/>
    <summary>What was the first arcade game with background music?
Technically, it’s Space Invaders, with its Jaws-like repeating dirge.
If that’s too minimalist for you, then it’s Rally-X.
They relied on sound chips (the TI SN76477 and Namco WSG, respectively)
but they needed code to drive the chip, and a data table to represent the tune.The music players in 8bitworkshop are inspired by these ancient designs.
They’re pretty simple – a song is a stream of notes and wait values, and every
video frame the player checks the stream and pokes the sound chip if
neccessary.</summary>
    <category term="c" label="c"/>
    <category term="midi" label="midi"/>
    <category term="music" label="music"/>
    <category term="nes" label="nes"/>
    <published>2026-10-19T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2026/news-2026-10-01.html</id>
    <title>8bitworkshop News</title>
    <updated>2026-10-01T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;&lt;img alt="" src="https://8bitworkshop.com/images/vscode_demo.gif" /&gt;&lt;/p&gt;
&lt;p&gt;8bitworkshop now has a &lt;a class="reference external" href="https://marketplace.visualstudio.com/items?itemName=8bitworkshop.8bitworkshop"&gt;VS Code extension&lt;/a&gt;!
It bundles most of the compilers and emulators from the 8bitworkshop IDE, so you can use them right inside the editor.
It even supports debugging!&lt;/p&gt;
&lt;p&gt;It’s a preview, so there may be some rough edges.
It’s okay if you prefer the “classic” IDE – I kinda do, but that’s just my muscle memory.
If you want to develop larger projects on your own filesystem, VS Code is worth a look.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2026/news-2026-10-01.html"/>
    <summary>8bitworkshop now has a VS Code extension!
It bundles most of the compilers and emulators from the 8bitworkshop IDE, so you can use them right inside the editor.
It even supports debugging!It’s a preview, so there may be some rough edges.
It’s okay if you prefer the “classic” IDE – I kinda do, but that’s just my muscle memory.
If you want to develop larger projects on your own filesystem, VS Code is worth a look.</summary>
    <category term="news" label="news"/>
    <published>2026-10-01T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2025/riscv-verilog.html</id>
    <title>RISC-V in Your Browser with Verilog</title>
    <updated>2025-11-08T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;RISC-V is the fifth generation of an open CPU architecture with its roots in academia.
Now that it is headed for ISO/IEC standardization, it’s attracting more interest.&lt;/p&gt;
&lt;p&gt;One nice thing about the RISC-V instruction set is its modularity.
There are 32-bit and 64-bit instruction sets, each with a full and compact version.
The base instruction sets are very basic; even multiplication and division are provided in an optional extension.&lt;/p&gt;
&lt;p&gt;We can easily run the &lt;a class="reference external" href="https://github.com/BrunoLevy/learn-fpga/blob/master/FemtoRV/README.md"&gt;FemtoRV32&lt;/a&gt; Verilog implementation in 8bitworkshop.
This gives us a basic RV32I (32-bit integer) instruction set that we can use in projects.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2025/riscv-verilog.html"/>
    <summary>RISC-V is the fifth generation of an open CPU architecture with its roots in academia.
Now that it is headed for ISO/IEC standardization, it’s attracting more interest.One nice thing about the RISC-V instruction set is its modularity.
There are 32-bit and 64-bit instruction sets, each with a full and compact version.
The base instruction sets are very basic; even multiplication and division are provided in an optional extension.We can easily run the FemtoRV32 Verilog implementation in 8bitworkshop.
This gives us a basic RV32I (32-bit integer) instruction set that we can use in projects.</summary>
    <category term="asm" label="asm"/>
    <category term="riscv" label="riscv"/>
    <category term="verilog" label="verilog"/>
    <published>2025-11-08T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2025/versatile-three-stream-kernel.html</id>
    <title>The Three-Stream Versatile Kernel</title>
    <updated>2025-10-13T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;In my previous article on the &lt;a class="reference internal" href="posts/2025/versatile-playfield-kernel.html#versatile-playfield-kernel"&gt;&lt;span class="std std-ref"&gt;Versatile Playfield Kernel&lt;/span&gt;&lt;/a&gt;, we explored how to draw complex backgrounds by choosing which register to update on each scanline.
But this version didn’t address sprites in particular.&lt;/p&gt;
&lt;p&gt;Becuase the playfield logic only took up to nine cycles per scanline, there was plenty of time left over to draw sprites using one of the typical routines.
(You know the one – subtract position and height, test for boundaries, load bitmap and color, store in registers. Boring.)&lt;/p&gt;
&lt;p&gt;Now we’re taking this concept further:
&lt;strong&gt;what if we could control not just the playfield, but also two sprites using the same versatile approach?&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2025/versatile-three-stream-kernel.html"/>
    <summary>In my previous article on the Versatile Playfield Kernel, we explored how to draw complex backgrounds by choosing which register to update on each scanline.
But this version didn’t address sprites in particular.Becuase the playfield logic only took up to nine cycles per scanline, there was plenty of time left over to draw sprites using one of the typical routines.
(You know the one – subtract position and height, test for boundaries, load bitmap and color, store in registers. Boring.)Now we’re taking this concept further:
what if we could control not just the playfield, but also two sprites using the same versatile approach?</summary>
    <category term="6502" label="6502"/>
    <category term="asm" label="asm"/>
    <category term="vcs" label="vcs"/>
    <published>2025-10-13T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2025/versatile-playfield-kernel.html</id>
    <title>The Versatile Playfield Kernel</title>
    <updated>2025-10-11T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;In Atari 2600 programming, we struggle to draw two sprites and the playfield (background) within the 76-cycle budget of
each scanline.
For maximum-resolution single-line updates where we change parameters every scanline, we’d need to look
up and write:&lt;/p&gt;
&lt;p&gt;2 registers per sprite (color, bitmap) × 2 sprites = 4 registers&lt;/p&gt;
&lt;p&gt;5 playfield registers (PF0, PF1, PF2, COLUPF, COLUBK)&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2025/versatile-playfield-kernel.html"/>
    <summary>In Atari 2600 programming, we struggle to draw two sprites and the playfield (background) within the 76-cycle budget of
each scanline.
For maximum-resolution single-line updates where we change parameters every scanline, we’d need to look
up and write:2 registers per sprite (color, bitmap) × 2 sprites = 4 registers5 playfield registers (PF0, PF1, PF2, COLUPF, COLUBK)</summary>
    <category term="6502" label="6502"/>
    <category term="asm" label="asm"/>
    <category term="vcs" label="vcs"/>
    <published>2025-10-11T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2025/tiny-vcs-kernels.html</id>
    <title>Tiny Atari 2600 ROMs</title>
    <updated>2025-07-26T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;On the Atari 2600, a &lt;strong&gt;kernel&lt;/strong&gt; is the term for the highly-optimized assembly
code that draws the display, i.e. “races the beam”.&lt;/p&gt;
&lt;p&gt;I was pondering a question: What’s the smallest Atari 2600 kernel you can write?&lt;/p&gt;
&lt;p&gt;I found &lt;a class="reference external" href="https://atariage.com/forums/topic/282809-minimal-demo/#comments"&gt;this AtariAge thread&lt;/a&gt;
which packs entire ROMs into 32 bytes.
Can we do better?&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2025/tiny-vcs-kernels.html"/>
    <summary>On the Atari 2600, a kernel is the term for the highly-optimized assembly
code that draws the display, i.e. “races the beam”.I was pondering a question: What’s the smallest Atari 2600 kernel you can write?I found this AtariAge thread
which packs entire ROMs into 32 bytes.
Can we do better?</summary>
    <category term="6502" label="6502"/>
    <category term="asm" label="asm"/>
    <category term="vcs" label="vcs"/>
    <published>2025-07-26T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2023/vcslib-c-programming-for-atari-2600.html</id>
    <title>VCSLib, A C Library for the Atari 2600</title>
    <updated>2023-11-05T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;The previous blog post, &lt;a class="reference internal" href="posts/2023/problems-with-c-and-8bits.html"&gt;&lt;span class="std std-doc"&gt;“Your 8-bit System is a Weird PDP-11”&lt;/span&gt;&lt;/a&gt;,
discussed several challenges faced when developing in C, especially for the Atari 2600/VCS.&lt;/p&gt;
&lt;p&gt;We’ve overcome those challenges as best we can, and now we can introduce &lt;a class="reference external" href="https://8bitworkshop.com/redir.html?platform=vcs&amp;amp;file=vcslib%2Fdemo_vcslib.c"&gt;VCSLib&lt;/a&gt;, a support library for programming the Atari 2600/VCS with CC65.&lt;/p&gt;
&lt;p&gt;Let’s take a tour.&lt;/p&gt;
&lt;img alt="" src="https://8bitworkshop.com/_images/vcslib1-crtareas.png" /&gt;&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2023/vcslib-c-programming-for-atari-2600.html"/>
    <summary>The previous blog post, “Your 8-bit System is a Weird PDP-11”,
discussed several challenges faced when developing in C, especially for the Atari 2600/VCS.We’ve overcome those challenges as best we can, and now we can introduce VCSLib, a support library for programming the Atari 2600/VCS with CC65.Let’s take a tour.</summary>
    <category term="6502" label="6502"/>
    <category term="cc65" label="cc65"/>
    <category term="vcs" label="vcs"/>
    <published>2023-11-05T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2023/problems-with-c-and-8bits.html</id>
    <title>Your 8-bit System is a Weird PDP-11</title>
    <updated>2023-10-28T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;The C programming language is the de facto portable, low-level language.
It was written with the PDP-11 minicomputer in mind.&lt;/p&gt;
&lt;p&gt;The PDP-11 informed the x86 instruction set, and so in a way, we’re still using them.
Today’s computers are so complex that they have to bend over backwards to emulate the simple architecture for which C was designed.
It leads some to ask if C is &lt;a class="reference external" href="https://queue.acm.org/detail.cfm?id=3212479"&gt;a good fit for modern systems.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Likewise, the PDP-11 doesn’t have a lot in common with 80s arcade games.
Game programmers in the 8-bit era wrote code predominantly in assembly language.
The C language was around, but mostly in UNIX systems.
If anything, they would have been more likely to use a homespun language like &lt;a class="reference external" href="https://en.wikipedia.org/wiki/GRASS_(programming_language)"&gt;Zgrass&lt;/a&gt; or even FORTH.&lt;/p&gt;
&lt;img alt="https://8bitworkshop.com/_images/pdp11.jpg" class="align-right" src="https://8bitworkshop.com/_images/pdp11.jpg" style="width: 400px;" /&gt;&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2023/problems-with-c-and-8bits.html"/>
    <summary>The C programming language is the de facto portable, low-level language.
It was written with the PDP-11 minicomputer in mind.The PDP-11 informed the x86 instruction set, and so in a way, we’re still using them.
Today’s computers are so complex that they have to bend over backwards to emulate the simple architecture for which C was designed.
It leads some to ask if C is a good fit for modern systems.Likewise, the PDP-11 doesn’t have a lot in common with 80s arcade games.
Game programmers in the 8-bit era wrote code predominantly in assembly language.
The C language was around, but mostly in UNIX systems.
If anything, they would have been more likely to use a homespun language like Zgrass or even FORTH.</summary>
    <category term="6502" label="6502"/>
    <category term="cc65" label="cc65"/>
    <category term="compilers" label="compilers"/>
    <category term="optimization" label="optimization"/>
    <published>2023-10-28T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2023/llvm-mos-sdk-6502-c-compiler.html</id>
    <title>Exploring the New 6502 Compiler Based on LLVM</title>
    <updated>2023-05-16T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;Today, homebrew developers enjoy the convenience of programming the 6502 in C.
However, the 6502 is a very different architecture than modern CPUs, and was never designed for C programming.&lt;/p&gt;
&lt;p&gt;The 6502 has a small number of 8-bit registers, and limited addressing modes that cannot access the stack efficiently.
This makes it difficult to retarget a modern C compiler to the 6502.&lt;/p&gt;
&lt;p&gt;In a &lt;a class="reference internal" href="#../2020/retargeting-a-c-compiler-to-6502"&gt;&lt;span class="xref myst"&gt;previous blog post&lt;/span&gt;&lt;/a&gt;, we explored the process of retargeting a microcontroller C compiler (SDCC) to the 6502.
This required development of a brand new code generation backend, which required looking at over 80,000 lines of code.
Gabriele Gorla has since improved it to the point where it has been &lt;a class="reference external" href="https://sdcc.sourceforge.net/index.php#News"&gt;merged into the main SDCC repository&lt;/a&gt;.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2023/llvm-mos-sdk-6502-c-compiler.html"/>
    <summary>Today, homebrew developers enjoy the convenience of programming the 6502 in C.
However, the 6502 is a very different architecture than modern CPUs, and was never designed for C programming.The 6502 has a small number of 8-bit registers, and limited addressing modes that cannot access the stack efficiently.
This makes it difficult to retarget a modern C compiler to the 6502.In a previous blog post, we explored the process of retargeting a microcontroller C compiler (SDCC) to the 6502.
This required development of a brand new code generation backend, which required looking at over 80,000 lines of code.
Gabriele Gorla has since improved it to the point where it has been merged into the main SDCC repository.</summary>
    <category term="6502" label="6502"/>
    <category term="cc65" label="cc65"/>
    <category term="compilers" label="compilers"/>
    <category term="llvm" label="llvm"/>
    <category term="optimization" label="optimization"/>
    <published>2023-05-16T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2023/fun-with-chatgpt-and-8bits.html</id>
    <title>Will ChatGPT replace retro programmers?</title>
    <updated>2023-03-22T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;An LLM (Large Language Model) is an artificial neural network
that statistically models the structure of text.
It’s typically trained on a huge corpus of textual data,
and tuned for a specific task, like
an AI chat assistant (&lt;a class="reference external" href="https://openai.com/blog/chatgpt"&gt;ChatGPT&lt;/a&gt;)
or a programming helper (&lt;a class="reference external" href="https://github.com/features/copilot"&gt;Copilot&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;I created &lt;a class="reference external" href="https://8bitworkshop.com/"&gt;8bitworkshop&lt;/a&gt; to make it easy for people
to explore obsolete technologies.
So I wondered: is the latest AI technology going to make the programmers of obsolete
technologies obsolete themselves?&lt;/p&gt;
&lt;p&gt;tl;dr: Not yet.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2023/fun-with-chatgpt-and-8bits.html"/>
    <summary>An LLM (Large Language Model) is an artificial neural network
that statistically models the structure of text.
It’s typically trained on a huge corpus of textual data,
and tuned for a specific task, like
an AI chat assistant (ChatGPT)
or a programming helper (Copilot).I created 8bitworkshop to make it easy for people
to explore obsolete technologies.
So I wondered: is the latest AI technology going to make the programmers of obsolete
technologies obsolete themselves?tl;dr: Not yet.</summary>
    <category term="ai" label="ai"/>
    <published>2023-03-22T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2022/happy-holidays-2022.html</id>
    <title>Atari 800 Winter Solstice Celebration Demo</title>
    <updated>2022-12-23T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;Every December, I try to make a little wintery demo to exercise one of 8bitworkshop’s platforms. This year, I chose the Atari 800 to test out the new native TypeScript emulator in 8bitworkshop.
&lt;a class="reference external" href="https://8bitworkshop.com/projects/?n=atari8-800/happy2022"&gt;You can see the demo emulated here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I revisted my &lt;a class="reference external" href="https://8bitworkshop.com/projects/?n=astrocade/happy2020"&gt;Bally Astrocade “Happy 2020” Demo&lt;/a&gt;, which simulates falling snow. It uses pixel-level collision to simulate each falling particle, which creates neat little piles of snow and particles that ripple off the sides of obstacles.&lt;/p&gt;
&lt;p&gt;Atari ANTIC Mode $F uses the GTIA chip to add additional modes beyond what the original CTIA chip provides.
I used GTIA Mode 10, which is 80 x 192 pixels with nine different colors.&lt;/p&gt;
&lt;img alt="https://8bitworkshop.com/_images/village3.png" class="align-right" src="https://8bitworkshop.com/_images/village3.png" style="width: 400px;" /&gt;&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2022/happy-holidays-2022.html"/>
    <summary>Every December, I try to make a little wintery demo to exercise one of 8bitworkshop’s platforms. This year, I chose the Atari 800 to test out the new native TypeScript emulator in 8bitworkshop.
You can see the demo emulated here.I revisted my Bally Astrocade “Happy 2020” Demo, which simulates falling snow. It uses pixel-level collision to simulate each falling particle, which creates neat little piles of snow and particles that ripple off the sides of obstacles.Atari ANTIC Mode $F uses the GTIA chip to add additional modes beyond what the original CTIA chip provides.
I used GTIA Mode 10, which is 80 x 192 pixels with nine different colors.</summary>
    <category term="demo" label="demo"/>
    <category term="graphics" label="graphics"/>
    <published>2022-12-23T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2022/8bit-qr-code.html</id>
    <title>Displaying QR codes on 8-bit hardware</title>
    <updated>2022-12-01T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;It’s often hard to interface the world of 8-bit computing with modern digital devices.
These machines don’t have USB, Wifi, Ethernet, or anything resembling a modern interface.&lt;/p&gt;
&lt;p&gt;It’s interesting to think about ways older machines can communicate with modern devices using only hardware of the era – even if it might be kind of convoluted.
One of these methods might be via &lt;em&gt;QR code&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;A QR code is a two-dimensional pattern that encodes a short string of bytes or text – often a URL.
These patterns can be printed on paper, or displayed on a screen.
If you scan the pattern with your phone’s camera, it decodes the pattern, and displays the encoded text or URL.&lt;/p&gt;
&lt;img alt="" src="https://8bitworkshop.com/_images/qrcodevcs.png" /&gt;&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2022/8bit-qr-code.html"/>
    <summary>It’s often hard to interface the world of 8-bit computing with modern digital devices.
These machines don’t have USB, Wifi, Ethernet, or anything resembling a modern interface.It’s interesting to think about ways older machines can communicate with modern devices using only hardware of the era – even if it might be kind of convoluted.
One of these methods might be via QR code.A QR code is a two-dimensional pattern that encodes a short string of bytes or text – often a URL.
These patterns can be printed on paper, or displayed on a screen.
If you scan the pattern with your phone’s camera, it decodes the pattern, and displays the encoded text or URL.</summary>
    <category term="graphics" label="graphics"/>
    <category term="io" label="io"/>
    <category term="qrcodes" label="qrcodes"/>
    <published>2022-12-01T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2022/mastodon-vintage-basic-bot.html</id>
    <title>Mastodon and the Vintage BASIC Bot</title>
    <updated>2022-11-14T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;&lt;img alt="" src="https://8bitworkshop.com/_images/20221114141449.png" /&gt;&lt;/p&gt;
&lt;p&gt;Mastodon has gained popularity as an alternative to commercial social media, especially within the #retrocomputing community. Even &lt;a class="reference external" href="https://oldbytes.space/&amp;#64;8bitworkshop"&gt;8bitworkshop is on Mastodon&lt;/a&gt;, so feel free to follow!
Just post &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;&amp;#64;8bitworkshop&amp;#64;oldbytes.space&lt;/span&gt;&lt;/code&gt; into your search bar.&lt;/p&gt;
&lt;p&gt;One feature of the “other” social media network (affectionally known as “Birdsite” on Mastodon) is the presence of &lt;em&gt;bots&lt;/em&gt;.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2022/mastodon-vintage-basic-bot.html"/>
    <summary>Mastodon has gained popularity as an alternative to commercial social media, especially within the #retrocomputing community. Even 8bitworkshop is on Mastodon, so feel free to follow!
Just post @8bitworkshop@oldbytes.space into your search bar.One feature of the “other” social media network (affectionally known as “Birdsite” on Mastodon) is the presence of bots.</summary>
    <category term="basic" label="basic"/>
    <category term="socialmedia" label="socialmedia"/>
    <published>2022-11-14T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2022/8bitworkshop-release-3-10-0.html</id>
    <title>8bitworkshop 3.10.0 Release</title>
    <updated>2022-10-03T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;&lt;img alt="" src="https://8bitworkshop.com/_images/crtprobe.webp" /&gt;&lt;/p&gt;
&lt;p&gt;It’s been awhile since we had a proper IDE release.
Here’s what’s new in &lt;a class="reference external" href="https://8bitworkshop.com/v3.10.0/"&gt;3.10.0&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;New Atari PCS Emulator&lt;/strong&gt; – The old Atari 800 emulator relied upon MAME,
which was adequate but lacking in performance and debuggability.
The new emulator is written in TypeScript, is cycle-accurate &lt;a class="footnote-reference brackets" href="#acid800" id="id1" role="doc-noteref"&gt;&lt;span class="fn-bracket"&gt;[&lt;/span&gt;1&lt;span class="fn-bracket"&gt;]&lt;/span&gt;&lt;/a&gt; and runs most cartridge-based games pretty well.
It can even load certain well-behaved XEX files.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2022/8bitworkshop-release-3-10-0.html"/>
    <summary>It’s been awhile since we had a proper IDE release.
Here’s what’s new in 3.10.0:New Atari PCS Emulator – The old Atari 800 emulator relied upon MAME,
which was adequate but lacking in performance and debuggability.
The new emulator is written in TypeScript, is cycle-accurate 1 and runs most cartridge-based games pretty well.
It can even load certain well-behaved XEX files.</summary>
    <category term="release" label="release"/>
    <published>2022-10-03T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2021/8bitworkshop-release-3-9-0.html</id>
    <title>8bitworkshop 3.9.0 Release</title>
    <updated>2021-12-21T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;The 8bitworkshop IDE build process is finally using a JavaScript bundler (esbuild).
This improves modularity and startup time, among other things.
It’s a pretty big change, so please let me know if you spot any bugs!&lt;/p&gt;
&lt;p&gt;There are a couple of new features:&lt;/p&gt;
&lt;p&gt;The &lt;a class="reference external" href="https://8bitworkshop.com/redir.html?platform=cpc.6128"&gt;Amstrad CPC platform&lt;/a&gt;
is now available!
It emulates a CPC6128 (128K) and includes the
&lt;a class="reference external" href="https://github.com/lronaldo/cpctelera"&gt;cpctelera&lt;/a&gt; library for C coding.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2021/8bitworkshop-release-3-9-0.html"/>
    <summary>The 8bitworkshop IDE build process is finally using a JavaScript bundler (esbuild).
This improves modularity and startup time, among other things.
It’s a pretty big change, so please let me know if you spot any bugs!There are a couple of new features:The Amstrad CPC platform
is now available!
It emulates a CPC6128 (128K) and includes the
cpctelera library for C coding.</summary>
    <category term="release" label="release"/>
    <published>2021-12-21T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2021/august-2021-update.html</id>
    <title>August 2021 Update</title>
    <updated>2021-08-31T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;It’s been more than a month since the 8bitworkshop 3.8.0 release, and I’ve been doing lots of prototyping behind the
scenes.
Some of this work will end up in dead ends, but we might learn a thing or two along the way.
So I thought I’d document everything here.&lt;/p&gt;
&lt;p&gt;ECMAScript (aka JavaScript) did not have a standardized module system until ES6, which was published in 2015.
The ecosystem is still catching up.
For example, some browsers still don’t support ES6 modules in web workers, and Node.js only recently
added module support.
TypeScript has always supported ES6 modules, but good luck getting it
to consume old-style IIFE (“immediately-invoked function expression”) modules, or getting it to play nicely
with your Node unit tests … etc.&lt;/p&gt;
&lt;p&gt;To handle this hodge-podge of module formats, “bundlers” were developed.
These tools eat a pile of source code, images, CSS, whatever – and regurgitate it
back in whatever format you need.
The downside is that they add another level of complexity to your build system.
So I’d been avoiding bundlers, and just using the output from the TypeScript compiler
directly from the index.html file.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2021/august-2021-update.html"/>
    <summary>It’s been more than a month since the 8bitworkshop 3.8.0 release, and I’ve been doing lots of prototyping behind the
scenes.
Some of this work will end up in dead ends, but we might learn a thing or two along the way.
So I thought I’d document everything here.ECMAScript (aka JavaScript) did not have a standardized module system until ES6, which was published in 2015.
The ecosystem is still catching up.
For example, some browsers still don’t support ES6 modules in web workers, and Node.js only recently
added module support.
TypeScript has always supported ES6 modules, but good luck getting it
to consume old-style IIFE (“immediately-invoked function expression”) modules, or getting it to play nicely
with your Node unit tests … etc.To handle this hodge-podge of module formats, “bundlers” were developed.
These tools eat a pile of source code, images, CSS, whatever – and regurgitate it
back in whatever format you need.
The downside is that they add another level of complexity to your build system.
So I’d been avoiding bundlers, and just using the output from the TypeScript compiler
directly from the index.html file.</summary>
    <category term="dev" label="dev"/>
    <published>2021-08-31T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2021/8bitworkshop-release-3-8-0.html</id>
    <title>8bitworkshop 3.8.0 Release</title>
    <updated>2021-07-16T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;The big change in this release is a &lt;a class="reference internal" href="posts/2021/webassembly-vs-javascript-emulator-performance.html#webassembly-vs-javascript-emulator-performance"&gt;&lt;span class="std std-ref"&gt;new Verilog backend&lt;/span&gt;&lt;/a&gt;.
It translates your modules into WebAssembly!&lt;/p&gt;
&lt;p&gt;The new backend is based on Verilator 4.
It has a modest performance gain (20-50%), 64-bit support, and increased test compliance.&lt;/p&gt;
&lt;p&gt;Other changes in the Verilog platform:&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2021/8bitworkshop-release-3-8-0.html"/>
    <summary>The big change in this release is a new Verilog backend.
It translates your modules into WebAssembly!The new backend is based on Verilator 4.
It has a modest performance gain (20-50%), 64-bit support, and increased test compliance.Other changes in the Verilog platform:</summary>
    <category term="release" label="release"/>
    <published>2021-07-16T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2021/webassembly-vs-javascript-emulator-performance.html</id>
    <title>Emulator Performance: WebAssembly vs. JavaScript</title>
    <updated>2021-06-21T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;The 8bitworkshop IDE integrates several different kinds of emulators that
run in the web browser,
each kind with different characteristics.
Ideally, our emulators would be:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Performant&lt;/strong&gt; – They should load quickly, and run at native speeds in modern
browsers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Debuggable&lt;/strong&gt; – Users should be able to single-step, set breakpoints,
rewind/replay state, inspect memory, etc.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2021/webassembly-vs-javascript-emulator-performance.html"/>
    <summary>The 8bitworkshop IDE integrates several different kinds of emulators that
run in the web browser,
each kind with different characteristics.
Ideally, our emulators would be:Performant – They should load quickly, and run at native speeds in modern
browsers.Debuggable – Users should be able to single-step, set breakpoints,
rewind/replay state, inspect memory, etc.</summary>
    <category term="emulation" label="emulation"/>
    <category term="javascript" label="javascript"/>
    <category term="webassembly" label="webassembly"/>
    <published>2021-06-21T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2021/8bitworkshop-release-3-7-2.html</id>
    <title>8bitworkshop 3.7.2 Release</title>
    <updated>2021-05-18T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;A minor update with some bug fixes and some new features.&lt;/p&gt;
&lt;p&gt;Added better support for ca65 assembler, though DASM is probably still the better choice for VCS programming.
DASM has better parsing of macros (you can step through them in the debugger) and
improved error messages.&lt;/p&gt;
&lt;p&gt;Improved cycle analysis tool that counts up to 76*4 scanlines and properly inspects JSR subroutines.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2021/8bitworkshop-release-3-7-2.html"/>
    <summary>A minor update with some bug fixes and some new features.Added better support for ca65 assembler, though DASM is probably still the better choice for VCS programming.
DASM has better parsing of macros (you can step through them in the debugger) and
improved error messages.Improved cycle analysis tool that counts up to 76*4 scanlines and properly inspects JSR subroutines.</summary>
    <category term="release" label="release"/>
    <published>2021-05-18T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2020/basic-interpreter.html</id>
    <title>3.7.0 Release: BASIC</title>
    <updated>2020-10-31T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;&lt;a class="reference external" href="https://8bitworkshop.com/redir.html?platform=basic"&gt;Click here to program BASIC in the 8bitworkshop IDE now!&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Dartmouth professors John G. Kemeny and Thomas E. Kurtz had the idea that every student should have access to a computer.
But in those days, &lt;em&gt;batch processing&lt;/em&gt; was the law of the land.
Programmers would fill out a coding sheet, then a keypunch operator would create a deck of punch cards.
The cards were fed into machines, and hours later you might receive results from your program –
or if you were unlucky, an error report.&lt;/p&gt;
&lt;p&gt;&lt;img alt="The Dartmouth (student newspaper), December 2, 1966" src="https://8bitworkshop.com/_images/odetoacomputer.jpg" /&gt;&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2020/basic-interpreter.html"/>
    <summary>Click here to program BASIC in the 8bitworkshop IDE now!Dartmouth professors John G. Kemeny and Thomas E. Kurtz had the idea that every student should have access to a computer.
But in those days, batch processing was the law of the land.
Programmers would fill out a coding sheet, then a keypunch operator would create a deck of punch cards.
The cards were fed into machines, and hours later you might receive results from your program –
or if you were unlucky, an error report.The Dartmouth (student newspaper), December 2, 1966</summary>
    <category term="basic" label="basic"/>
    <category term="release" label="release"/>
    <published>2020-10-31T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2020/fuzzing-the-z-machine.html</id>
    <title>Fuzzing the Z-Machine</title>
    <updated>2020-10-14T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;Playing text adventure games is sort of fun, but takes a lot of brain power.
Nowadays we have all this spare CPU capacity going to waste.&lt;/p&gt;
&lt;p&gt;What if we let the computer solve the game, and we just sit back and watch?
We don’t even need any fancy neural network, we just need good old brute force.&lt;/p&gt;
&lt;p&gt;We’re going to throw tons of semi-random input at a text adventure and see what happens.
In the security world, this is called &lt;em&gt;fuzzing&lt;/em&gt;.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2020/fuzzing-the-z-machine.html"/>
    <summary>Playing text adventure games is sort of fun, but takes a lot of brain power.
Nowadays we have all this spare CPU capacity going to waste.What if we let the computer solve the game, and we just sit back and watch?
We don’t even need any fancy neural network, we just need good old brute force.We’re going to throw tons of semi-random input at a text adventure and see what happens.
In the security world, this is called fuzzing.</summary>
    <category term="interpreters" label="interpreters"/>
    <published>2020-10-14T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2020/8bitworkshop-ide-release-3-6-0.html</id>
    <title>8bitworkshop 3.6.0 Release</title>
    <updated>2020-07-19T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;The &lt;a class="reference external" href="http://8bitworkshop.com/v3.6.0/"&gt;8bitworkshop IDE 3.6.0&lt;/a&gt; is out,
and we’ve added five more awesome platforms, as well as some nifty
new debugging features!&lt;/p&gt;
&lt;p&gt;Commodore’s VIC-II graphics and SID sound chip were originally destined for a next-gen game console.
Engineering convinced CEO Jack Tramiel that a low-cost 64KB computer would be profitable,
and thanks to having their own semiconductor fab (acquired from MOS Technology, along with the 6502)
they were able to design the chipset in about five months.&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Commodore-64-Computer-FL.jpg/640px-Commodore-64-Computer-FL.jpg" /&gt;&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2020/8bitworkshop-ide-release-3-6-0.html"/>
    <summary>The 8bitworkshop IDE 3.6.0 is out,
and we’ve added five more awesome platforms, as well as some nifty
new debugging features!Commodore’s VIC-II graphics and SID sound chip were originally destined for a next-gen game console.
Engineering convinced CEO Jack Tramiel that a low-cost 64KB computer would be profitable,
and thanks to having their own semiconductor fab (acquired from MOS Technology, along with the 6502)
they were able to design the chipset in about five months.</summary>
    <category term="release" label="release"/>
    <published>2020-07-19T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2020/retargeting-a-c-compiler-to-6502.html</id>
    <title>Retargeting a C Compiler to 6502</title>
    <updated>2020-07-05T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;I’ve written before about &lt;a class="reference internal" href="posts/2019/cc65-optimization.html#cc65-optimization"&gt;&lt;span class="std std-ref"&gt;cc65&lt;/span&gt;&lt;/a&gt; and some of its optimization challenges.
It’s a stable compiler with a robust toolchain, but its code generator doesn’t full advantage of the 6502 when performing 8-bit operations.
It places function parameters and many local variables on a separate stack, which requires many calls to helper functions.&lt;/p&gt;
&lt;p&gt;I’ve done a &lt;a class="reference internal" href="posts/2018/higher-level-6502-programming.html#higher-level-6502-programming"&gt;&lt;span class="std std-ref"&gt;survey of 6502 high-level languages&lt;/span&gt;&lt;/a&gt;, and while many are intriguing, none have the stability and C compatiblity of cc65.&lt;/p&gt;
&lt;p&gt;So what’s so hard about the 6502?
What’s keeping us from just retargeting a modern C compiler, bringing its powerful optimization routines to 6502?
Well, it’s complicated. Like, really complicated.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2020/retargeting-a-c-compiler-to-6502.html"/>
    <summary>I’ve written before about cc65 and some of its optimization challenges.
It’s a stable compiler with a robust toolchain, but its code generator doesn’t full advantage of the 6502 when performing 8-bit operations.
It places function parameters and many local variables on a separate stack, which requires many calls to helper functions.I’ve done a survey of 6502 high-level languages, and while many are intriguing, none have the stability and C compatiblity of cc65.So what’s so hard about the 6502?
What’s keeping us from just retargeting a modern C compiler, bringing its powerful optimization routines to 6502?
Well, it’s complicated. Like, really complicated.</summary>
    <category term="6502" label="6502"/>
    <category term="cc65" label="cc65"/>
    <category term="compilers" label="compilers"/>
    <category term="optimization" label="optimization"/>
    <published>2020-07-05T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2020/compiling-emulators-to-webassembly-without-emscripten.html</id>
    <title>Compiling a C-64 Emulator to WebAssembly</title>
    <updated>2020-01-23T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;We use a variety of emulators in &lt;a class="reference external" href="https://8bitworkshop.com/"&gt;8bitworkshop&lt;/a&gt;.
Many of them, like most of the Z80 emulators, are written from scratch in JavaScript directly against our Platform API.
This facilitates deep introspection into the emulator state,
which comes in handy for things like debugger support and CPU visualization.&lt;/p&gt;
&lt;p&gt;To save effort, we also integrate a couple of open source emulators.
Atari 2600 support is courtesy of &lt;a class="reference external" href="https://github.com/ppeccin/javatari"&gt;Javatari&lt;/a&gt;,
and NES support is courtesy of &lt;a class="reference external" href="https://github.com/bfirsh/jsnes"&gt;JSNES&lt;/a&gt;.
Each of them requires significant patching to expose hooks for the extra features the IDE supports,
like breakpoints and bus-monitoring.&lt;/p&gt;
&lt;p&gt;We can also use MAME, compiling it to WebAssembly using &lt;a class="reference external" href="https://emscripten.org/"&gt;Emscripten&lt;/a&gt;.
The trouble is that it’s a bit heavyweight and monolithic, and wants to be treated as an application, not a library.
Due to the way it’s architected, interacting with the debugger via JavaScript &lt;a class="reference external" href="https://github.com/mamedev/mame/issues/3649"&gt;isn’t really feasible&lt;/a&gt;.
Even simple things like re-loading the ROM require a ton of Lua scripting.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2020/compiling-emulators-to-webassembly-without-emscripten.html"/>
    <summary>We use a variety of emulators in 8bitworkshop.
Many of them, like most of the Z80 emulators, are written from scratch in JavaScript directly against our Platform API.
This facilitates deep introspection into the emulator state,
which comes in handy for things like debugger support and CPU visualization.To save effort, we also integrate a couple of open source emulators.
Atari 2600 support is courtesy of Javatari,
and NES support is courtesy of JSNES.
Each of them requires significant patching to expose hooks for the extra features the IDE supports,
like breakpoints and bus-monitoring.We can also use MAME, compiling it to WebAssembly using Emscripten.
The trouble is that it’s a bit heavyweight and monolithic, and wants to be treated as an application, not a library.
Due to the way it’s architected, interacting with the debugger via JavaScript isn’t really feasible.
Even simple things like re-loading the ROM require a ton of Lua scripting.</summary>
    <category term="c64" label="c64"/>
    <category term="emulation" label="emulation"/>
    <category term="wasm" label="wasm"/>
    <category term="webassembly" label="webassembly"/>
    <published>2020-01-23T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2019/8bitworkshop-ide-release-3-5-0.html</id>
    <title>8bitworkshop 3.5.0 Release</title>
    <updated>2019-12-20T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;8bitworkshop now supports &lt;em&gt;five&lt;/em&gt; additional 8-bit platforms!&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://8bitworkshop.com/redir.html?platform=astrocade"&gt;Bally Astrocade&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://8bitworkshop.com/redir.html?platform=coleco"&gt;ColecoVision&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2019/8bitworkshop-ide-release-3-5-0.html"/>
    <summary>8bitworkshop now supports five additional 8-bit platforms!Bally AstrocadeColecoVision</summary>
    <category term="release" label="release"/>
    <published>2019-12-20T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2019/the-mango-one-6502-computer.html</id>
    <title>The Mango One</title>
    <updated>2019-09-02T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;In 1976, the first 6502-based hobbyist computers were just starting to appear.
MOS Technology’s own KIM-1 had a numeric pad and seven-segment display.
The competing SYM-1 could draw simple characters on an oscilloscope.&lt;/p&gt;
&lt;p&gt;But the real breakthrough would come when the computer could receive input from a full keyboard, and output to a television set.
Steve Wozniak demonstrated such a device at Homebrew Computer Club, a 6502-based machine that could drive a 40 column by 24 row character display, and could run Woz’s own Integer BASIC.
This device would later be sold as the Apple I.&lt;/p&gt;
&lt;p&gt;We’re going to create a similar device in the 8bitworkshop IDE using Verilog.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2019/the-mango-one-6502-computer.html"/>
    <summary>In 1976, the first 6502-based hobbyist computers were just starting to appear.
MOS Technology’s own KIM-1 had a numeric pad and seven-segment display.
The competing SYM-1 could draw simple characters on an oscilloscope.But the real breakthrough would come when the computer could receive input from a full keyboard, and output to a television set.
Steve Wozniak demonstrated such a device at Homebrew Computer Club, a 6502-based machine that could drive a 40 column by 24 row character display, and could run Woz’s own Integer BASIC.
This device would later be sold as the Apple I.We’re going to create a similar device in the 8bitworkshop IDE using Verilog.</summary>
    <category term="6502" label="6502"/>
    <category term="hardware" label="hardware"/>
    <category term="verilog" label="verilog"/>
    <published>2019-09-02T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2019/8bitworkshop-ide-release-3-4-0.html</id>
    <title>8bitworkshop 3.4.0 Release</title>
    <updated>2019-08-09T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;We’ve added yet another platform to the 8bitworkshop IDE, the legendary
&lt;strong&gt;Nintendo Entertainment System (NES)&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;You can program in both C and 6502 assembler, and there are a ton of examples
to get you started.&lt;/p&gt;
&lt;p&gt;The IDE lets you write &lt;em&gt;C&lt;/em&gt; using the &lt;em&gt;cc65&lt;/em&gt; compiler toolchain.
While it has lower performance and greater code size than a well-written assembly program, you can still write a pretty good game in C.
We use a fork of &lt;a class="reference external" href="https://shiru.untergrund.net/aboutme.shtml"&gt;Shriu&lt;/a&gt;’s &lt;a class="reference external" href="https://github.com/8bitworkshop/neslib"&gt;&lt;em&gt;NESLib&lt;/em&gt;&lt;/a&gt; library to interface with NES hardware features, and &lt;em&gt;Famitone&lt;/em&gt; to play music and sound.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2019/8bitworkshop-ide-release-3-4-0.html"/>
    <summary>We’ve added yet another platform to the 8bitworkshop IDE, the legendary
Nintendo Entertainment System (NES)!You can program in both C and 6502 assembler, and there are a ton of examples
to get you started.The IDE lets you write C using the cc65 compiler toolchain.
While it has lower performance and greater code size than a well-written assembly program, you can still write a pretty good game in C.
We use a fork of Shriu’s NESLib library to interface with NES hardware features, and Famitone to play music and sound.</summary>
    <category term="release" label="release"/>
    <published>2019-08-09T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2019/cc65-optimization.html</id>
    <title>Optimizing C array lookups for the 6502</title>
    <updated>2019-03-17T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;Most of the platforms in the IDE that are powerful enough to support a C
compiler are Z80-based.
The Z80 isn’t the easiest target for C, but at least it has a lot of registers.&lt;/p&gt;
&lt;p&gt;While the 6502 only has three 8-bit registers, the 6502 has strengths the Z80 doesn’t, as we’ll see here.&lt;/p&gt;
&lt;p&gt;Let’s compare the two dominant C compilers for these CPUs.
We’ll compile a function with the CC65 C compiler for the 6502, and then with the SDCC
(Small Device C Compiler) for the Z80.
We’ll call the function &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;getValue()&lt;/span&gt;&lt;/code&gt;:&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2019/cc65-optimization.html"/>
    <summary>Most of the platforms in the IDE that are powerful enough to support a C
compiler are Z80-based.
The Z80 isn’t the easiest target for C, but at least it has a lot of registers.While the 6502 only has three 8-bit registers, the 6502 has strengths the Z80 doesn’t, as we’ll see here.Let’s compare the two dominant C compilers for these CPUs.
We’ll compile a function with the CC65 C compiler for the 6502, and then with the SDCC
(Small Device C Compiler) for the Z80.
We’ll call the function getValue():</summary>
    <category term="6502" label="6502"/>
    <category term="c" label="c"/>
    <category term="cc65" label="cc65"/>
    <category term="compilers" label="compilers"/>
    <category term="z80" label="z80"/>
    <published>2019-03-17T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-3-0.html</id>
    <title>Designing Hardware with Verilog</title>
    <updated>2018-12-15T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;Big news!
You can use the 8bitworkshop IDE to &lt;a class="reference external" href="http://8bitworkshop.com/redir.html?platform=verilog"&gt;write Verilog
code&lt;/a&gt;, and see it
executed instantly in real-time on a simulated CRT.
Most computers are fast enough to render a game at 60 Hz, which requires
simulating Verilog at almost 5 million ticks per second.
This is all done in JavaScript!&lt;/p&gt;
&lt;p&gt;For example, here’s a simple clock divider module:&lt;/p&gt;
&lt;p&gt;The IDE instantly compiles this and starts simulating, showing the output
signals on the scope:&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-3-0.html"/>
    <summary>Big news!
You can use the 8bitworkshop IDE to write Verilog
code, and see it
executed instantly in real-time on a simulated CRT.
Most computers are fast enough to render a game at 60 Hz, which requires
simulating Verilog at almost 5 million ticks per second.
This is all done in JavaScript!For example, here’s a simple clock divider module:The IDE instantly compiles this and starts simulating, showing the output
signals on the scope:</summary>
    <category term="release" label="release"/>
    <published>2018-12-15T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-2-1.html</id>
    <title>3.2.1: batari BASIC; the Sidebar</title>
    <updated>2018-11-25T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;I came across Fred Quimby’s &lt;a class="reference external" href="https://github.com/batari-Basic/batari-Basic"&gt;batari BASIC&lt;/a&gt; while
developing the first version of 8bitworkshop, and was intrigued.
This is a BASIC compiler that targets the 6502, and has specific support
for Atari 2600 features.
For example, you might define the playfield like this:&lt;/p&gt;
&lt;p&gt;You could then set the foreground and background colors:&lt;/p&gt;
&lt;p&gt;And animate the playfield, scrolling it downward each frame:&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-2-1.html"/>
    <summary>I came across Fred Quimby’s batari BASIC while
developing the first version of 8bitworkshop, and was intrigued.
This is a BASIC compiler that targets the 6502, and has specific support
for Atari 2600 features.
For example, you might define the playfield like this:You could then set the foreground and background colors:And animate the playfield, scrolling it downward each frame:</summary>
    <category term="release" label="release"/>
    <published>2018-11-25T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2018/higher-level-6502-programming.html</id>
    <title>New Frontiers in High-Level 6502 Programming</title>
    <updated>2018-11-19T00:00:00+01:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;Programming directly in 6502 gets a little fiddly, so a higher-level
language can make things easier.
There have been many &lt;a class="reference external" href="https://dwheeler.com/6502/"&gt;attempts&lt;/a&gt; to tame the 6502 to make programming more
palatable.
Interpreted languages like BASIC, FORTH, and Pascal were popular back in the
day, and Infocom games had their own custom &lt;a class="reference external" href="http://www.ifwiki.org/index.php/Z-machine"&gt;VM&lt;/a&gt; to run on many platforms.
But programmers are a stubborn bunch, and want speed as well as usability.&lt;/p&gt;
&lt;p&gt;One approach is to just write a really powerful macro assembler that almost looks
like a high-level language.
In the 1980s, Lucasfilm developed &lt;a class="reference external" href="https://www.pagetable.com/?p=848"&gt;Macross&lt;/a&gt;
as “an assembler for people who hate assembly language”.
More recently, &lt;a class="reference external" href="http://neshla.sourceforge.net/"&gt;NESHLA&lt;/a&gt; is targeted at NES development, but
hasn’t seen much new development since 2005.&lt;/p&gt;
&lt;p&gt;It’s been more than 40 years since Chuck Peddle sold the first 6502
samples out of a jar at a trade show.
Intrepid developers are still making new languages for the CPU.
Here’s a quick survey of some that have been active in the last few years:&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2018/higher-level-6502-programming.html"/>
    <summary>Programming directly in 6502 gets a little fiddly, so a higher-level
language can make things easier.
There have been many attempts to tame the 6502 to make programming more
palatable.
Interpreted languages like BASIC, FORTH, and Pascal were popular back in the
day, and Infocom games had their own custom VM to run on many platforms.
But programmers are a stubborn bunch, and want speed as well as usability.One approach is to just write a really powerful macro assembler that almost looks
like a high-level language.
In the 1980s, Lucasfilm developed Macross
as “an assembler for people who hate assembly language”.
More recently, NESHLA is targeted at NES development, but
hasn’t seen much new development since 2005.It’s been more than 40 years since Chuck Peddle sold the first 6502
samples out of a jar at a trade show.
Intrepid developers are still making new languages for the CPU.
Here’s a quick survey of some that have been active in the last few years:</summary>
    <category term="6502" label="6502"/>
    <category term="compilers" label="compilers"/>
    <published>2018-11-19T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-2-0.html</id>
    <title>3.2.0: Font tools, bankswitching, and cassette loading</title>
    <updated>2018-10-03T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;New features in 8bitworkshop 3.2.0:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Keyboard Shortcuts&lt;/strong&gt; for debugging:&lt;/p&gt;
&lt;p&gt;Shotrcut&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-2-0.html"/>
    <summary>New features in 8bitworkshop 3.2.0:Keyboard Shortcuts for debugging:Shotrcut</summary>
    <category term="release" label="release"/>
    <published>2018-10-03T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-1-0.html</id>
    <title>3.1.0: VCS Love, Instant Replay and Playable Links</title>
    <updated>2018-08-26T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;In 8bitworkshop 3.1.0, we’ve given the VCS platform plenty of love:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Header Files&lt;/strong&gt;: Header/include files are now viewable and editable via the IDE.
But don’t use angle brackets in your includes, because they’ll pull in the
old header file versions. Instead, use double quotes, for example:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bugs Squashed&lt;/strong&gt;: The emulator was suddenly stopping and displaying a blank screen, requiring a
browser refresh. There were also problems when trying to load a
ROM of the wrong size. Also, the Program Counter is no longer wonky when
single-stepping.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-1-0.html"/>
    <summary>In 8bitworkshop 3.1.0, we’ve given the VCS platform plenty of love:Header Files: Header/include files are now viewable and editable via the IDE.
But don’t use angle brackets in your includes, because they’ll pull in the
old header file versions. Instead, use double quotes, for example:Bugs Squashed: The emulator was suddenly stopping and displaying a blank screen, requiring a
browser refresh. There were also problems when trying to load a
ROM of the wrong size. Also, the Program Counter is no longer wonky when
single-stepping.</summary>
    <category term="release" label="release"/>
    <published>2018-08-26T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-0-0.html</id>
    <title>Version 3.0.0 Released!</title>
    <updated>2018-08-06T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;Version 3.0.0 of the 8bitworkshop IDE is out! Under the hood, there are lots of changes:&lt;/p&gt;
&lt;p&gt;There’s a new browser storage backend, and your local changes will be migrated over the first time you start the IDE.
This means you can save many more projects locally.&lt;/p&gt;
&lt;p&gt;The site also now supports HTTPS, but be aware that local changes made on the HTTPS site won’t affect the HTTP site, and vice-versa.&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2018/8bitworkshop-ide-release-3-0-0.html"/>
    <summary>Version 3.0.0 of the 8bitworkshop IDE is out! Under the hood, there are lots of changes:There’s a new browser storage backend, and your local changes will be migrated over the first time you start the IDE.
This means you can save many more projects locally.The site also now supports HTTPS, but be aware that local changes made on the HTTPS site won’t affect the HTTP site, and vice-versa.</summary>
    <category term="release" label="release"/>
    <published>2018-08-06T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://8bitworkshop.com/docs/posts/2017/sincere-flattery-arcade-industry.html</id>
    <title>Sincere Flattery in the Early Arcade Industry</title>
    <updated>2017-04-27T00:00:00+02:00</updated>
    <author>
      <name>Steven Hugg</name>
    </author>
    <content type="html">&lt;p class="ablog-post-excerpt"&gt;&lt;p&gt;“If I have seen a little further, it is by standing on the shoulders of giants.” – Isaac Newton&lt;/p&gt;
&lt;p&gt;“Imitation is the sincerest form of flattery.” – Charles Caleb Colton&lt;/p&gt;
&lt;p&gt;“Art is theft.” – Pablo Picasso&lt;/p&gt;
&lt;/p&gt;
</content>
    <link href="https://8bitworkshop.com/docs/posts/2017/sincere-flattery-arcade-industry.html"/>
    <summary>“If I have seen a little further, it is by standing on the shoulders of giants.” – Isaac Newton“Imitation is the sincerest form of flattery.” – Charles Caleb Colton“Art is theft.” – Pablo Picasso</summary>
    <category term="history" label="history"/>
    <published>2017-04-27T00:00:00+02:00</published>
  </entry>
</feed>
