home *** CD-ROM | disk | FTP | other *** search
Unknown | 1990-08-13 | 4.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| Truevision Targa Graphic (image/tga)
| magic
| Supported |
100%
| file
| data
| default
| |
100%
| xdgMime
| image/x-tga
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 12 f4 20 3e 20 | 53 74 61 72 46 69 65 6c |..... > |StarFiel|
|00000010| 64 34 0d 00 14 28 f4 20 | 42 79 20 53 74 65 76 65 |d4...(. |By Steve|
|00000020| 20 53 69 6d 73 20 20 2d | 20 54 68 65 20 4c 69 67 | Sims -| The Lig|
|00000030| 68 74 20 57 61 72 72 69 | 6f 72 0d 00 1e 26 f4 20 |ht Warri|or...&. |
|00000040| 43 6f 64 65 64 20 6f 6e | 20 4d 6f 6e 64 61 79 2c |Coded on| Monday,|
|00000050| 20 31 36 74 68 20 41 70 | 72 69 6c 20 31 39 39 30 | 16th Ap|ril 1990|
|00000060| 0d 00 28 1e f4 20 4d 79 | 20 73 65 63 6f 6e 64 20 |..(.. My| second |
|00000070| 70 69 65 63 65 20 6f 66 | 20 63 6f 64 65 2e 0d 00 |piece of| code...|
|00000080| 32 1f f4 20 28 49 74 20 | 77 61 73 20 66 61 69 72 |2.. (It |was fair|
|00000090| 6c 79 20 65 61 73 79 20 | 74 6f 6f 2e 29 0d 00 3c |ly easy |too.)..<|
|000000a0| 05 f4 0d 00 46 43 f4 20 | 56 65 72 73 69 6f 6e 20 |....FC. |Version |
|000000b0| 31 2e 33 20 20 20 2d 20 | 20 77 69 74 68 20 73 65 |1.3 - | with se|
|000000c0| 6d 69 2d 72 61 6e 64 6f | 6d 20 6c 6f 6f 70 69 6e |mi-rando|m loopin|
|000000d0| 67 20 74 6f 20 72 65 6d | 6f 76 65 20 61 6c 69 67 |g to rem|ove alig|
|000000e0| 6e 6d 65 6e 74 0d 00 50 | 37 f4 20 20 20 20 20 20 |nment..P|7. |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 6c | | al|
|00000100| 73 6f 2c 20 73 6c 6f 77 | 65 64 20 64 6f 77 6e 20 |so, slow|ed down |
|00000110| 63 6f 6e 73 69 64 65 72 | 61 62 6c 79 0d 00 5a 05 |consider|ably..Z.|
|00000120| f4 0d 00 64 42 f4 20 54 | 68 69 73 20 72 6f 75 74 |...dB. T|his rout|
|00000130| 69 6e 65 20 77 69 6c 6c | 20 65 73 73 65 6e 74 69 |ine will| essenti|
|00000140| 61 6c 6c 79 20 66 6f 72 | 6d 20 74 68 65 20 73 74 |ally for|m the st|
|00000150| 61 72 66 69 65 6c 64 20 | 61 6e 64 20 6d 6f 76 65 |arfield |and move|
|00000160| 20 69 74 0d 00 6e 20 f4 | 20 48 65 69 67 68 74 20 | it..n .| Height |
|00000170| 6f 66 20 66 69 65 6c 64 | 3d 32 33 30 20 70 69 78 |of field|=230 pix|
|00000180| 65 6c 73 0d 00 78 21 f4 | 20 32 35 36 20 73 74 61 |els..x!.| 256 sta|
|00000190| 72 73 20 74 6f 20 62 65 | 20 75 73 65 64 20 69 6e |rs to be| used in|
|000001a0| 73 69 64 65 0d 00 82 14 | f4 20 34 20 6c 61 79 65 |side....|. 4 laye|
|000001b0| 72 73 20 6f 66 20 36 34 | 0d 00 8c 2b f4 20 54 68 |rs of 64|...+. Th|
|000001c0| 65 72 65 66 6f 72 65 20 | 34 20 76 65 6c 6f 63 69 |erefore |4 veloci|
|000001d0| 74 69 65 73 2c 20 61 6e | 64 20 34 20 63 6f 6c 6f |ties, an|d 4 colo|
|000001e0| 75 72 73 0d 00 96 37 f4 | 20 52 6f 75 74 69 6e 65 |urs...7.| Routine|
|000001f0| 20 65 76 65 6e 74 75 61 | 6c 6c 79 20 74 6f 20 62 | eventua|lly to b|
|00000200| 65 20 73 65 74 20 75 70 | 20 74 6f 20 63 61 6c 6c |e set up| to call|
|00000210| 20 6f 6e 20 76 73 79 6e | 63 2e 0d 00 a0 30 f4 20 | on vsyn|c....0. |
|00000220| 53 74 61 72 73 20 72 65 | 63 6f 72 64 65 64 20 61 |Stars re|corded a|
|00000230| 73 20 73 63 72 65 65 6e | 20 6d 65 6d 6f 72 79 20 |s screen| memory |
|00000240| 6c 6f 63 61 74 69 6f 6e | 73 2e 0d 00 aa 04 0d 00 |location|s.......|
|00000250| b4 0e f4 20 33 30 2f 30 | 34 2f 39 30 0d 00 be 20 |... 30/0|4/90... |
|00000260| f4 20 56 65 72 73 69 6f | 6e 20 31 2e 34 20 28 69 |. Versio|n 1.4 (i|
|00000270| 66 20 69 74 20 77 6f 72 | 6b 73 21 29 0d 00 c8 45 |f it wor|ks!)...E|
|00000280| f4 20 49 64 65 61 3a 20 | 20 4c 65 74 73 20 68 61 |. Idea: | Lets ha|
|00000290| 76 65 20 61 20 6c 61 75 | 67 68 20 61 6e 64 20 69 |ve a lau|gh and i|
|000002a0| 6e 63 72 65 61 73 65 20 | 74 68 65 20 6e 75 6d 62 |ncrease |the numb|
|000002b0| 65 72 20 6f 66 20 6c 61 | 79 65 72 73 20 74 6f 20 |er of la|yers to |
|000002c0| 38 0d 00 d2 2b f4 20 20 | 20 20 20 20 20 20 61 6e |8...+. | an|
|000002d0| 64 20 75 73 65 20 72 61 | 6e 64 6f 6d 20 63 6f 6c |d use ra|ndom col|
|000002e0| 6f 75 72 65 64 20 73 74 | 61 72 73 2e 0d 00 dc 19 |oured st|ars.....|
|000002f0| f4 20 28 49 27 6d 20 6d | 61 64 20 61 72 65 6e 27 |. (I'm m|ad aren'|
|00000300| 74 20 49 21 29 0d 00 e6 | 0c f4 20 54 2e 4c 2e 57 |t I!)...|.. T.L.W|
|00000310| 2e 0d 00 f0 04 0d 00 fa | 3e f4 20 43 6f 64 65 20 |........|>. Code |
|00000320| 63 75 72 72 65 6e 74 6c | 79 20 63 6f 6e 74 61 69 |currentl|y contai|
|00000330| 6e 73 20 61 72 69 74 68 | 6d 65 74 69 63 20 76 65 |ns arith|metic ve|
|00000340| 6c 6f 63 69 74 79 20 70 | 72 6f 67 72 65 73 73 69 |locity p|rogressi|
|00000350| 6f 6e 2e 0d 01 04 04 0d | 01 0e 1a ee 20 85 20 f6 |on......|.... . .|
|00000360| 3a f1 22 20 61 74 20 6c | 69 6e 65 20 22 3b 9e 3a |:." at l|ine ";.:|
|00000370| e0 0d 01 18 04 0d 01 22 | 0d 2a 73 68 61 64 6f 77 |......."|.*shadow|
|00000380| 20 31 0d 01 2c 04 0d 01 | 36 46 eb 20 31 35 20 20 | 1..,...|6F. 15 |
|00000390| 20 20 20 20 20 3a 20 f4 | 20 53 68 6f 75 6c 64 20 | : .| Should |
|000003a0| 62 65 20 65 61 73 69 6c | 79 20 61 64 6a 75 73 74 |be easil|y adjust|
|000003b0| 61 62 6c 65 20 74 6f 20 | 61 6e 79 20 32 35 36 20 |able to |any 256 |
|000003c0| 63 6f 6c 6f 75 72 20 6d | 6f 64 65 2e 0d 01 40 04 |colour m|ode...@.|
|000003d0| 0d 01 4a 14 de 20 73 74 | 61 72 63 6f 64 65 20 31 |..J.. st|arcode 1|
|000003e0| 32 30 30 30 0d 01 54 15 | e3 20 70 61 73 73 25 3d |2000..T.|. pass%=|
|000003f0| 30 20 b8 20 32 20 88 20 | 32 0d 01 5e 0f 50 25 3d |0 . 2 . |2..^.P%=|
|00000400| 73 74 61 72 63 6f 64 65 | 0d 01 68 0e 5b 4f 50 54 |starcode|..h.[OPT|
|00000410| 20 70 61 73 73 25 0d 01 | 72 09 2e 69 6e 69 74 0d | pass%..|r..init.|
|00000420| 01 7c 17 41 44 52 20 20 | 20 20 20 52 34 2c 63 6f |.|.ADR | R4,co|
|00000430| 6c 62 6c 6f 63 6b 0d 01 | 86 18 41 44 52 20 20 20 |lblock..|..ADR |
|00000440| 20 20 52 35 2c 73 74 61 | 72 62 6c 6f 63 6b 0d 01 | R5,sta|rblock..|
|00000450| 90 18 4c 44 52 20 20 20 | 20 20 52 36 2c 73 63 72 |..LDR | R6,scr|
|00000460| 65 65 6e 6d 69 6e 0d 01 | 9a 18 4c 44 52 20 20 20 |eenmin..|..LDR |
|00000470| 20 20 52 37 2c 73 63 72 | 65 65 6e 6d 61 78 0d 01 | R7,scr|eenmax..|
|00000480| a4 36 4d 4f 56 20 20 20 | 20 20 52 38 2c 23 31 20 |.6MOV | R8,#1 |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004a0| 20 20 20 20 20 3b 20 73 | 70 65 65 64 20 6f 66 20 | ; s|peed of |
|000004b0| 73 74 61 72 0d 01 ae 3d | 4d 4f 56 20 20 20 20 20 |star...=|MOV |
|000004c0| 52 39 2c 23 30 20 20 20 | 20 20 20 20 20 20 20 20 |R9,#0 | |
|000004d0| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 63 6f 6c | | ; col|
|000004e0| 6f 75 72 20 62 6c 6f 63 | 6b 20 63 6f 75 6e 74 65 |our bloc|k counte|
|000004f0| 72 0d 01 b8 45 4d 4f 56 | 20 20 20 20 20 52 31 30 |r...EMOV| R10|
|00000500| 2c 23 30 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,#0 | |
|00000510| 20 20 20 20 20 20 20 20 | 3b 20 73 74 61 72 62 6c | |; starbl|
|00000520| 6f 63 6b 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |ock refe|rence po|
|00000530| 73 69 74 69 6f 6e 0d 01 | c2 4d 4d 4f 56 20 20 20 |sition..|.MMOV |
|00000540| 20 20 52 31 31 2c 23 30 | 20 20 20 20 20 20 20 20 | R11,#0| |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 20 61 | | ; a|
|00000560| 20 7a 65 72 6f 20 2d 20 | 75 73 65 64 20 66 6f 72 | zero - |used for|
|00000570| 20 62 6c 61 6e 6b 69 6e | 67 20 69 66 20 6e 65 65 | blankin|g if nee|
|00000580| 64 65 64 0d 01 cc 04 0d | 01 d6 0d 2e 73 70 65 65 |ded.....|....spee|
|00000590| 64 5f 75 70 0d 01 e0 33 | 4c 44 52 42 20 20 20 20 |d_up...3|LDRB |
|000005a0| 52 30 2c 5b 52 34 2c 52 | 39 5d 20 20 20 20 20 20 |R0,[R4,R|9] |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 72 65 61 | | ; rea|
|000005c0| 64 20 63 6f 6c 6f 72 0d | 01 ea 45 41 44 44 20 20 |d color.|..EADD |
|000005d0| 20 20 20 52 39 2c 52 39 | 2c 23 31 20 20 20 20 20 | R9,R9|,#1 |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 20 | | ; |
|000005f0| 69 6e 63 72 65 6d 65 6e | 74 20 63 6f 6c 6f 72 20 |incremen|t color |
|00000600| 63 6f 75 6e 74 65 72 20 | 62 79 20 31 0d 01 f4 43 |counter |by 1...C|
|00000610| 4d 4f 56 20 20 20 20 20 | 52 33 2c 23 30 20 20 20 |MOV |R3,#0 |
|00000620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000630| 20 20 20 3b 20 7a 65 72 | 6f 20 63 6f 75 6e 74 65 | ; zer|o counte|
|00000640| 72 20 20 20 28 30 2d 33 | 31 20 6c 6f 6f 70 29 0d |r (0-3|1 loop).|
|00000650| 01 fe 04 0d 02 08 10 2e | 75 70 64 61 74 65 5f 73 |........|update_s|
|00000660| 74 61 72 0d 02 12 43 4c | 44 52 20 20 20 20 20 52 |tar...CL|DR R|
|00000670| 31 2c 5b 52 35 2c 52 31 | 30 5d 20 20 20 20 20 20 |1,[R5,R1|0] |
|00000680| 20 20 20 20 20 20 20 20 | 20 20 3b 20 72 65 61 64 | | ; read|
|00000690| 20 73 74 61 72 73 20 73 | 63 72 65 65 6e 20 6c 6f | stars s|creen lo|
|000006a0| 63 61 74 69 6f 6e 0d 02 | 1c 45 4c 44 52 42 20 20 |cation..|.ELDRB |
|000006b0| 20 20 52 32 2c 5b 52 31 | 5d 20 20 20 20 20 20 20 | R2,[R1|] |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 20 72 | | ; r|
|000006d0| 65 61 64 20 73 63 72 65 | 65 6e 20 61 74 20 74 68 |ead scre|en at th|
|000006e0| 61 74 20 6c 6f 63 61 74 | 69 6f 6e 0d 02 26 3a 43 |at locat|ion..&:C|
|000006f0| 4d 50 20 20 20 20 20 52 | 32 2c 52 30 20 20 20 20 |MP R|2,R0 |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000710| 20 20 3b 20 63 68 65 63 | 6b 20 63 6f 6c 6f 75 72 | ; chec|k colour|
|00000720| 20 72 65 61 64 0d 02 30 | 4c 53 54 52 45 51 42 20 | read..0|LSTREQB |
|00000730| 20 52 31 31 2c 5b 52 31 | 5d 20 20 20 20 20 20 20 | R11,[R1|] |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 69 66 | | ; if|
|00000750| 20 74 68 65 20 73 74 61 | 72 73 20 73 70 65 65 64 | the sta|rs speed|
|00000760| 20 63 6f 6c 6f 72 2c 20 | 62 6c 61 63 6b 20 69 74 | color, |black it|
|00000770| 2c 0d 02 3a 4b 53 55 42 | 20 20 20 20 20 52 31 2c |,..:KSUB| R1,|
|00000780| 52 31 2c 52 38 20 20 20 | 20 20 20 20 20 20 20 20 |R1,R8 | |
|00000790| 20 20 20 20 20 20 20 20 | 3b 20 64 65 63 72 65 6d | |; decrem|
|000007a0| 65 6e 74 20 73 63 72 65 | 65 6e 20 6c 6f 63 61 74 |ent scre|en locat|
|000007b0| 69 6f 6e 20 62 79 20 73 | 70 65 65 64 0d 02 44 42 |ion by s|peed..DB|
|000007c0| 43 4d 50 20 20 20 20 20 | 52 31 2c 52 36 20 20 20 |CMP |R1,R6 |
|000007d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007e0| 20 20 20 3b 20 63 6f 6d | 70 61 72 65 20 77 69 74 | ; com|pare wit|
|000007f0| 68 20 6d 69 6e 20 6c 6f | 63 61 74 69 6f 6e 0d 02 |h min lo|cation..|
|00000800| 4e 43 42 4c 54 20 20 20 | 20 20 6c 6f 6f 70 69 74 |NCBLT | loopit|
|00000810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000820| 20 20 20 20 20 3b 20 6c | 6f 6f 70 73 20 72 6f 75 | ; l|oops rou|
|00000830| 6e 64 20 2b 20 61 6e 20 | 65 78 74 72 61 20 62 69 |nd + an |extra bi|
|00000840| 74 0d 02 58 3f 2e 73 61 | 76 65 62 61 63 6b 20 20 |t..X?.sa|veback |
|00000850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000860| 20 20 20 20 20 20 20 20 | 3b 20 72 65 66 65 72 65 | |; refere|
|00000870| 6e 63 65 20 74 6f 20 72 | 65 74 75 72 6e 20 74 6f |nce to r|eturn to|
|00000880| 0d 02 62 48 53 54 52 20 | 20 20 20 20 52 31 2c 5b |..bHSTR | R1,[|
|00000890| 52 35 2c 52 31 30 5d 20 | 20 20 20 20 20 20 20 20 |R5,R10] | |
|000008a0| 20 20 20 20 20 20 20 3b | 20 73 61 76 65 20 6c 6f | ;| save lo|
|000008b0| 63 61 74 69 6f 6e 20 62 | 61 63 6b 20 74 6f 20 73 |cation b|ack to s|
|000008c0| 74 61 72 62 6c 6f 63 6b | 0d 02 6c 34 4c 44 52 42 |tarblock|..l4LDRB|
|000008d0| 20 20 20 20 52 32 2c 5b | 52 31 5d 20 20 20 20 20 | R2,[|R1] |
|000008e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|000008f0| 20 72 65 61 64 20 73 63 | 72 65 65 6e 0d 02 76 38 | read sc|reen..v8|
|00000900| 43 4d 50 20 20 20 20 20 | 52 32 2c 23 30 20 20 20 |CMP |R2,#0 |
|00000910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000920| 20 20 20 3b 20 63 68 65 | 63 6b 20 66 6f 72 20 62 | ; che|ck for b|
|00000930| 6c 61 63 6b 0d 02 80 48 | 53 54 52 45 51 42 20 20 |lack...H|STREQB |
|00000940| 52 30 2c 5b 52 31 5d 20 | 20 20 20 20 20 20 20 20 |R0,[R1] | |
|00000950| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 73 61 76 | | ; sav|
|00000960| 65 20 73 70 65 65 64 20 | 63 6f 6c 6f 72 20 62 61 |e speed |color ba|
|00000970| 63 6b 20 74 6f 20 73 63 | 72 65 65 6e 0d 02 8a 45 |ck to sc|reen...E|
|00000980| 41 44 44 20 20 20 20 20 | 52 31 30 2c 52 31 30 2c |ADD |R10,R10,|
|00000990| 23 34 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |#4 | |
|000009a0| 20 20 20 3b 20 69 6e 63 | 72 65 6d 65 6e 74 20 72 | ; inc|rement r|
|000009b0| 65 66 65 72 65 6e 63 65 | 20 70 6f 73 69 74 69 6f |eference| positio|
|000009c0| 6e 0d 02 94 44 41 44 44 | 20 20 20 20 20 52 33 2c |n...DADD| R3,|
|000009d0| 52 33 2c 23 31 20 20 20 | 20 20 20 20 20 20 20 20 |R3,#1 | |
|000009e0| 20 20 20 20 20 20 20 20 | 3b 20 69 6e 63 72 65 6d | |; increm|
|000009f0| 65 6e 74 20 6c 6f 6f 70 | 20 63 6f 75 6e 74 65 72 |ent loop| counter|
|00000a00| 20 62 79 20 31 0d 02 9e | 47 43 4d 50 20 20 20 20 | by 1...|GCMP |
|00000a10| 20 52 33 2c 23 31 36 20 | 20 20 20 20 20 20 20 20 | R3,#16 | |
|00000a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 63 68 | | ; ch|
|00000a30| 65 63 6b 20 69 66 20 67 | 6f 6e 65 20 74 68 72 6f |eck if g|one thro|
|00000a40| 75 67 68 20 33 32 20 74 | 69 6d 65 73 0d 02 a8 47 |ugh 32 t|imes...G|
|00000a50| 42 4c 54 20 20 20 20 20 | 75 70 64 61 74 65 5f 73 |BLT |update_s|
|00000a60| 74 61 72 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |tar | |
|00000a70| 20 20 20 3b 20 69 66 20 | 6c 65 73 73 20 74 68 61 | ; if |less tha|
|00000a80| 6e 2c 20 75 70 64 61 74 | 65 20 6e 65 78 74 20 73 |n, updat|e next s|
|00000a90| 74 61 72 0d 02 b2 45 43 | 4d 50 20 20 20 20 20 52 |tar...EC|MP R|
|00000aa0| 31 30 2c 23 31 30 32 34 | 20 20 20 20 20 20 20 20 |10,#1024| |
|00000ab0| 20 20 20 20 20 20 20 20 | 20 20 3b 20 69 66 20 72 | | ; if r|
|00000ac0| 65 66 65 72 65 6e 63 65 | 20 70 6f 73 69 74 69 6f |eference| positio|
|00000ad0| 6e 20 3d 20 31 30 32 34 | 0d 02 bc 49 ec 51 20 20 |n = 1024|...I.Q |
|00000ae0| 20 50 43 2c 52 31 34 20 | 20 20 20 20 20 20 20 20 | PC,R14 | |
|00000af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 74 68 | | ; th|
|00000b00| 65 6e 20 72 65 74 75 72 | 6e 20 2d 20 6f 72 20 67 |en retur|n - or g|
|00000b10| 6f 20 6f 6e 20 74 6f 20 | 6e 65 78 74 20 63 6f 64 |o on to |next cod|
|00000b20| 65 0d 02 c6 4a 41 44 44 | 20 20 20 20 20 52 38 2c |e...JADD| R8,|
|00000b30| 52 38 2c 23 31 20 20 20 | 20 20 20 20 20 20 20 20 |R8,#1 | |
|00000b40| 20 20 20 20 20 20 20 20 | 3b 20 69 6e 63 72 65 6d | |; increm|
|00000b50| 65 6e 74 20 73 70 65 65 | 64 20 62 79 20 31 20 2d |ent spee|d by 1 -|
|00000b60| 20 61 72 69 74 68 6d 65 | 74 69 63 0d 02 d0 3b 42 | arithme|tic...;B|
|00000b70| 20 20 20 20 20 20 20 73 | 70 65 65 64 5f 75 70 20 | s|peed_up |
|00000b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b90| 20 20 3b 20 67 6f 20 62 | 61 63 6b 20 74 6f 20 73 | ; go b|ack to s|
|00000ba0| 70 65 65 64 75 70 0d 02 | da 04 0d 02 e4 0b 2e 6c |peedup..|.......l|
|00000bb0| 6f 6f 70 69 74 0d 02 ee | 4b 4d 4f 56 20 20 20 20 |oopit...|KMOV |
|00000bc0| 20 52 31 2c 52 37 20 20 | 20 20 20 20 20 20 20 20 | R1,R7 | |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 69 66 | | ; if|
|00000be0| 20 6c 65 73 73 20 74 68 | 61 6e 2c 20 74 68 65 6e | less th|an, then|
|00000bf0| 20 73 65 74 20 74 6f 20 | 6d 61 78 20 6c 6f 63 2e | set to |max loc.|
|00000c00| 0d 02 f8 3b 4d 4f 56 20 | 20 20 20 20 52 32 2c 52 |...;MOV | R2,R|
|00000c10| 33 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |3 | |
|00000c20| 20 20 20 20 20 20 20 3b | 20 66 69 6e 64 20 6c 6f | ;| find lo|
|00000c30| 6f 70 20 70 6f 73 69 74 | 69 6f 6e 0d 03 02 39 80 |op posit|ion...9.|
|00000c40| 20 20 20 20 20 52 32 2c | 52 32 2c 23 33 20 20 20 | R2,|R2,#3 |
|00000c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c60| 3b 20 74 61 6b 65 20 62 | 6f 74 74 6f 6d 20 33 20 |; take b|ottom 3 |
|00000c70| 62 69 74 73 0d 03 0c 44 | 53 55 42 20 20 20 20 20 |bits...D|SUB |
|00000c80| 52 31 2c 52 31 2c 52 32 | 20 20 20 20 20 20 20 20 |R1,R1,R2| |
|00000c90| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 73 75 62 | | ; sub|
|00000ca0| 74 72 61 63 74 20 74 68 | 61 74 20 66 72 6f 6d 20 |tract th|at from |
|00000cb0| 6c 6f 63 61 74 69 6f 6e | 0d 03 16 3c 42 20 20 20 |location|...<B |
|00000cc0| 20 20 20 20 73 61 76 65 | 62 61 63 6b 20 20 20 20 | save|back |
|00000cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|00000ce0| 20 67 6f 20 62 61 63 6b | 20 74 6f 20 73 61 76 65 | go back| to save|
|00000cf0| 62 61 63 6b 0d 03 20 04 | 0d 03 2a 0d 2e 63 6f 6c |back.. .|..*..col|
|00000d00| 62 6c 6f 63 6b 0d 03 34 | 0d 45 51 55 44 20 20 20 |block..4|.EQUD |
|00000d10| 20 30 0d 03 3e 0d 45 51 | 55 44 20 20 20 20 30 0d | 0..>.EQ|UD 0.|
|00000d20| 03 48 0d 45 51 55 44 20 | 20 20 20 30 0d 03 52 0d |.H.EQUD | 0..R.|
|00000d30| 45 51 55 44 20 20 20 20 | 30 0d 03 5c 04 0d 03 66 |EQUD |0..\...f|
|00000d40| 0e 2e 73 63 72 65 65 6e | 6d 69 6e 0d 03 70 0d 45 |..screen|min..p.E|
|00000d50| 51 55 44 20 20 20 20 30 | 0d 03 7a 04 0d 03 84 0e |QUD 0|..z.....|
|00000d60| 2e 73 63 72 65 65 6e 6d | 61 78 0d 03 8e 0d 45 51 |.screenm|ax....EQ|
|00000d70| 55 44 20 20 20 20 30 0d | 03 98 04 0d 03 a2 0e 2e |UD 0.|........|
|00000d80| 73 74 61 72 62 6c 6f 63 | 6b 0d 03 ac 19 5d 3a 50 |starbloc|k....]:P|
|00000d90| 25 2b 3d 31 30 32 34 3a | 5b 4f 50 54 20 70 61 73 |%+=1024:|[OPT pas|
|00000da0| 73 25 0d 03 b6 04 0d 03 | c0 05 5d 0d 03 ca 05 ed |s%......|..].....|
|00000db0| 0d 03 d4 04 0d 03 de 48 | f4 20 54 68 61 74 73 20 |.......H|. Thats |
|00000dc0| 61 6c 6c 20 74 68 65 20 | 63 6f 64 65 2e 20 20 4e |all the |code. N|
|00000dd0| 6f 77 20 61 6c 6c 20 49 | 20 68 61 76 65 20 74 6f |ow all I| have to|
|00000de0| 20 64 6f 20 69 73 20 69 | 6e 76 65 6e 74 20 74 68 | do is i|nvent th|
|00000df0| 65 20 67 65 6e 65 72 61 | 74 69 6f 6e 0d 03 e8 33 |e genera|tion...3|
|00000e00| f4 20 72 6f 75 74 69 6e | 65 20 74 6f 20 6d 61 6b |. routin|e to mak|
|00000e10| 65 20 74 68 65 20 73 74 | 61 72 73 20 69 6e 20 74 |e the st|ars in t|
|00000e20| 68 65 20 66 69 72 73 74 | 20 70 6c 61 63 65 2e 0d |he first| place..|
|00000e30| 03 f2 04 0d 03 fc 37 73 | 74 61 72 62 61 73 65 25 |......7s|tarbase%|
|00000e40| 3d 26 32 30 30 30 30 30 | 30 2d 28 32 35 36 2a 33 |=&200000|0-(256*3|
|00000e50| 32 30 2a 32 29 20 20 20 | 20 3a 20 f4 20 30 20 70 |20*2) | : . 0 p|
|00000e60| 69 78 65 6c 73 20 64 6f | 77 6e 0d 04 06 35 73 74 |ixels do|wn...5st|
|00000e70| 61 72 62 6f 74 74 6f 6d | 25 3d 26 32 30 30 30 30 |arbottom|%=&20000|
|00000e80| 30 30 2d 34 20 20 20 20 | 20 20 20 20 20 20 20 20 |00-4 | |
|00000e90| 3a 20 f4 20 30 20 70 69 | 78 65 6c 73 20 75 70 0d |: . 0 pi|xels up.|
|00000ea0| 04 10 43 61 72 65 61 25 | 3d 32 35 36 2a 33 32 30 |..Carea%|=256*320|
|00000eb0| 2a 32 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |*2 | |
|00000ec0| 20 20 20 20 20 3a 20 f4 | 20 61 72 65 61 20 6f 66 | : .| area of|
|00000ed0| 20 70 69 78 65 6c 73 20 | 66 6f 72 20 73 74 61 72 | pixels |for star|
|00000ee0| 73 2e 0d 04 1a 04 0d 04 | 24 0d 73 65 65 64 3d b3 |s.......|$.seed=.|
|00000ef0| 28 91 29 0d 04 2e 04 0d | 04 38 18 e3 20 6c 6f 6f |(.).....|.8.. loo|
|00000f00| 70 25 3d 30 20 b8 20 31 | 30 32 30 20 88 20 34 0d |p%=0 . 1|020 . 4.|
|00000f10| 04 42 2a 20 20 73 74 61 | 72 62 6c 6f 63 6b 21 6c |.B* sta|rblock!l|
|00000f20| 6f 6f 70 25 3d 28 b3 28 | 61 72 65 61 25 29 2b 73 |oop%=(.(|area%)+s|
|00000f30| 74 61 72 62 61 73 65 25 | 29 0d 04 4c 05 ed 0d 04 |tarbase%|)..L....|
|00000f40| 56 04 0d 04 60 18 21 73 | 63 72 65 65 6e 6d 69 6e |V...`.!s|creenmin|
|00000f50| 3d 73 74 61 72 62 61 73 | 65 25 0d 04 6a 1a 21 73 |=starbas|e%..j.!s|
|00000f60| 63 72 65 65 6e 6d 61 78 | 3d 73 74 61 72 62 6f 74 |creenmax|=starbot|
|00000f70| 74 6f 6d 25 0d 04 74 04 | 0d 04 7e 28 f4 20 57 65 |tom%..t.|..~(. We|
|00000f80| 6c 6c 2c 20 74 68 61 74 | 20 73 68 6f 75 6c 64 20 |ll, that| should |
|00000f90| 73 65 74 20 75 70 20 74 | 68 65 20 66 69 65 6c 64 |set up t|he field|
|00000fa0| 0d 04 88 2e f4 20 53 6f | 20 6e 6f 77 20 49 20 68 |..... So| now I h|
|00000fb0| 61 76 65 20 74 6f 20 73 | 65 74 20 75 70 20 74 68 |ave to s|et up th|
|00000fc0| 65 20 63 6f 6c 6f 72 20 | 62 6c 6f 63 6b 21 0d 04 |e color |block!..|
|00000fd0| 92 04 0d 04 9c 34 f4 20 | 43 6f 6c 6f 72 73 20 74 |.....4. |Colors t|
|00000fe0| 6f 20 75 73 65 20 3a 20 | 20 20 30 2d 33 2c 20 34 |o use : | 0-3, 4|
|00000ff0| 34 2d 34 37 2c 20 32 30 | 38 2d 32 31 31 2c 20 32 |4-47, 20|8-211, 2|
|00001000| 35 32 2d 32 35 35 0d 04 | a6 04 0d 04 b0 15 e3 20 |52-255..|....... |
|00001010| 63 6f 6c 5f 6c 6f 6f 70 | 3d 30 20 b8 20 31 35 0d |col_loop|=0 . 15.|
|00001020| 04 ba 20 20 20 63 6f 6c | 62 6c 6f 63 6b 3f 63 6f |.. col|block?co|
|00001030| 6c 5f 6c 6f 6f 70 3d b3 | 28 32 35 30 2b 35 29 0d |l_loop=.|(250+5).|
|00001040| 04 c4 05 ed 0d 04 ce 04 | 0d 04 d8 39 f4 20 4e 6f |........|...9. No|
|00001050| 77 20 74 68 61 74 20 74 | 68 61 74 20 68 61 73 20 |w that t|hat has |
|00001060| 62 65 65 6e 20 64 6f 6e | 65 2c 20 6c 65 74 73 20 |been don|e, lets |
|00001070| 74 65 73 74 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |test the| routine|
|00001080| 21 0d 04 e2 29 f4 20 46 | 69 72 73 74 2c 20 74 68 |!...). F|irst, th|
|00001090| 65 20 66 69 65 6c 64 20 | 6d 75 73 74 20 62 65 20 |e field |must be |
|000010a0| 64 69 73 70 6c 61 79 65 | 64 2c 0d 04 ec 0a d6 20 |displaye|d,..... |
|000010b0| 69 6e 69 74 0d 04 f6 04 | 0d 05 00 05 87 0d 05 0a |init....|........|
|000010c0| 04 0d 05 14 39 f4 20 54 | 68 65 6e 20 69 74 20 63 |....9. T|hen it c|
|000010d0| 61 6e 20 62 65 20 63 6f | 6e 74 69 6e 75 61 6c 6c |an be co|ntinuall|
|000010e0| 79 20 63 61 6c 6c 65 64 | 2c 20 75 70 6f 6e 20 65 |y called|, upon e|
|000010f0| 76 65 72 79 20 76 73 79 | 6e 63 0d 05 1e 05 f5 0d |very vsy|nc......|
|00001100| 05 28 08 20 20 c8 96 0d | 05 32 0c 20 20 d6 20 69 |.(. ...|.2. . i|
|00001110| 6e 69 74 0d 05 3c 07 fd | 20 a3 0d ff |nit..<..| ... |
+--------+-------------------------+-------------------------+--------+--------+