DataMuseum.dk

Presents historical artifacts from the history of:

RC4000/8000/9000

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

See our Wiki for more about RC4000/8000/9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦5a90e7abb⟧ TextFile

    Length: 768 (0x300)
    Types: TextFile
    Names: »switchtx    «

Derivation

└─⟦01e83a425⟧ Bits:30008166 Bånd med SW8010 og SW8500 source code
    └─⟦75ff9bef3⟧ 
        └─⟦this⟧ »switchtx    « 

TextFile

mode list.yes
swtich=algol survey.yes
begin
  long l1, l2;
  integer i;
  switch swit := sw1, sw2, sw3;
  
  trap (sw1);

  read (in, i, l1, l2);

  goto swit (i);

  sw1: write (out, <:sw1 : l1 * l2 = :>, l1 *   l2); goto skip;
  sw2: write (out, <:sw2 : l1 / l2 = :>, l1 /   l2); goto skip;
  sw3: write (out, <:sw3 : l1 m l2 = :>, l1 mod l2); goto skip;

  skip:
end;
▶EOF◀