25/Jul/2014 - Last News Update: 13:07

Tech Know: BBC Micros used in retro programming class

Category: Technology

Published: 25th Aug 2010 09:02:56

In our regular series about makers, hackers and amateur technologists, BBC News meets the people giving the classic BBC Micro a new lease of life.

Computer history is cruel. It is a story of the old constantly being pushed aside for the newer, the faster, the smaller, the shinier.

Those old machines are rarely allowed a graceful retirement. Cast aside, they end their days in the dark ,fit only to be homes for spiders in lofts and cupboards.

But one lucky flock of BBC Micros is getting another lease of life by helping to educate students in the art of rigorous programming.

The National Museum of Computing (TNMOC) at Bletchley Park has started letting a few lucky A-level students loose on the machines to hone their programming skills.

"The computing A-level is about how computers work and if you ask anyone how it works they will not be able to tell you," said Doug Abrams, an ICT teacher from Ousedale School in Newport Pagnell, who was one of the first to use the machines in lessons.

For Mr Abrams the old machines have two cardinal virtues; their sluggishness and the direct connection they have with the user.

In one of the first lessons held at TNMOC the lucky Ousedale students programmed a venerable PDP-8 machine by flicking the switches set on its front panel to set the binary values in its memory. And an interface does not get more direct than that.

"Modern computers go too fast," said Mr Abrams. "You can see the instructions happening for real with these machines. They need to have that understanding for the A-level."

The second time the students got to use the BBC Micros they were given three hours to create a simple 8-bit game. Tech Know was there to record what happened.

Prior to the lesson Mr Abrams had produced 100 lines of code that created a rough version of the game pitting a battleship against a bomber. The students' task was to refine the game by introducing a scoring system, improving its looks and introducing new elements such as a hunter-killer submarine.

Two students tackled the bugs and refinements, two the graphics and sounds and the remaining student got to work typing the program onto other machines so testing could get going.

The five soon discovered that just because a program was simple did not mean the underlying code was straight-forward. To make matters more testing, the BBC Micro offers a very unforgiving programming environment.

For much of their A-level, the students had been using Visual Basic - a breeze by comparison.

"Because there's no copy and paste, if you do something wrong it takes time to go back and fix it," said Joe Gritton. "You cannot take out sections and move them around."

Perry Gemmell lamented the lack of friendly interface on the BBC Micro, which presents users with a screen full of text.

"It's easier to find bugs in Visual Basic," he said. "It helps you as you go along."

Visual Basic suggests words while a coder types, highlights syntax errors and makes bug hunts easier by jumping straight to the problematic code - even when the error is one of logic rather than letters.

By contrast, the BBC Micro is a study in imperious indifference. Get something wrong and the program will crash and perhaps throw up an error message. Worse are the cases when it works but not in the way expected leaving the programmer to scratch their head and try to work out why.

The machines also enforced a parsimonious programming style. A memory of only 32K is a shoebox in comparison to the Lordly halls of memory available on the average 21st-Century desktop.

The simple program that the students were working on threw up some real problems.

Mr Gritton and partner Callum Adams were given the task of adding a submarine. But, they realised, the introduction of the torpedo-firing sub would spell the end of the game, as the ship had no way to avoid it.

Changing one element in the simple game kicked off the need to solve lots of separate problems - it was a real exercise in creative coding. The students had their eyes on the screen and their hands in the bits.

"We're learning a lot," said Callum Adams. "It makes you realise how difficult it is making real video games."

The day of study had begun with what must be the ultimate hands-on technology experience: Mr Abrams got the students to be a computer.

They each took on the role of a different part of the machine - CPU, accumulator, RAM and program counter - and simulated the passage of instructions through the hardware.

The five shuffled data around, wrote it to memory, carried out computations and inserted them into the right places in the store.

It was a noisy, confusing and funny simulation and, once everyone knew what they were doing, managed to reach a maximum clock speed of about one instruction per minute.

And even the BBC Micro, for all its age, can beat that.

BBC News External Link Show Citation

Latest News

Harvard Citation

BBC News, 2010. Tech Know: BBC Micros used in retro programming class [Online] (Updated 25th Aug 2010)
Available at: http://www.ukwirednews.com/news/84696/Tech-Know-BBC-Micros-used-in-retro-programming-class [Accessed 25th Jul 2014]

News In Other Categories

  • Bristol Academy extends reach overseas with first foreign students

    With the doors to its brand new £1million training centre officially open, one of the UK's leading apprentice training providers, Bristol based S&B Automotive Academy, is showcasing its world-class facilities by launching a series of foreign student exchanges for the first time in its 41-year history. To get a flavour of what life is like as an apprentice in the UK, the Academy hosted 16 apprentice engineers and bus drivers from the G9 Automotive College in Hamburg, Germany, as part of a Europe-wide vocational training initiative called the ‘Leonardo Programme’ with support from the European Social Fund. In a reciprocal arrangement, S&B will be sending nine apprentices to Germany during February 2012 so that they can get an appreciation of life in the automotive industry on the Continent. A further three German exchange groups are being planned for next year. Designed to assist the development of vocational skills and training across Europe, including work placements for trainees, the Leonardo Programme has a budget of €1.75bn, which is helping to encourage UK organisations to work with their counterparts abroad. In what is expected to be another challenging year for employers in the UK automotive sector, S&B’s Chief Executive, Jon Winter, claims that the exchange initiative will bring many benefits to the Academy and its apprentices: “In a world of global automotive brands, it’s important for our learners to understand the international context of the industry they have chosen to make their career. This new exchange programme will enable apprentices and Academy staff alike to achieve a better understanding of the challenges and opportunities within the automotive arena in Europe. With the Academy’s influence also extending to the USA and Asia, there’s every possibility that this initiative could move further afield in the future.” Continued Winter: “The need for skilled technicians across the world is on the increase and we actively encourage our apprentices to look at broader horizons during their training. Many of them have already learned the phrase ‘Vorsprung durch Gelehrtheit’, quite simply, ‘Advancement through learning.” In the 2010/11 academic year, S&B doubled the number of successful Apprenticeships over the previous year with some 350 apprentices graduating from the Academy. At the same time, achievement levels reached an all-time high with an overall success rate of 85%. For those learners on the Advanced Apprenticeship three-year programme, success rates were even higher, at over 98%. PHOTO CAPTION: As part of their exchange visit, S&B Automotive Academy arranged for the German apprentices to visit Hampshire bus operator, Bluestar, at its Barton Park depot. The students are pictured with S&B’s Andy West (3rd right) and Steve Prewett, Bluestar’s Area Engineering Manager (2nd right). Ends http://www.sandbaa.com
  • Twin peeks: First images of RZSS park's red panda cubs

    A red panda at the Highland Wildlife Park at Kincraig, near Aviemore, has given birth to twins.
  • Sexism and poor facilities put women off sport, say MPs

    A report by MPs suggests sexist attitudes, boring lessons and "gratuitous derogatory remarks" made by media commentators put women off sport.
  • Sexism and poor facilities put women off sport, say MPs

    A report by MPs suggests sexist attitudes, boring lessons and "gratuitous derogatory remarks" made by media commentators put women off sport.
  • Ukraine: Kiev cathedral launches prayer and guidance app

    Orthodox Christian Ukrainians in search of spiritual guidance need look no further than their smartphones, after a cathedral in the capital Kiev launched its own prayer app.
  • Pop star Tulisa found guilty of V Festival assault

    Former N-Dubz singer Tulisa has been found guilty of assaulting a man at a music festival.