home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LBR Archive
(archive/lbr).
You can browse this item here: apclktc.lbr
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LBR Archive (archive/lbr)
| magic
| Supported |
1%
| dexvert
| Micro Focus COBOL library (other/microFocusCobolLibrary)
| ext
| Unsupported |
1%
| dexvert
| Micro Focus COBOL Library (other/microFocusCOBOLLibrary)
| ext
| Unsupported |
100%
| file
| LBR archive data
| default
| |
99%
| file
| data
| default
| |
87%
| TrID
| LU library
| default
| |
12%
| TrID
| C64 Hires bitmap
| default (weak)
| |
100%
| lsar
| LBR
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 20 20 20 20 20 20 20 | 20 20 20 20 00 00 02 00 |. | ....|
|00000010| 04 e5 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 41 50 43 4c 4b 54 43 | 20 41 53 4d 03 00 21 00 |.APCLKTC| ASM..!.|
|00000030| 6b 78 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |kx......|........|
|00000040| 00 41 50 43 4c 4b 54 43 | 20 4f 42 4a 02 00 01 00 |.APCLKTC| OBJ....|
|00000050| 19 85 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 20 20 20 20 20 20 20 | 20 20 20 20 00 00 02 00 |. | ....|
|00000110| f3 dc 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| ff 20 20 20 20 20 20 20 | 20 20 20 20 00 00 00 00 |. | ....|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 2a 20 50 72 6f 67 72 61 | 6d 20 47 65 6e 65 72 61 |* Progra|m Genera|
|00000190| 74 65 64 20 31 20 41 75 | 67 75 73 74 20 31 39 38 |ted 1 Au|gust 198|
|000001a0| 32 20 0d 0a 2a 20 41 75 | 74 68 6f 72 20 20 20 20 |2 ..* Au|thor |
|000001b0| 20 20 20 20 20 20 20 20 | 4d 69 63 68 61 65 6c 20 | |Michael |
|000001c0| 57 2e 20 46 6f 6c 65 79 | 0d 0a 2a 20 57 69 74 68 |W. Foley|..* With|
|000001d0| 20 61 73 73 69 73 74 20 | 66 72 6f 6d 20 20 4a 69 | assist |from Ji|
|000001e0| 6d 20 4d 6f 6f 72 65 20 | 75 73 69 6e 67 20 61 20 |m Moore |using a |
|000001f0| 70 72 6f 67 72 61 6d 20 | 6f 72 69 67 69 6e 61 6c |program |original|
|00000200| 79 20 77 72 69 74 74 65 | 6e 20 66 6f 72 20 74 68 |y writte|n for th|
|00000210| 65 0d 0a 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e..* | |
|00000220| 20 20 20 20 20 20 20 50 | 72 6f 6d 65 74 68 69 6f | P|romethio|
|00000230| 75 73 20 6d 75 6c 74 69 | 66 75 6e 63 74 69 6f 6e |us multi|function|
|00000240| 20 63 61 72 64 2c 20 66 | 6f 72 20 74 68 65 20 41 | card, f|or the A|
|00000250| 70 70 6c 65 20 5d 5b 2e | 0d 0a 2a 0d 0a 2a 0d 0a |pple ][.|..*..*..|
|00000260| 2a 20 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 77 |* This p|rogram w|
|00000270| 69 6c 6c 20 61 6c 6c 6f | 77 20 79 6f 75 20 74 6f |ill allo|w you to|
|00000280| 20 75 73 65 20 61 20 54 | 68 75 6e 64 65 72 63 6c | use a T|hundercl|
|00000290| 6f 63 6b 20 66 72 6f 6d | 20 41 70 70 6c 65 20 43 |ock from| Apple C|
|000002a0| 50 2f 4d 2e 0d 0a 2a 20 | 54 68 65 20 6f 6e 6c 79 |P/M...* |The only|
|000002b0| 20 65 71 75 61 74 65 20 | 74 68 61 74 20 6e 65 65 | equate |that nee|
|000002c0| 64 73 20 74 6f 20 62 65 | 20 63 68 61 6e 67 65 64 |ds to be| changed|
|000002d0| 20 66 6f 72 20 79 6f 75 | 72 20 41 70 70 6c 65 20 | for you|r Apple |
|000002e0| 69 73 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 0d |is the l|ocation.|
|000002f0| 0a 2a 20 6f 66 20 74 68 | 65 20 53 6c 6f 74 20 6f |.* of th|e Slot o|
|00000300| 66 20 74 68 65 20 54 68 | 75 6e 64 65 72 63 6c 6f |f the Th|underclo|
|00000310| 63 6b 2e 0d 0a 2a 20 54 | 68 69 73 20 69 73 20 73 |ck...* T|his is s|
|00000320| 65 74 20 69 6e 74 6f 20 | 74 77 6f 20 6f 66 20 74 |et into |two of t|
|00000330| 68 65 20 65 71 75 61 74 | 65 73 20 62 6f 74 68 20 |he equat|es both |
|00000340| 41 24 43 4b 57 20 66 6f | 72 20 61 20 77 72 69 74 |A$CKW fo|r a writ|
|00000350| 65 20 74 6f 20 74 68 65 | 20 63 6c 6f 63 6b 0d 0a |e to the| clock..|
|00000360| 2a 20 61 6e 64 20 41 24 | 43 4b 52 20 66 6f 72 20 |* and A$|CKR for |
|00000370| 61 20 72 65 61 64 20 66 | 72 6f 6d 20 74 68 65 20 |a read f|rom the |
|00000380| 63 6c 6f 63 6b 2c 20 61 | 73 20 43 4e 78 78 2c 20 |clock, a|s CNxx, |
|00000390| 77 68 65 72 65 20 4e 20 | 69 73 20 79 6f 75 72 20 |where N |is your |
|000003a0| 73 6c 6f 74 20 23 2e 0d | 0a 2a 0d 0a 2a 20 54 68 |slot #..|.*..* Th|
|000003b0| 65 20 70 72 6f 67 72 61 | 6d 20 61 74 20 74 68 65 |e progra|m at the|
|000003c0| 20 62 6f 74 74 6f 6d 20 | 6f 66 20 74 68 65 20 61 | bottom |of the a|
|000003d0| 73 73 65 6d 62 6c 65 72 | 20 72 6f 75 74 69 6e 65 |ssembler| routine|
|000003e0| 73 20 69 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 20 |s is an |example |
|000003f0| 6f 66 20 61 0d 0a 2a 20 | 63 6c 6f 63 6b 20 64 61 |of a..* |clock da|
|00000400| 74 61 20 72 65 61 64 20 | 70 72 6f 67 72 61 6d 20 |ta read |program |
|00000410| 74 6f 20 75 73 65 20 69 | 66 20 79 6f 75 20 61 72 |to use i|f you ar|
|00000420| 65 20 67 6f 69 6e 67 20 | 74 6f 20 75 73 65 20 61 |e going |to use a|
|00000430| 20 4d 42 41 53 49 43 20 | 70 72 6f 67 72 61 6d 0d | MBASIC |program.|
|00000440| 0a 2a 20 74 6f 20 6f 62 | 74 61 69 6e 20 74 68 65 |.* to ob|tain the|
|00000450| 20 63 6c 6f 63 6b 20 64 | 61 74 61 20 66 72 6f 6d | clock d|ata from|
|00000460| 20 74 68 65 20 47 45 54 | 4c 4e 20 42 75 66 66 65 | the GET|LN Buffe|
|00000470| 72 20 61 72 65 61 20 6f | 66 20 74 68 65 20 41 70 |r area o|f the Ap|
|00000480| 70 6c 65 2e 20 20 49 74 | 0d 0a 2a 20 63 61 6e 20 |ple. It|..* can |
|00000490| 62 65 20 69 6d 70 6c 69 | 6d 65 6e 74 65 64 20 61 |be impli|mented a|
|000004a0| 73 20 61 20 73 75 62 72 | 6f 75 74 69 6e 65 20 69 |s a subr|outine i|
|000004b0| 6e 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 2e 0d |n your p|rogram..|
|000004c0| 0a 2a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.*.. | |
|000004d0| 20 20 20 20 3b 2a 2a 2a | 2a 20 45 71 75 61 74 65 | ;***|* Equate|
|000004e0| 73 20 2a 2a 2a 2a 0d 0a | 20 20 20 20 20 20 20 20 |s ****..| |
|000004f0| 20 20 20 20 20 20 20 20 | 3b 0d 0a 46 41 4c 53 45 | |;..FALSE|
|00000500| 09 45 51 55 09 30 30 48 | 09 3b 20 64 65 66 69 6e |.EQU.00H|.; defin|
|00000510| 65 20 74 72 75 65 20 61 | 6e 64 20 66 61 6c 73 65 |e true a|nd false|
|00000520| 20 66 6f 72 20 63 6f 6e | 64 69 74 69 6f 6e 61 6c | for con|ditional|
|00000530| 20 61 73 73 65 6d 62 6c | 79 0d 0a 54 52 55 45 09 | assembl|y..TRUE.|
|00000540| 45 51 55 09 4e 4f 54 20 | 46 41 4c 53 45 09 3b 20 |EQU.NOT |FALSE.; |
|00000550| 74 72 75 65 20 3d 20 46 | 46 46 46 48 0d 0a 42 41 |true = F|FFFH..BA|
|00000560| 53 49 43 09 45 51 55 09 | 46 41 4c 53 45 09 3b 20 |SIC.EQU.|FALSE.; |
|00000570| 73 65 74 20 74 6f 20 74 | 72 75 65 20 69 66 20 75 |set to t|rue if u|
|00000580| 73 69 6e 67 20 74 68 69 | 73 20 61 73 20 61 20 61 |sing thi|s as a a|
|00000590| 73 6d 20 73 75 62 72 6f | 75 74 69 6e 65 0d 0a 09 |sm subro|utine...|
|000005a0| 09 09 3b 20 63 61 6c 6c | 65 64 20 66 72 6f 6d 20 |..; call|ed from |
|000005b0| 61 20 4d 62 61 73 69 63 | 20 70 72 6f 67 72 61 6d |a Mbasic| program|
|000005c0| 2e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|000005d0| 20 20 20 3b 0d 0a 42 44 | 4f 53 09 45 51 55 09 30 | ;..BD|OS.EQU.0|
|000005e0| 35 48 09 3b 20 43 50 2f | 4d 20 42 64 6f 73 20 63 |5H.; CP/|M Bdos c|
|000005f0| 61 6c 6c 20 61 64 64 72 | 65 73 73 0d 0a 5a 24 43 |all addr|ess..Z$C|
|00000600| 50 55 09 45 51 55 09 30 | 46 33 44 45 48 09 3b 20 |PU.EQU.0|F3DEH.; |
|00000610| 41 64 64 72 65 73 73 20 | 6f 66 20 53 6f 66 74 63 |Address |of Softc|
|00000620| 61 72 64 20 66 6f 75 6e | 64 20 68 65 72 65 0d 0a |ard foun|d here..|
|00000630| 41 24 56 45 43 09 45 51 | 55 09 30 46 33 44 30 48 |A$VEC.EQ|U.0F3D0H|
|00000640| 09 3b 20 36 35 30 32 20 | 73 75 62 72 6f 75 74 69 |.; 6502 |subrouti|
|00000650| 6e 65 20 61 64 64 72 65 | 73 73 20 67 6f 65 73 20 |ne addre|ss goes |
|00000660| 68 65 72 65 0d 0a 41 24 | 41 43 43 09 45 51 55 09 |here..A$|ACC.EQU.|
|00000670| 30 46 30 34 35 48 09 3b | 20 36 35 30 32 20 61 63 |0F045H.;| 6502 ac|
|00000680| 63 75 6d 75 6c 61 74 6f | 72 20 70 61 73 73 20 61 |cumulato|r pass a|
|00000690| 72 65 61 20 66 6f 72 20 | 64 61 74 61 0d 0a 09 20 |rea for |data... |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|000006b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000006c0| 20 20 09 3b 0d 0a 41 24 | 43 4b 57 09 45 51 55 09 | .;..A$|CKW.EQU.|
|000006d0| 30 43 35 30 42 48 09 3b | 20 43 6c 6f 63 6b 20 64 |0C50BH.;| Clock d|
|000006e0| 65 70 65 6e 64 65 6e 74 | 20 63 61 6c 6c 20 61 64 |ependent| call ad|
|000006f0| 64 72 65 73 73 20 66 6f | 72 20 77 72 69 74 65 0d |dress fo|r write.|
|00000700| 0a 09 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000710| 20 20 3b 0d 0a 20 20 20 | 20 20 20 20 20 09 20 20 | ;.. | . |
|00000720| 20 20 20 20 20 20 3b 0d | 0a 41 24 43 4b 52 09 45 | ;.|.A$CKR.E|
|00000730| 51 55 09 30 43 35 30 38 | 48 20 09 3b 20 43 6c 6f |QU.0C508|H .; Clo|
|00000740| 63 6b 20 64 65 70 65 6e | 64 65 6e 74 20 63 61 6c |ck depen|dent cal|
|00000750| 6c 20 61 64 64 72 65 73 | 73 20 66 6f 72 20 72 65 |l addres|s for re|
|00000760| 61 64 20 0d 0a 09 20 20 | 20 20 20 20 20 20 20 20 |ad ... | |
|00000770| 20 20 20 20 20 20 3b 0d | 0a 5a 24 54 4d 42 09 45 | ;.|.Z$TMB.E|
|00000780| 51 55 09 30 46 32 30 31 | 48 09 3b 20 73 74 61 72 |QU.0F201|H.; star|
|00000790| 74 20 6f 66 20 74 68 65 | 20 47 45 54 4c 4e 20 42 |t of the| GETLN B|
|000007a0| 55 46 46 45 52 0d 0a 09 | 20 20 20 20 20 20 20 20 |UFFER...| |
|000007b0| 20 20 20 20 20 20 20 20 | 3b 0d 0a 20 20 20 20 20 | |;.. |
|000007c0| 20 20 20 09 20 20 20 20 | 20 20 20 20 3b 20 43 68 | . | ; Ch|
|000007d0| 61 72 61 63 74 65 72 20 | 73 74 72 69 6e 67 20 6c |aracter |string l|
|000007e0| 65 6e 67 74 68 20 66 72 | 6f 6d 20 54 68 75 6e 64 |ength fr|om Thund|
|000007f0| 65 72 63 6c 6f 63 6b 0d | 0a 5a 24 46 4d 4c 09 45 |erclock.|.Z$FML.E|
|00000800| 51 55 09 30 31 39 48 09 | 3b 20 32 35 20 63 68 61 |QU.019H.|; 25 cha|
|00000810| 72 61 63 74 65 72 73 20 | 74 6f 74 61 6c 20 6c 65 |racters |total le|
|00000820| 6e 67 74 68 0d 0a 20 09 | 20 20 20 20 20 20 20 20 |ngth.. .| |
|00000830| 20 20 20 20 20 20 20 20 | 3b 0d 0a 20 20 20 20 20 | |;.. |
|00000840| 20 20 20 20 09 20 20 20 | 20 20 20 20 20 3b 20 46 | . | ; F|
|00000850| 6f 72 6d 61 74 20 63 68 | 61 72 61 63 74 65 72 20 |ormat ch|aracter |
|00000860| 74 6f 20 77 72 69 74 65 | 20 74 6f 20 74 68 65 20 |to write| to the |
|00000870| 63 6c 6f 63 6b 0d 0a 5a | 24 46 4d 54 09 45 51 55 |clock..Z|$FMT.EQU|
|00000880| 09 27 3e 27 09 3b 20 41 | 50 2f 50 4d 20 66 6f 72 |.'>'.; A|P/PM for|
|00000890| 6d 61 74 2e 0d 0a 20 09 | 20 20 20 20 20 20 20 20 |mat... .| |
|000008a0| 20 20 20 20 20 20 20 20 | 3b 0d 0a 09 20 20 20 20 | |;... |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 0d 0a 20 | | ;.. |
|000008c0| 09 4f 52 47 09 30 31 30 | 30 48 09 3b 20 50 75 74 |.ORG.010|0H.; Put|
|000008d0| 20 74 68 69 73 20 77 68 | 65 72 65 20 79 6f 75 20 | this wh|ere you |
|000008e0| 77 61 6e 74 20 69 74 2c | 20 68 65 72 65 20 66 6f |want it,| here fo|
|000008f0| 72 20 54 50 41 0d 0a 20 | 20 20 20 20 20 20 09 4d |r TPA.. | .M|
|00000900| 56 49 09 41 2c 5a 24 46 | 4d 54 09 3b 20 67 65 74 |VI.A,Z$F|MT.; get|
|00000910| 20 74 68 65 20 66 6f 72 | 6d 61 74 20 63 68 61 72 | the for|mat char|
|00000920| 61 63 74 65 72 20 69 6e | 20 61 63 63 75 6d 75 6c |acter in| accumul|
|00000930| 61 74 6f 72 0d 0a 20 20 | 20 20 20 09 53 54 41 09 |ator.. | .STA.|
|00000940| 41 24 41 43 43 09 3b 20 | 70 61 73 73 20 69 74 20 |A$ACC.; |pass it |
|00000950| 74 6f 20 74 68 65 20 36 | 35 30 32 20 41 63 63 75 |to the 6|502 Accu|
|00000960| 6d 75 6c 61 74 6f 72 20 | 61 74 20 24 34 35 0d 0a |mulator |at $45..|
|00000970| 20 20 20 20 20 09 4c 58 | 49 09 48 2c 41 24 43 4b | .LX|I.H,A$CK|
|00000980| 57 09 3b 20 53 65 74 20 | 75 70 20 66 6f 72 20 63 |W.; Set |up for c|
|00000990| 6c 6f 63 6b 20 77 72 69 | 74 65 20 74 6f 20 73 65 |lock wri|te to se|
|000009a0| 74 20 66 6f 72 6d 61 74 | 0d 0a 20 20 20 20 20 09 |t format|.. .|
|000009b0| 53 48 4c 44 09 41 24 56 | 45 43 09 3b 20 54 65 6c |SHLD.A$V|EC.; Tel|
|000009c0| 6c 20 74 68 65 20 36 35 | 30 32 20 77 68 65 72 65 |l the 65|02 where|
|000009d0| 20 74 68 65 20 73 75 62 | 72 6f 75 74 69 6e 65 20 | the sub|routine |
|000009e0| 69 73 0d 0a 20 20 20 20 | 20 09 4c 48 4c 44 09 5a |is.. | .LHLD.Z|
|000009f0| 24 43 50 55 09 3b 20 67 | 65 74 20 74 68 65 20 53 |$CPU.; g|et the S|
|00000a00| 6f 66 74 63 61 72 64 20 | 61 64 64 72 65 73 73 0d |oftcard |address.|
|00000a10| 0a 20 20 20 20 20 20 09 | 4d 4f 56 09 4d 2c 41 09 |. .|MOV.M,A.|
|00000a20| 3b 20 63 61 6c 6c 20 74 | 68 65 20 36 35 30 32 20 |; call t|he 6502 |
|00000a30| 73 75 62 72 6f 75 74 69 | 6e 65 0d 0a 09 20 20 20 |subrouti|ne... |
|00000a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 20 36 | | ; 6|
|00000a50| 35 30 32 20 72 65 74 75 | 72 6e 73 20 68 65 72 65 |502 retu|rns here|
|00000a60| 20 61 66 74 65 72 20 73 | 65 74 74 69 6e 67 20 74 | after s|etting t|
|00000a70| 68 65 20 70 72 6f 70 65 | 72 20 66 6f 72 6d 61 74 |he prope|r format|
|00000a80| 20 0d 0a 09 09 09 3b 20 | 6f 6e 20 74 68 65 20 63 | .....; |on the c|
|00000a90| 6c 6f 63 6b 0d 0a 20 20 | 20 20 09 4c 58 49 09 48 |lock.. | .LXI.H|
|00000aa0| 2c 41 24 43 4b 52 09 3b | 20 53 65 74 20 75 70 20 |,A$CKR.;| Set up |
|00000ab0| 66 6f 72 20 63 6c 6f 63 | 6b 20 72 65 61 64 0d 0a |for cloc|k read..|
|00000ac0| 20 20 20 20 09 53 48 4c | 44 09 41 24 56 45 43 09 | .SHL|D.A$VEC.|
|00000ad0| 3b 20 54 65 6c 6c 20 74 | 68 65 20 36 35 30 32 20 |; Tell t|he 6502 |
|00000ae0| 77 68 65 72 65 20 74 68 | 65 20 73 75 62 72 6f 75 |where th|e subrou|
|00000af0| 74 69 6e 65 20 69 73 0d | 0a 20 20 20 20 09 4c 48 |tine is.|. .LH|
|00000b00| 4c 44 09 5a 24 43 50 55 | 09 3b 20 67 65 74 20 74 |LD.Z$CPU|.; get t|
|00000b10| 68 65 20 53 6f 66 74 63 | 61 72 64 20 72 65 74 75 |he Softc|ard retu|
|00000b20| 72 6e 20 61 64 64 72 65 | 73 73 0d 0a 20 20 20 20 |rn addre|ss.. |
|00000b30| 20 20 09 4d 4f 56 09 4d | 2c 41 09 3b 20 63 61 6c | .MOV.M|,A.; cal|
|00000b40| 6c 20 74 68 65 20 36 35 | 30 32 20 73 75 62 72 6f |l the 65|02 subro|
|00000b50| 75 74 69 6e 65 20 66 6f | 72 20 63 6c 6f 63 6b 20 |utine fo|r clock |
|00000b60| 72 65 61 64 0d 0a 09 20 | 20 20 20 20 20 20 20 20 |read... | |
|00000b70| 20 20 20 20 20 20 20 3b | 20 63 6f 6e 64 69 74 69 | ;| conditi|
|00000b80| 6f 6e 61 6c 20 61 73 73 | 65 6d 62 6c 79 20 64 65 |onal ass|embly de|
|00000b90| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 69 66 20 79 6f |pending |on if yo|
|00000ba0| 75 20 77 61 6e 74 20 74 | 6f 20 0d 0a 09 09 09 3b |u want t|o .....;|
|00000bb0| 20 61 6c 6c 6f 77 20 74 | 68 65 20 61 73 6d 20 73 | allow t|he asm s|
|00000bc0| 75 62 72 6f 75 74 69 6e | 65 0d 0a 20 20 20 20 20 |ubroutin|e.. |
|00000bd0| 20 20 20 09 20 20 20 20 | 20 20 20 20 3b 20 74 6f | . | ; to|
|00000be0| 20 70 72 69 6e 74 20 74 | 68 65 20 74 69 6d 65 20 | print t|he time |
|00000bf0| 73 74 72 69 6e 67 20 74 | 6f 20 74 68 65 20 63 6f |string t|o the co|
|00000c00| 6e 73 6f 6c 65 20 6f 72 | 20 75 73 65 20 61 20 0d |nsole or| use a .|
|00000c10| 0a 09 09 09 3b 20 4d 62 | 61 73 69 63 20 72 6f 75 |....; Mb|asic rou|
|00000c20| 74 69 6e 65 20 74 6f 20 | 73 74 72 69 70 0d 0a 20 |tine to |strip.. |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 09 | | .|
|00000c40| 3b 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 73 |; the ch|aracters|
|00000c50| 20 6f 75 74 20 6f 66 20 | 6d 65 6d 6f 72 79 20 76 | out of |memory v|
|00000c60| 69 61 20 70 65 65 6b 73 | 20 61 6e 64 20 73 74 72 |ia peeks| and str|
|00000c70| 69 6e 67 20 0d 0a 09 09 | 09 3b 20 63 6f 6e 63 61 |ing ....|.; conca|
|00000c80| 74 20 72 6f 75 74 69 6e | 65 73 2e 0d 0a 20 20 20 |t routin|es... |
|00000c90| 20 20 20 20 09 49 46 09 | 42 41 53 49 43 09 3b 20 | .IF.|BASIC.; |
|00000ca0| 69 66 20 79 6f 75 20 61 | 72 65 20 67 6f 69 6e 67 |if you a|re going|
|00000cb0| 20 74 6f 20 75 73 65 20 | 61 20 4d 62 61 73 69 63 | to use |a Mbasic|
|00000cc0| 20 72 6f 75 74 69 6e 65 | 20 73 65 74 0d 0a 20 20 | routine| set.. |
|00000cd0| 20 20 20 20 20 09 09 09 | 3b 20 74 68 65 20 42 41 | ...|; the BA|
|00000ce0| 53 49 43 20 65 71 75 61 | 74 65 20 74 6f 20 54 52 |SIC equa|te to TR|
|00000cf0| 55 45 2e 0d 0a 20 20 20 | 20 20 20 20 09 52 45 54 |UE... | .RET|
|00000d00| 09 09 3b 20 52 65 74 75 | 72 6e 20 74 6f 20 62 61 |..; Retu|rn to ba|
|00000d10| 73 69 63 20 63 61 6c 6c | 65 72 0d 0a 20 20 20 20 |sic call|er.. |
|00000d20| 20 20 20 09 45 4e 44 49 | 46 09 09 3b 20 42 61 73 | .ENDI|F..; Bas|
|00000d30| 69 63 20 69 73 20 62 65 | 69 6e 67 20 75 73 65 64 |ic is be|ing used|
|00000d40| 20 74 6f 20 6f 62 74 61 | 69 6e 20 63 68 61 72 61 | to obta|in chara|
|00000d50| 63 74 65 72 73 0d 0a 20 | 20 20 20 20 20 20 20 20 |cters.. | |
|00000d60| 20 20 20 20 20 20 20 09 | 3b 0d 0a 20 20 20 20 20 | .|;.. |
|00000d70| 20 20 20 49 46 20 4e 4f | 54 20 42 41 53 49 43 09 | IF NO|T BASIC.|
|00000d80| 3b 20 64 6f 6e 27 74 20 | 61 73 73 65 6d 62 6c 65 |; don't |assemble|
|00000d90| 20 69 66 20 6e 6f 74 20 | 6e 65 65 64 65 64 0d 0a | if not |needed..|
|00000da0| 20 20 20 20 20 20 20 20 | 4d 56 49 09 41 2c 27 24 | |MVI.A,'$|
|00000db0| 27 09 3b 20 70 72 65 70 | 61 72 65 20 74 6f 20 63 |'.; prep|are to c|
|00000dc0| 6f 6e 63 61 74 20 74 68 | 69 73 20 6f 6e 74 6f 20 |oncat th|is onto |
|00000dd0| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 73 |the end |of the s|
|00000de0| 74 72 69 6e 67 0d 0a 20 | 20 20 20 20 20 20 09 09 |tring.. | ..|
|00000df0| 09 3b 20 64 75 65 20 74 | 6f 20 42 64 6f 73 20 65 |.; due t|o Bdos e|
|00000e00| 78 70 65 63 74 69 6e 67 | 20 69 74 20 61 73 20 61 |xpecting| it as a|
|00000e10| 6e 20 65 6e 64 20 6f 66 | 20 73 74 72 69 6e 67 20 |n end of| string |
|00000e20| 6d 61 72 6b 65 72 2e 0d | 0a 20 20 20 20 20 20 20 |marker..|. |
|00000e30| 20 53 54 41 09 5a 24 54 | 4d 42 2b 5a 24 46 4d 4c | STA.Z$T|MB+Z$FML|
|00000e40| 2b 31 09 3b 20 63 6f 6e | 63 61 74 20 74 6f 20 74 |+1.; con|cat to t|
|00000e50| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 73 74 |he end o|f the st|
|00000e60| 72 69 6e 67 0d 0a 20 20 | 20 20 20 20 20 20 4d 56 |ring.. | MV|
|00000e70| 49 09 43 2c 30 39 48 09 | 3b 20 53 65 74 20 75 70 |I.C,09H.|; Set up|
|00000e80| 20 74 6f 20 63 61 6c 6c | 20 42 64 6f 73 20 73 74 | to call| Bdos st|
|00000e90| 72 69 6e 67 20 70 72 69 | 6e 74 69 6e 67 20 72 6f |ring pri|nting ro|
|00000ea0| 75 74 69 6e 65 0d 0a 20 | 20 20 20 20 09 4c 58 49 |utine.. | .LXI|
|00000eb0| 09 44 2c 5a 24 54 4d 42 | 09 3b 20 70 6f 69 6e 74 |.D,Z$TMB|.; point|
|00000ec0| 20 74 6f 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | to the |beginnin|
|00000ed0| 67 20 6f 66 20 74 68 65 | 20 47 45 54 4c 4e 20 62 |g of the| GETLN b|
|00000ee0| 75 66 66 65 72 0d 0a 20 | 20 20 20 20 20 20 09 09 |uffer.. | ..|
|00000ef0| 09 3b 20 62 65 67 69 6e | 20 74 68 65 20 72 65 61 |.; begin| the rea|
|00000f00| 64 20 61 74 20 74 68 69 | 73 20 70 6f 69 6e 74 2e |d at thi|s point.|
|00000f10| 0d 0a 20 20 20 20 09 43 | 41 4c 4c 09 42 44 4f 53 |.. .C|ALL.BDOS|
|00000f20| 09 3b 20 77 72 69 74 65 | 20 74 68 65 20 47 45 54 |.; write| the GET|
|00000f30| 4c 4e 20 62 75 66 66 65 | 72 20 74 6f 20 74 68 65 |LN buffe|r to the|
|00000f40| 20 63 6f 6e 73 6f 6c 65 | 20 64 65 76 69 63 65 20 | console| device |
|00000f50| 66 6f 72 0d 0a 20 20 20 | 20 20 20 20 09 09 09 3b |for.. | ...;|
|00000f60| 20 74 68 65 20 6c 65 6e | 67 74 68 20 6f 66 20 63 | the len|gth of c|
|00000f70| 68 61 72 61 63 74 65 72 | 73 20 6f 75 74 70 75 74 |haracter|s output|
|00000f80| 20 62 79 20 74 68 65 20 | 63 6c 6f 63 6b 2e 0d 0a | by the |clock...|
|00000f90| 20 20 20 20 20 20 20 09 | 52 45 54 09 09 3b 20 62 | .|RET..; b|
|00000fa0| 61 63 6b 20 74 6f 20 74 | 68 65 20 63 61 6c 6c 65 |ack to t|he calle|
|00000fb0| 72 0d 0a 20 20 20 20 20 | 20 20 09 45 4e 44 49 46 |r.. | .ENDIF|
|00000fc0| 09 09 3b 20 6e 6f 74 20 | 62 61 73 69 63 20 63 61 |..; not |basic ca|
|00000fd0| 6c 6c 65 72 0d 0a 20 20 | 20 20 20 20 20 09 45 4e |ller.. | .EN|
|00000fe0| 44 09 09 3b 20 6f 66 20 | 74 68 69 73 20 70 72 6f |D..; of |this pro|
|00000ff0| 67 72 61 6d 20 66 6f 72 | 20 74 68 65 20 54 68 75 |gram for| the Thu|
|00001000| 6e 64 65 72 63 6c 6f 63 | 6b 20 2b 20 66 6f 72 20 |ndercloc|k + for |
|00001010| 74 68 65 0d 0a 2a 0d 0a | 2a 20 4d 42 41 53 49 43 |the..*..|* MBASIC|
|00001020| 20 52 4f 55 54 49 4e 45 | 53 20 54 4f 20 52 45 41 | ROUTINE|S TO REA|
|00001030| 44 20 54 48 45 20 54 48 | 55 4e 44 45 52 43 4c 4f |D THE TH|UNDERCLO|
|00001040| 43 4b 20 44 41 54 45 20 | 54 49 4d 45 20 53 54 52 |CK DATE |TIME STR|
|00001050| 49 4e 47 20 46 52 4f 4d | 20 4d 45 4d 4f 52 59 0d |ING FROM| MEMORY.|
|00001060| 0a 2a 20 0d 0a 2a 09 31 | 30 09 46 4d 4c 20 3d 20 |.* ..*.1|0.FML = |
|00001070| 26 48 31 39 20 27 4c 65 | 6e 67 74 68 20 6f 66 20 |&H19 'Le|ngth of |
|00001080| 63 6c 6f 63 6b 20 63 68 | 61 72 61 63 74 65 72 20 |clock ch|aracter |
|00001090| 73 74 72 69 6e 67 0d 0a | 2a 09 32 30 09 44 47 24 |string..|*.20.DG$|
|000010a0| 20 3d 20 22 20 22 20 20 | 27 43 68 61 72 61 63 74 | = " " |'Charact|
|000010b0| 65 72 20 74 6f 20 63 6c | 65 61 72 20 74 68 65 20 |er to cl|ear the |
|000010c0| 74 69 6d 65 0d 0a 2a 09 | 33 30 09 46 4f 52 20 58 |time..*.|30.FOR X|
|000010d0| 20 3d 20 26 48 32 30 31 | 20 74 68 20 26 48 32 30 | = &H201| th &H20|
|000010e0| 31 2b 46 4d 4c 20 20 27 | 4c 6f 6f 70 20 74 6f 20 |1+FML '|Loop to |
|000010f0| 67 65 74 20 63 68 61 72 | 61 63 74 65 72 73 0d 0a |get char|acters..|
|00001100| 2a 09 34 30 09 44 47 24 | 20 3d 20 44 47 24 20 2b |*.40.DG$| = DG$ +|
|00001110| 20 43 48 52 24 28 50 45 | 45 4b 28 58 29 29 20 20 | CHR$(PE|EK(X)) |
|00001120| 27 4f 6e 65 20 63 68 61 | 72 61 74 65 72 20 61 74 |'One cha|rater at|
|00001130| 20 61 20 74 69 6d 65 0d | 0a 2a 09 35 30 09 4e 45 | a time.|.*.50.NE|
|00001140| 58 54 20 49 0d 0a 2a 09 | 36 30 09 27 20 4e 6f 77 |XT I..*.|60.' Now|
|00001150| 20 44 47 24 20 68 6f 6c | 64 73 20 74 68 65 20 74 | DG$ hol|ds the t|
|00001160| 69 6d 65 20 66 6f 72 6d | 20 74 68 65 20 54 68 75 |ime form| the Thu|
|00001170| 6e 64 65 72 63 6c 6f 63 | 6b 0d 0a 2a 0d 0a 2a 09 |ndercloc|k..*..*.|
|00001180| 4e 6f 77 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |Now you |can use |
|00001190| 74 68 65 20 4d 42 41 53 | 49 43 20 4d 49 44 24 20 |the MBAS|IC MID$ |
|000011a0| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 67 65 74 20 |function| to get |
|000011b0| 74 68 65 20 64 61 74 61 | 20 79 6f 75 0d 0a 2a 09 |the data| you..*.|
|000011c0| 77 61 6e 74 20 66 72 6f | 6d 20 74 68 65 20 54 68 |want fro|m the Th|
|000011d0| 75 6e 64 65 72 63 6c 6f | 63 6b 73 20 74 69 6d 65 |underclo|cks time|
|000011e0| 20 73 74 72 69 6e 67 2e | 0d 0a 1a 65 20 54 68 75 | string.|...e Thu|
|000011f0| 6e 64 65 72 63 6c 6f 63 | 6b 0d 0a 2a 0d 0a 2a 09 |ndercloc|k..*..*.|
+--------+-------------------------+-------------------------+--------+--------+