Obarvený kód souboru calc.pas

uses crt;


(* celociselna kalkulacka
   pou§?v  prom?nou longint <-2147483648..2147483647>
      m - zapis do pameti
      M - vypis pameti *)


const tlacitek = 16;
      tl_h     : array[1..tlacitek] of char =
                  ('7','8','9','4','5','6','1','2','3','0','+','-','*','/','=','C');
      tl_x     : array[1..tlacitek] of integer =
                  (2,6,10,2,6,10,2,6,10,6,14,14,14,14,10,2);
      tl_y     : array[1..tlacitek] of integer =
                  (5,5,5,7,7,7,9,9,9,11,5,7,9,11,11,11);
      plus     = 0;
      minus    = 1;
      krat     = 2;
      deleno   = 3;
      delka    = 15;


procedure color(t,p:byte);
 beginend;

procedure tlacitko(cislo:byte;c:byte);
 beginend;

procedure stisk(cislo:byte);
 beginend;

procedure status(cislo:longint);
var txt : string[delka];
    x   : integer;
 beginend;

procedure init;
var x : byte;
 beginend;


var k       : char;
    c,cp,m  : longint;
    posl    : byte;


beginend.

created by PaJa