23 Jul '17, 5am

Virtual CPU Stays on Script

Some will see it as a great thing, and others as an example of how JavaScript is being abused daily, but [Francis Stokes] decided to design his own CPU architecture and implemented a virtual version of it using JavaScript . The CPU is a 16-bit affair and has a simplified assembly language. The code is on GitHub , but the real value is [Francis’] exposition of the design in the original post. While discussing the design, [Francis] reveals his first pass at the instruction set, discussed what he found wrong about it, and then reveals the final set composed of real instructions and some macros to handle other common cases. [Francis] got the CPU bug from watching [Ben Eater’s] videos . Of course, [Ben’s] CPU is 8-bit and lives on a breadboard. If we had wanted to test out a new instruction set architecture, we would probably use C or C++ or… well, honestly, anything but JavaSc...

Full article: http://hackaday.com/2017/07/22/virtual-cpu-stays-on-script/

Tweets

'Ready Player One' Trailer Explores the Virtual...

hypebeast.com 22 Jul '17, 10pm

After releasing the first image of his next film earlier this month, director Steven Spielberg waited until San Diego Comi...

Find Instructions Hidden In Your CPU

hackaday.com 30 Jul '17, 8pm

There was a time when owning computer meant you probably knew most or all of the instructions it could execute. Your moder...

Find Instructions Hidden In Your CPU

hackaday.com 30 Jul '17, 8pm

There was a time when owning computer meant you probably knew most or all of the instructions it could execute. Your moder...

Virtual Tour of the Month: Post-Modern Masterpi...

sothebysrealty.com 24 Jul '17, 6pm

Explore homes from around the world from the comfort of yours with our virtual tour of the month. $14,995,000 USD | Woodsi...