
display_all displays an integer number between 0 and 9999. This function is
called with the following arguments:
display_all(n,lz,dp1,dp2,dp3,dp4)
where:
n is the number to be displayed
lz is the leading zero blanking ¯ag. If lz=0, data is displayed with
leading zeros. If lz=1, data is displayed with leading zeros
blanked.
dp1 to dp4 these are the decimal point enable bits for digits 1 to 4
respectively. For example, if dp1=0 then the decimal point of
digit 1 is not displayed. If on the other hand, dp1=1 then the
decimal point of digit 1 is displayed.
For example, the function call:
display_all(124,0,0,1,0)
will display the following data:
012.4
i.e. leadi ...