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 - metrics - download

⟦c3bc5fec7⟧

    Length: 384 (0x180)
    Names: »CHECKNR.CML«

Derivation

└─⟦2cd1ff413⟧ Bits:30004221/disk1.imd Penge og samfund (Comet)
    └─⟦this⟧ »CHECKNR.CML« 

Hex Dump

0x000…020 (0,) 36 36 30 30 20 50 52 4f 43 20 43 48 45 43 4b 4e 52 28 45 41 4e 24 2c 20 52 45 46 20 4f 4b 23 29   ┆6600 PROC CHECKNR(EAN$, REF OK#)┆
0x020…040      20 43 4c 4f 53 45 44 20 2f 2f 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d   ┆ CLOSED //----------------------┆
0x040…060      20 43 48 45 43 4b 4e 52 0d 36 36 30 31 20 20 20 44 49 4d 20 45 24 20 4f 46 20 31 33 0d 36 36 30   ┆ CHECKNR 6601   DIM E$ OF 13 660┆
0x060…080      32 20 20 20 45 24 3a 3d 45 41 4e 24 3b 20 53 55 4d 3a 3d 30 3b 20 4f 4b 23 3a 3d 46 41 4c 53 45   ┆2   E$:=EAN$; SUM:=0; OK#:=FALSE┆
0x080…0a0      0d 36 36 30 33 20 20 20 49 46 20 4c 45 4e 28 45 24 29 3d 31 33 20 54 48 45 4e 20 0d 36 36 30 34   ┆ 6603   IF LEN(E$)=13 THEN  6604┆
0x0a0…0c0      20 20 20 20 20 4b 4f 4e 54 52 4f 4c 3a 3d 56 41 4c 28 45 24 28 31 33 3a 31 33 29 29 0d 36 36 30   ┆     KONTROL:=VAL(E$(13:13)) 660┆
0x0c0…0e0      35 20 20 20 20 20 46 4f 52 20 49 3a 3d 31 20 54 4f 20 31 31 20 53 54 45 50 20 32 20 44 4f 20 0d   ┆5     FOR I:=1 TO 11 STEP 2 DO  ┆
0x0e0…100      36 36 30 36 20 20 20 20 20 20 20 53 55 4d 3a 3d 53 55 4d 2b 56 41 4c 28 45 24 28 49 3a 49 29 29   ┆6606       SUM:=SUM+VAL(E$(I:I))┆
0x100…120      2b 33 2a 56 41 4c 28 45 24 28 49 2b 31 3a 49 2b 31 29 29 0d 36 36 30 37 20 20 20 20 20 4e 45 58   ┆+3*VAL(E$(I+1:I+1)) 6607     NEX┆
0x120…140      54 20 49 0d 36 36 30 38 20 20 20 20 20 43 3a 3d 28 31 30 2d 53 55 4d 20 4d 4f 44 20 31 30 29 20   ┆T I 6608     C:=(10-SUM MOD 10) ┆
0x140…160      4d 4f 44 20 31 30 3b 20 4f 4b 23 3a 3d 28 4b 4f 4e 54 52 4f 4c 3d 43 29 0d 36 36 30 39 20 20 20   ┆MOD 10; OK#:=(KONTROL=C) 6609   ┆
0x160…180      45 4e 44 49 46 20 0d 36 36 31 30 20 45 4e 44 50 52 4f 43 20 43 48 45 43 4b 4e 52 0d 3a 49 29 7c   ┆ENDIF  6610 ENDPROC CHECKNR :I)ø┆