The Museum of HP Calculators

HP Forum Archive 14

[ Return to Index | Top of Index ]

Hp45 microcode
Message #1 Posted by klaus on 16 June 2004, 11:45 a.m.

Whoever has problems squeezing the microcode instructions in the rom of a ucontroller, can try the following to save space: There are 1024 possible instructions, but only about 526 are used. The Roms 1,5 and 6 use a similar subset of only 254 instructions. So you number the 254 instructions from 0 to 253 and store them instead of the original 10bit instructions. Next you have to build a translation table which translates the 8 bit number to the original opcode.

If you only have the choice between 8 and 16 bit words, you can save space:

before: 8Roms*256Instructions*16Bit

after: 5ROMS*256Instructions*16Bit+ 3ROMS*256Instructions*8Bit+ 1Translation*254Instructions*16Bit


[ Return to Index | Top of Index ]

Go back to the main exhibit hall