Feeds

Chap rebuilds BBC Micro in JavaScript

Revisit classic space-trading Elite in vintage form

The essential guide to IT transformation

Matt Godbolt, a developer whose day job sees him work at a securities trading outfit, has used his personal time to rebuild the Acorn BBC Micro in JavaScript.

JSBeeb, running here and downloadable from Github is the product of about two months' work.

The emulator reproduces a 32K BBC Micro and when loaded into your browser produces the command prompt. Menus promise the chance to download software for the micro from various online sources, but proved a little flaky in our brief tests. If you experience the same problem, he's also built versions of the emulator that boot straight into classics like Elite and Repton.

Godbolt has blogged about the project, writing that a big challenge was figuring out how to synch the emulated 6502 processor's clock cycles and the CPU's handful of imperfect features bugs.

“As I generate the instructions I keep track of which cycle within the instruction memory accesses would occur,” he explained. “I then ensure the peripheral state is updated to take into account passing time before I read or write to memory.”

The emulator appears to be a faithful reproduction, makes suitably hideous sounds at boot-up, and offers zippy performance, something the original BBC Micro was not entirely famous for – but was certainly famous for other worthy reasons.

Godbolt promises to blog about screen and peripheral emulation in the future; posts that'll be worth seeking out for those who enjoy this kind of thing as his work is nicely detailed and includes lots of code samples and links to projects that will help others attempting similar resurrections. ®

Bootnote

For fans of in-browser emulation, there's also a JavaScript Electron (a cut-down BBC Micro) and Atari ST by various authors, plus plenty more over at the Internet Archive. What piqued our interest in Godbolt's work, however, was his nice writeup on how his cleanly written code works – and the promise of more.

Boost IT visibility and business value

More from The Register

next story
So, Apple won't sell cheap kit? Prepare the iOS garden wall WRECKING BALL
It can throw the low cost race if it looks to the cloud
Apple's iWatch? They cannae do it ... they don't have the POWER
Analyst predicts fanbois will have to wait until next year
AMD unveils 'single purpose' graphics card for PC gamers and NO ONE else
Chip maker claims the Radeon R9 285 is 'best in its class'
Barnes & Noble: Swallow a Samsung Nook tablet, please ... pretty please
Novelslab finally on sale with ($199 - $20) price tag
Apple to build WORLD'S BIGGEST iStore in Dubai
It's not the size of your shiny-shiny...
Just in case? Unverified 'supersize me' iPhone 6 pics in sneak leak peek
Is bigger necessarily better for the fruity firm's flagship phone?
Steve Jobs had BETTER BALLS than Atari, says Apple mouse designer
Xerox? Pff, not even in the same league as His Jobsiness
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
5 things you didn’t know about cloud backup
IT departments are embracing cloud backup, but there’s a lot you need to know before choosing a service provider. Learn all the critical things you need to know.
Why and how to choose the right cloud vendor
The benefits of cloud-based storage in your processes. Eliminate onsite, disk-based backup and archiving in favor of cloud-based data protection.
Top 8 considerations to enable and simplify mobility
In this whitepaper learn how to successfully add mobile capabilities simply and cost effectively.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?