Packed Binary Coded Decimal Simulation

written by Teresa Carrigan


Run model in your browser


Top

THINGS TO NOTICE

A packed BCD representation takes more bits than using normal binary representations, but has more flexibility. For example, even if the memory locations and registers are restricted to 64 bit numbers (so a two's complement integer would be limited to 32 bits) a packed BCD number could have an arbitrary number of bytes with two digits per byte.

Top

THINGS TO TRY

Set slow-motion to 0.3, then click go.

Click setup. Attempt one step at a time on paper, and then click the step button to check that you did that step correctly.


Home

Applets on this website were written by Teresa Carrigan in 2004, for use in computer science courses at Blackburn College, with the exception of the Fireworks applet. The applets made with NetLogo require Java 1.4.1 or higher to run. The applets made with NetBeans require Java 1.4.2 or higher to run. Applets might not run on Windows 95 or Mac OS 8 or 9. You may obtain the latest Java plugin from Sun's Java site.