Monthly Archives: March 2013

Compiling a Simple Game for the Super Nintendo Using WLA

1. Download WLA. WLA is a development kit for the Super Nintendo Entertainment System (SNES). As of this writing, it is available as a 7-Zip archive file named “wla-dx-9.2.7z” at the URL “http://wiki.superfamicom.org/snes/show/Setting+Up+a+Programming+Environment“. 2. If necessary, download and install 7-Zip. … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Accessing USB Devices from C# Using LibUSBDotNet

1. Download and install SharpDevelop. 2. Download and install the libusbdotnet package. 3. Plug at least one USB device into the computer wait for Windows to install its driver. 4. Start the libusbdotnet Filter Wizard by selecting the item “All … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

A Virtual Machine in JavaScript

The code shown below implements a simple virtual machine in JavaScript, with a virtual processor, a custom instruction set, a bunch of virtual registers, virtual memory, a virtual disk drive, and a virtual display that interfaces with the host web … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

A Four-Function Calculator in JavaScript

The code shown below implements a simple four-function calculator in JavaScript. It’s not quite finished, and does not yet support decimal points. <html> <body> <script type=’text/javascript’> function Calculator() { this.main = function() { var size = new Coords(32, 32); var … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

A Simple Game Loop in JavaScript

The code included below implements a simple game in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser running JavaScript. The object of the game is to collect all … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

A REST Service in Node.js with a MariaDB Backend

The code given below is intended to implement a simple demonstration of a client-server application that incorporates a JavaScript client running in a web browser as the user interface, a JavaScript service running via Node.js as the middle tier, and … Continue reading

Posted in Uncategorized | 1 Comment

Building an Image from Text in JavaScript

The code included below builds and displays an image from an array of strings whose individual characters represent the pixels in that image. To see it in action, copy the code into an .html file and open that file in … Continue reading

Posted in Uncategorized | Leave a comment