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

⟦86fb63cd9⟧

    Length: 1408 (0x580)
    Names: »EXAMPLE2.CML«

Derivation

└─⟦832e7e234⟧ Bits:30003263 Butler systemdiskette
└─⟦832e7e234⟧ Bits:30004286 Butler systemdiskette
    └─ ⟦this⟧ »EXAMPLE2.CML« 
└─⟦ccbc2d84d⟧ Bits:30004597 Boot 60k CP/M (Butler)
    └─ ⟦this⟧ »EXAMPLE2.CML« 
└─⟦d823d3189⟧ Bits:30004365 Butler CP/M 2.2 systemdiskette fra LFU
    └─ ⟦this⟧ »EXAMPLE2.CML« 

Hex Dump

0x000…020 30 30 31 30 20 2f 2f 20 54 68 69 73 20 69 73 20 61 6e 20 65 78 61 6d 70 6c 65 20 70 72 6f 67 72   ┆0010 // This is an example progr┆
0x020…040 61 6d 20 77 68 69 63 68 20 64 65 6d 6f 6e 73 74 72 61 74 65 73 20 74 68 65 20 75 73 65 20 6f 66   ┆am which demonstrates the use of┆
0x040…060 0d 30 30 32 30 20 2f 2f 20 73 6f 6d 65 20 6f 66 20 74 68 65 20 4d 45 54 41 4e 49 43 20 43 4f 4d   ┆ 0020 // some of the METANIC COM┆
0x060…080 41 4c 2d 38 30 20 22 45 58 54 45 4e 53 49 4f 4e 53 22 20 64 65 66 69 6e 65 64 20 69 6e 20 74 68   ┆AL-80 "EXTENSIONS" defined in th┆
0x080…0a0 65 0d 30 30 33 30 20 2f 2f 20 66 69 6c 65 20 45 58 41 4d 50 4c 45 2e 4d 41 43 20 2e 0d 30 30 34   ┆e 0030 // file EXAMPLE.MAC . 004┆
0x0a0…0c0 30 20 2f 2f 0d 30 30 35 30 20 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 74 68 69 73 20 66 69 6c 65   ┆0 // 0050 // Note that this file┆
0x0c0…0e0 20 63 61 6e 20 6f 6e 6c 79 20 62 65 20 6c 6f 61 64 65 64 20 69 66 20 74 68 65 20 65 78 74 65 6e   ┆ can only be loaded if the exten┆
0x0e0…100 73 69 6f 6e 0d 30 30 36 30 20 2f 2f 20 66 69 6c 65 20 22 45 58 41 4d 50 4c 45 2e 45 58 54 22 20   ┆sion 0060 // file "EXAMPLE.EXT" ┆
0x100…120 68 61 73 20 61 6c 72 65 61 64 79 20 62 65 65 6e 20 6c 6f 61 64 65 64 20 75 73 69 6e 67 20 61 6e   ┆has already been loaded using an┆
0x120…140 0d 30 30 37 30 20 2f 2f 20 27 45 58 54 45 4e 53 49 4f 4e 20 45 58 41 4d 50 4c 45 27 20 63 6f 6d   ┆ 0070 // 'EXTENSION EXAMPLE' com┆
0x140…160 6d 61 6e 64 2e 0d 30 30 38 30 20 2f 2f 0d 30 30 39 30 20 2f 2f 20 54 68 69 73 20 70 72 6f 67 72   ┆mand. 0080 // 0090 // This progr┆
0x160…180 61 6d 20 77 72 69 74 74 65 6e 20 38 33 30 33 32 34 0d 30 31 30 30 20 2f 2f 20 20 20 20 20 20 20   ┆am written 830324 0100 //       ┆
0x180…1a0 20 20 20 20 20 20 20 20 20 20 20 20 62 79 20 41 72 6e 65 20 43 68 72 69 73 74 65 6e 73 65 6e 0d   ┆            by Arne Christensen ┆
0x1a0…1c0 30 31 31 30 20 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 77 68 6f 20 69 73 20 6f 66 20 4d 65 74   ┆0110 //            who is of Met┆
0x1c0…1e0 61 6e 69 63 20 41 70 53 0d 30 31 32 30 20 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆anic ApS 0120 //                ┆
0x1e0…200 20 20 20 20 20 20 4b 6f 6e 67 65 76 65 6a 65 6e 20 31 37 37 0d 30 31 33 30 20 2f 2f 20 20 20 20   ┆      Kongevejen 177 0130 //    ┆
0x200…220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 4b 2d 32 38 33 30 20 56 69 72 75 6d 0d   ┆                  DK-2830 Virum ┆
0x220…240 30 31 34 30 20 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 6e   ┆0140 //                      Den┆
0x240…260 6d 61 72 6b 0d 30 31 35 30 20 2f 2f 0d 30 31 36 30 20 56 41 4c 55 45 23 3a 3d 30 0d 30 31 37 30   ┆mark 0150 // 0160 VALUE#:=0 0170┆
0x260…280 20 50 52 49 4e 54 20 0d 30 31 38 30 20 50 52 49 4e 54 20 22 52 65 73 70 6f 6e 64 20 74 6f 20 65   ┆ PRINT  0180 PRINT "Respond to e┆
0x280…2a0 61 63 68 20 63 6f 6c 6f 6e 20 77 69 74 68 20 61 20 62 69 74 20 6e 75 6d 62 65 72 20 61 6e 64 20   ┆ach colon with a bit number and ┆
0x2a0…2c0 52 45 54 55 52 4e 2e 22 0d 30 31 39 30 20 50 52 49 4e 54 20 22 54 68 65 20 73 65 6c 65 63 74 65   ┆RETURN." 0190 PRINT "The selecte┆
0x2c0…2e0 64 20 62 69 74 20 77 69 6c 6c 20 62 65 20 63 6f 6d 70 6c 65 6d 65 6e 74 65 64 2e 22 0d 30 32 30   ┆d bit will be complemented." 020┆
0x2e0…300 30 20 50 52 49 4e 54 20 22 49 66 20 62 69 74 20 6e 75 6d 62 65 72 20 2d 31 20 69 73 20 73 65 6c   ┆0 PRINT "If bit number -1 is sel┆
0x300…320 65 63 74 65 64 2c 20 74 68 65 20 77 68 6f 6c 65 20 6e 75 6d 62 65 72 20 77 69 6c 6c 20 62 65 20   ┆ected, the whole number will be ┆
0x320…340 31 27 73 22 0d 30 32 31 30 20 50 52 49 4e 54 20 22 63 6f 6d 70 6c 65 6d 65 6e 74 65 64 2e 22 0d   ┆1's" 0210 PRINT "complemented." ┆
0x340…360 30 32 32 30 20 50 52 49 4e 54 20 22 54 68 65 20 62 69 74 20 6e 75 6d 62 65 72 20 6d 75 73 74 20   ┆0220 PRINT "The bit number must ┆
0x360…380 62 65 20 2d 31 20 6f 72 20 69 6e 20 74 68 65 20 72 61 6e 67 65 20 30 20 74 68 72 6f 75 67 68 20   ┆be -1 or in the range 0 through ┆
0x380…3a0 31 35 2e 22 0d 30 32 33 30 20 50 52 49 4e 54 20 0d 30 32 34 30 20 4c 4f 4f 50 20 0d 30 32 35 30   ┆15." 0230 PRINT  0240 LOOP  0250┆
0x3a0…3c0 20 20 20 55 4e 53 5f 56 41 4c 55 45 3a 3d 56 41 4c 55 45 23 0d 30 32 36 30 20 20 20 49 46 20 55   ┆   UNS_VALUE:=VALUE# 0260   IF U┆
0x3c0…3e0 4e 53 5f 56 41 4c 55 45 3c 30 20 54 48 45 4e 20 55 4e 53 5f 56 41 4c 55 45 3a 2b 36 35 35 33 36   ┆NS_VALUE<0 THEN UNS_VALUE:+65536┆
0x3e0…400 2e 30 0d 30 32 37 30 20 20 20 50 52 49 4e 54 20 48 45 58 24 28 55 4e 53 5f 56 41 4c 55 45 29 2c   ┆.0 0270   PRINT HEX$(UNS_VALUE),┆
0x400…420 22 20 3d 20 22 2c 0d 30 32 38 30 20 20 20 46 4f 52 20 49 3a 3d 31 35 20 44 4f 57 4e 54 4f 20 30   ┆" = ", 0280   FOR I:=15 DOWNTO 0┆
0x420…440 20 44 4f 20 0d 30 32 39 30 20 20 20 20 20 50 52 49 4e 54 20 56 41 4c 55 45 23 20 42 49 54 20 49   ┆ DO  0290     PRINT VALUE# BIT I┆
0x440…460 2c 0d 30 33 30 30 20 20 20 4e 45 58 54 20 49 0d 30 33 31 30 20 20 20 52 45 50 45 41 54 20 0d 30   ┆, 0300   NEXT I 0310   REPEAT  0┆
0x460…480 33 32 30 20 20 20 20 20 49 4e 50 55 54 20 22 20 3a 20 22 3a 20 42 49 54 4e 4f 23 2c 20 0d 30 33   ┆320     INPUT " : ": BITNO#,  03┆
0x480…4a0 33 30 20 20 20 55 4e 54 49 4c 20 42 49 54 4e 4f 23 3e 3d 2d 31 20 41 4e 44 20 42 49 54 4e 4f 23   ┆30   UNTIL BITNO#>=-1 AND BITNO#┆
0x4a0…4c0 3c 3d 31 35 0d 30 33 34 30 20 20 20 50 52 49 4e 54 20 0d 30 33 35 30 20 20 20 49 46 20 42 49 54   ┆<=15 0340   PRINT  0350   IF BIT┆
0x4c0…4e0 4e 4f 23 3d 2d 31 20 54 48 45 4e 20 0d 30 33 36 30 20 20 20 20 20 56 41 4c 55 45 23 3a 3d 43 4f   ┆NO#=-1 THEN  0360     VALUE#:=CO┆
0x4e0…500 4d 50 4c 20 56 41 4c 55 45 23 0d 30 33 37 30 20 20 20 45 4c 53 45 20 0d 30 33 38 30 20 20 20 20   ┆MPL VALUE# 0370   ELSE  0380    ┆
0x500…520 20 53 45 54 42 49 54 20 56 41 4c 55 45 23 2c 20 42 49 54 4e 4f 23 2c 20 43 4f 4d 50 4c 20 56 41   ┆ SETBIT VALUE#, BITNO#, COMPL VA┆
0x520…540 4c 55 45 23 20 42 49 54 20 42 49 54 4e 4f 23 0d 30 33 39 30 20 20 20 45 4e 44 49 46 20 0d 30 34   ┆LUE# BIT BITNO# 0390   ENDIF  04┆
0x540…560 30 30 20 45 4e 44 4c 4f 4f 50 20 0d 0d 30 33 36 30 20 20 20 20 20 56 41 4c 55 45 23 3a 3d 43 4f   ┆00 ENDLOOP   0360     VALUE#:=CO┆
0x560…580 4d 50 4c 20 56 41 4c 55 45 23 0d 30 33 37 30 20 20 20 45 4c 53 45 20 0d 30 33 38 30 20 20 20 4c   ┆MPL VALUE# 0370   ELSE  0380   L┆