home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / DVD!FX17.LHA / FrexxEd / fpl / FACT_hex.FPL < prev    next >
Encoding:
Text File  |  1995-06-07  |  561 b   |  17 lines

  1. {
  2.   string hex[16]={"0", "1", "2", "3", "4", "5", "6", "7",
  3.                   "8", "9", "A", "B", "C", "D", "E", "F"};
  4.   int counter;
  5.   string fact=ReadInfo("fact");
  6.  
  7.   Visible(0);
  8.   for (counter=1; counter<256; counter++) {
  9.     FACT(fact, counter, 'e', '-', 's', joinstr("#R", itoc(counter), "#r-", hex[counter>>4],
  10.                                hex[counter&15], " "));
  11.   }
  12.   FACT(fact, 0, 's', "#R #r-00 ");    // Change the 00-character.
  13.   FACT(fact, 0x23, 's', "#R###r-23 ");    // Change the '#'-character.
  14.   FACT(fact, 0xa, 'N');            // 0x0A is still newline
  15. }
  16.  
  17.