asm/decimal.c
changeset 29 7abf6146898e
parent 9 c3fecc82ade6
child 77 49e0babccb23
equal deleted inserted replaced
28:54addf5893ef 29:7abf6146898e
    26 
    26 
    27 char *dec_to_base (ULONG decimal, int base, int *digits)
    27 char *dec_to_base (ULONG decimal, int base, int *digits)
    28 {
    28 {
    29     char *encoded;
    29     char *encoded;
    30     char swp;
    30     char swp;
       
    31 
    31     int i;
    32     int i;
    32 
    33 
    33     i = 0;
    34     i = 0;
    34 
    35 
    35     if ((decimal > MAXVALUE)) {
    36     if ((decimal > MAXVALUE)) {
    59 }
    60 }
    60 
    61 
    61 int main (int argc, char **argv)
    62 int main (int argc, char **argv)
    62 {
    63 {
    63     ULONG decimal, start, end;
    64     ULONG decimal, start, end;
       
    65 
    64     int bits, base, i;
    66     int bits, base, i;
       
    67 
    65     char *binaer;
    68     char *binaer;
    66 
    69 
    67     base = 2;
    70     base = 2;
    68 
    71 
    69     if (argc == 2) {
    72     if (argc == 2) {