Home » Archimedes archive » Acorn User » AU 1996-05.adf » Regulars » StarInfo/Vibe/!Chinese/CHIN
StarInfo/Vibe/!Chinese/CHIN
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1996-05.adf » Regulars |
Filename: | StarInfo/Vibe/!Chinese/CHIN |
Read OK: | ✔ |
File size: | 04F3 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM > CHIN 20 30MODE18:OFF 40DIM SPR &20000,ROT 32 50SPR!0=&1FFFF:SPR!4=0:SPR!8=16:SPR!12=16 60 70RECTANGLEFILL0,0,1280,1024 80SYS"OS_SpriteOp",256+10,SPR,"<Obey$Dir>.CHINESE" 90SYS"OS_SpriteOp",256+34,SPR,"CHINESE",100,0 100COLOUR0:COLOUR129 110PRINT'"When the pointer is" 120PRINT"at the top of the" 130PRINT"screen, there are" 140PRINT"12 men."' 150PRINT"When the pointer" 160PRINT"reaches the" 170PRINT"bottom, there " 180PRINT"are 13."' 190PRINT"Where does" 200PRINT"the 13th" 210PRINT"come from?" 220SYS"OS_SpriteOp",256+16,SPR,"GLOBE",0,216,50,1088,922 230SYS"OS_SpriteOp",256+29,SPR,"GLOBE" 240SYS"OS_SpriteOp",256+61,SPR,"GLOBE" 250GCOL0:RECTANGLE FILL 0,0,872 260GCOL1:CIRCLEFILL436,436,436 270SYS"OS_SpriteOp",256+61,SPR,0 280*POINTER 290MOUSERECTANGLE 1200,0,0,1024:MOUSE TO 1200,1023:OFF 300REPEAT 310OB%=B%:MOUSE A%,B%,C%:B%=30-B%/34.1 320IF B%<>OB% PROCROT(SPR,"GLOBE",652,488,436,436,B%) 330UNTILA%=30 340END 350 360DEFPROCROT(SPR,N$,X%,Y%,SX%,SY%,A%) 370LOCAL XR%,YR% 380XR%=-SX%*COSRADA%+SY%*SINRADA%:YR%=SY%*COSRADA%+SX%*SINRADA% 390ROT!00=(XR%+X%)*256:ROT!04=(YR%+Y%)*256 400XR%=SX%*COSRADA%+SY%*SINRADA%:YR%=SY%*COSRADA%-SX%*SINRADA% 410ROT!08=(XR%+X%)*256:ROT!12=(YR%+Y%)*256 420XR%=SX%*COSRADA%-SY%*SINRADA%:YR%=-SY%*COSRADA%-SX%*SINRADA% 430ROT!16=(XR%+X%)*256:ROT!20=(YR%+Y%)*256 440XR%=-SX%*COSRADA%-SY%*SINRADA%:YR%=-SY%*COSRADA%+SX%*SINRADA% 450ROT!24=(XR%+X%)*256:ROT!28=(YR%+Y%)*256 460SYS"OS_SpriteOp",256+56,SPR,N$,1,,8,ROT 470ENDPROC
� > CHIN �18:� (� SPR &20000,ROT 32 2+SPR!0=&1FFFF:SPR!4=0:SPR!8=16:SPR!12=16 < FȓȐ0,0,1280,1024 P3ș"OS_SpriteOp",256+10,SPR,"<Obey$Dir>.CHINESE" Z.ș"OS_SpriteOp",256+34,SPR,"CHINESE",100,0 d�0:�129 n�'"When the pointer is" x�"at the top of the" ��"screen, there are" ��"12 men."' ��"When the pointer" ��"reaches the" ��"bottom, there " ��"are 13."' ��"Where does" ��"the 13th" ��"come from?" �8ș"OS_SpriteOp",256+16,SPR,"GLOBE",0,216,50,1088,922 �&ș"OS_SpriteOp",256+29,SPR,"GLOBE" �&ș"OS_SpriteOp",256+61,SPR,"GLOBE" ��0:ȓ Ȑ 0,0,872 �1:ȏȐ436,436,436 ș"OS_SpriteOp",256+61,SPR,0 *POINTER "'ȗȓ 1200,0,0,1024:ȗ � 1200,1023:� ,� 6$OB%=B%:ȗ A%,B%,C%:B%=30-B%/34.1 @2� B%<>OB% �ROT(SPR,"GLOBE",652,488,436,436,B%) J �A%=30 T� ^ h"��ROT(SPR,N$,X%,Y%,SX%,SY%,A%) r � XR%,YR% |0XR%=-SX%*��A%+SY%*��A%:YR%=SY%*��A%+SX%*��A% �+ROT!00=(XR%+X%)*256:ROT!04=(YR%+Y%)*256 �/XR%=SX%*��A%+SY%*��A%:YR%=SY%*��A%-SX%*��A% �+ROT!08=(XR%+X%)*256:ROT!12=(YR%+Y%)*256 �0XR%=SX%*��A%-SY%*��A%:YR%=-SY%*��A%-SX%*��A% �+ROT!16=(XR%+X%)*256:ROT!20=(YR%+Y%)*256 �1XR%=-SX%*��A%-SY%*��A%:YR%=-SY%*��A%+SX%*��A% �+ROT!24=(XR%+X%)*256:ROT!28=(YR%+Y%)*256 �*ș"OS_SpriteOp",256+56,SPR,N$,1,,8,ROT �� �
00000000 0d 00 0a 0c f4 20 3e 20 43 48 49 4e 0d 00 14 04 |..... > CHIN....| 00000010 0d 00 1e 09 eb 31 38 3a 87 0d 00 28 17 de 20 53 |.....18:...(.. S| 00000020 50 52 20 26 32 30 30 30 30 2c 52 4f 54 20 33 32 |PR &20000,ROT 32| 00000030 0d 00 32 2b 53 50 52 21 30 3d 26 31 46 46 46 46 |..2+SPR!0=&1FFFF| 00000040 3a 53 50 52 21 34 3d 30 3a 53 50 52 21 38 3d 31 |:SPR!4=0:SPR!8=1| 00000050 36 3a 53 50 52 21 31 32 3d 31 36 0d 00 3c 04 0d |6:SPR!12=16..<..| 00000060 00 46 15 c8 93 c8 90 30 2c 30 2c 31 32 38 30 2c |.F.....0,0,1280,| 00000070 31 30 32 34 0d 00 50 33 c8 99 22 4f 53 5f 53 70 |1024..P3.."OS_Sp| 00000080 72 69 74 65 4f 70 22 2c 32 35 36 2b 31 30 2c 53 |riteOp",256+10,S| 00000090 50 52 2c 22 3c 4f 62 65 79 24 44 69 72 3e 2e 43 |PR,"<Obey$Dir>.C| 000000a0 48 49 4e 45 53 45 22 0d 00 5a 2e c8 99 22 4f 53 |HINESE"..Z..."OS| 000000b0 5f 53 70 72 69 74 65 4f 70 22 2c 32 35 36 2b 33 |_SpriteOp",256+3| 000000c0 34 2c 53 50 52 2c 22 43 48 49 4e 45 53 45 22 2c |4,SPR,"CHINESE",| 000000d0 31 30 30 2c 30 0d 00 64 0b fb 30 3a fb 31 32 39 |100,0..d..0:.129| 000000e0 0d 00 6e 1b f1 27 22 57 68 65 6e 20 74 68 65 20 |..n..'"When the | 000000f0 70 6f 69 6e 74 65 72 20 69 73 22 0d 00 78 18 f1 |pointer is"..x..| 00000100 22 61 74 20 74 68 65 20 74 6f 70 20 6f 66 20 74 |"at the top of t| 00000110 68 65 22 0d 00 82 18 f1 22 73 63 72 65 65 6e 2c |he"....."screen,| 00000120 20 74 68 65 72 65 20 61 72 65 22 0d 00 8c 0f f1 | there are".....| 00000130 22 31 32 20 6d 65 6e 2e 22 27 0d 00 96 17 f1 22 |"12 men."'....."| 00000140 57 68 65 6e 20 74 68 65 20 70 6f 69 6e 74 65 72 |When the pointer| 00000150 22 0d 00 a0 12 f1 22 72 65 61 63 68 65 73 20 74 |"....."reaches t| 00000160 68 65 22 0d 00 aa 15 f1 22 62 6f 74 74 6f 6d 2c |he"....."bottom,| 00000170 20 74 68 65 72 65 20 22 0d 00 b4 0f f1 22 61 72 | there "....."ar| 00000180 65 20 31 33 2e 22 27 0d 00 be 11 f1 22 57 68 65 |e 13."'....."Whe| 00000190 72 65 20 64 6f 65 73 22 0d 00 c8 0f f1 22 74 68 |re does"....."th| 000001a0 65 20 31 33 74 68 22 0d 00 d2 11 f1 22 63 6f 6d |e 13th"....."com| 000001b0 65 20 66 72 6f 6d 3f 22 0d 00 dc 38 c8 99 22 4f |e from?"...8.."O| 000001c0 53 5f 53 70 72 69 74 65 4f 70 22 2c 32 35 36 2b |S_SpriteOp",256+| 000001d0 31 36 2c 53 50 52 2c 22 47 4c 4f 42 45 22 2c 30 |16,SPR,"GLOBE",0| 000001e0 2c 32 31 36 2c 35 30 2c 31 30 38 38 2c 39 32 32 |,216,50,1088,922| 000001f0 0d 00 e6 26 c8 99 22 4f 53 5f 53 70 72 69 74 65 |...&.."OS_Sprite| 00000200 4f 70 22 2c 32 35 36 2b 32 39 2c 53 50 52 2c 22 |Op",256+29,SPR,"| 00000210 47 4c 4f 42 45 22 0d 00 f0 26 c8 99 22 4f 53 5f |GLOBE"...&.."OS_| 00000220 53 70 72 69 74 65 4f 70 22 2c 32 35 36 2b 36 31 |SpriteOp",256+61| 00000230 2c 53 50 52 2c 22 47 4c 4f 42 45 22 0d 00 fa 14 |,SPR,"GLOBE"....| 00000240 e6 30 3a c8 93 20 c8 90 20 30 2c 30 2c 38 37 32 |.0:.. .. 0,0,872| 00000250 0d 01 04 16 e6 31 3a c8 8f c8 90 34 33 36 2c 34 |.....1:....436,4| 00000260 33 36 2c 34 33 36 0d 01 0e 20 c8 99 22 4f 53 5f |36,436... .."OS_| 00000270 53 70 72 69 74 65 4f 70 22 2c 32 35 36 2b 36 31 |SpriteOp",256+61| 00000280 2c 53 50 52 2c 30 0d 01 18 0c 2a 50 4f 49 4e 54 |,SPR,0....*POINT| 00000290 45 52 0d 01 22 27 c8 97 c8 93 20 31 32 30 30 2c |ER.."'.... 1200,| 000002a0 30 2c 30 2c 31 30 32 34 3a c8 97 20 b8 20 31 32 |0,0,1024:.. . 12| 000002b0 30 30 2c 31 30 32 33 3a 87 0d 01 2c 05 f5 0d 01 |00,1023:...,....| 000002c0 36 24 4f 42 25 3d 42 25 3a c8 97 20 41 25 2c 42 |6$OB%=B%:.. A%,B| 000002d0 25 2c 43 25 3a 42 25 3d 33 30 2d 42 25 2f 33 34 |%,C%:B%=30-B%/34| 000002e0 2e 31 0d 01 40 32 e7 20 42 25 3c 3e 4f 42 25 20 |.1..@2. B%<>OB% | 000002f0 f2 52 4f 54 28 53 50 52 2c 22 47 4c 4f 42 45 22 |.ROT(SPR,"GLOBE"| 00000300 2c 36 35 32 2c 34 38 38 2c 34 33 36 2c 34 33 36 |,652,488,436,436| 00000310 2c 42 25 29 0d 01 4a 0a fd 41 25 3d 33 30 0d 01 |,B%)..J..A%=30..| 00000320 54 05 e0 0d 01 5e 04 0d 01 68 22 dd f2 52 4f 54 |T....^...h"..ROT| 00000330 28 53 50 52 2c 4e 24 2c 58 25 2c 59 25 2c 53 58 |(SPR,N$,X%,Y%,SX| 00000340 25 2c 53 59 25 2c 41 25 29 0d 01 72 0d ea 20 58 |%,SY%,A%)..r.. X| 00000350 52 25 2c 59 52 25 0d 01 7c 30 58 52 25 3d 2d 53 |R%,YR%..|0XR%=-S| 00000360 58 25 2a 9b b2 41 25 2b 53 59 25 2a b5 b2 41 25 |X%*..A%+SY%*..A%| 00000370 3a 59 52 25 3d 53 59 25 2a 9b b2 41 25 2b 53 58 |:YR%=SY%*..A%+SX| 00000380 25 2a b5 b2 41 25 0d 01 86 2b 52 4f 54 21 30 30 |%*..A%...+ROT!00| 00000390 3d 28 58 52 25 2b 58 25 29 2a 32 35 36 3a 52 4f |=(XR%+X%)*256:RO| 000003a0 54 21 30 34 3d 28 59 52 25 2b 59 25 29 2a 32 35 |T!04=(YR%+Y%)*25| 000003b0 36 0d 01 90 2f 58 52 25 3d 53 58 25 2a 9b b2 41 |6.../XR%=SX%*..A| 000003c0 25 2b 53 59 25 2a b5 b2 41 25 3a 59 52 25 3d 53 |%+SY%*..A%:YR%=S| 000003d0 59 25 2a 9b b2 41 25 2d 53 58 25 2a b5 b2 41 25 |Y%*..A%-SX%*..A%| 000003e0 0d 01 9a 2b 52 4f 54 21 30 38 3d 28 58 52 25 2b |...+ROT!08=(XR%+| 000003f0 58 25 29 2a 32 35 36 3a 52 4f 54 21 31 32 3d 28 |X%)*256:ROT!12=(| 00000400 59 52 25 2b 59 25 29 2a 32 35 36 0d 01 a4 30 58 |YR%+Y%)*256...0X| 00000410 52 25 3d 53 58 25 2a 9b b2 41 25 2d 53 59 25 2a |R%=SX%*..A%-SY%*| 00000420 b5 b2 41 25 3a 59 52 25 3d 2d 53 59 25 2a 9b b2 |..A%:YR%=-SY%*..| 00000430 41 25 2d 53 58 25 2a b5 b2 41 25 0d 01 ae 2b 52 |A%-SX%*..A%...+R| 00000440 4f 54 21 31 36 3d 28 58 52 25 2b 58 25 29 2a 32 |OT!16=(XR%+X%)*2| 00000450 35 36 3a 52 4f 54 21 32 30 3d 28 59 52 25 2b 59 |56:ROT!20=(YR%+Y| 00000460 25 29 2a 32 35 36 0d 01 b8 31 58 52 25 3d 2d 53 |%)*256...1XR%=-S| 00000470 58 25 2a 9b b2 41 25 2d 53 59 25 2a b5 b2 41 25 |X%*..A%-SY%*..A%| 00000480 3a 59 52 25 3d 2d 53 59 25 2a 9b b2 41 25 2b 53 |:YR%=-SY%*..A%+S| 00000490 58 25 2a b5 b2 41 25 0d 01 c2 2b 52 4f 54 21 32 |X%*..A%...+ROT!2| 000004a0 34 3d 28 58 52 25 2b 58 25 29 2a 32 35 36 3a 52 |4=(XR%+X%)*256:R| 000004b0 4f 54 21 32 38 3d 28 59 52 25 2b 59 25 29 2a 32 |OT!28=(YR%+Y%)*2| 000004c0 35 36 0d 01 cc 2a c8 99 22 4f 53 5f 53 70 72 69 |56...*.."OS_Spri| 000004d0 74 65 4f 70 22 2c 32 35 36 2b 35 36 2c 53 50 52 |teOp",256+56,SPR| 000004e0 2c 4e 24 2c 31 2c 2c 38 2c 52 4f 54 0d 01 d6 05 |,N$,1,,8,ROT....| 000004f0 e1 0d ff |...| 000004f3