DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦822daaa8c⟧ TextFile

    Length: 512 (0x200)
    Types: TextFile
    Names: »KIGGE.PAS«

Derivation

└─⟦037dced94⟧ Bits:30003312 Elevopgave i styring af skildpadde til Piccolo
    └─ ⟦this⟧ »KIGGE.PAS« 

TextFile

program Kigge;
var
  vent,pause:integer;
  tilstand,valg : byte;
procedure flyt(var tilstand : byte);
  begin
    for vent:=1 to pause do port(.17.):=tilstand;
    for vent:=1 to pause do port(.17.):=0;
  end;
begin
  port(.19.):=255;
  port(.19.):=192;
  pause := 200;
  repeat
    tilstand := 0;
    valg:=port(.17.);
    if valg = 64 then tilstand := 3;
    flyt(tilstand);
  until keypress;
end.
«eof»