Solve exercise 8 from section 7.8. In addition to the requested PROC, also create PROCs to convert from unpacked BCD to ASCII, from ASCII to unpacked BCD, from unpacked BCD to packed BCD, from ASCII to packed BCD, and packed BCD to unpacked BCD. (Obviously, some of these can be written by calling sequences of the others...)

As always, document any procedures you create well!


This assignment is Level 2.5.

Option

Add (Level 1.5) to also write PROCs to convert from each of the above types to binary (that's 3 PROCs: ASCII, unpacked BCD, and packed BCD). (Again, you may end up re-using some of this...)