Binary

There is no decimal inside the LGP-30. Everything on its drum is a 32-bit binary word, and every instruction works on those bits. You can write a short program in the IDE without thinking about this. To understand what the machine is doing, you need binary.

What you will meet

None of this is hard, but it is all unfamiliar if you have only used decimal and a modern language. The manuals and program listings of the time assume you know it. So does the debugger. The same ideas return on nearly every machine that came after, from minicomputers to eight-bit home computers.

The Binary Course

The Binary Course covers this ground in 21 lessons: counting in other bases, bitwise operations, negative numbers, fractions in binary, and reading real machine words. Lesson 19 decodes a raw word from the LGP-30. Each lesson has exercises, with the answers at the back. You do not need an account to read it.

If you already read hex and two's complement comfortably, skip it and go straight to Programming.

The Calculator

The Calculator converts a number between decimal, hexadecimal, binary and the LGP-30's word format, and shows how a word reads as an instruction. Use it to check your working, or to see how a number will look in the debugger.