Home » Archimedes archive » Micro User » MU 1992-01.adf » PDstuffing » Twilight/+TwPRD/c/base
Twilight/+TwPRD/c/base
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 » Micro User » MU 1992-01.adf » PDstuffing |
Filename: | Twilight/+TwPRD/c/base |
Read OK: | ✔ |
File size: | 038C bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
; Project name Twilight ; Part ; Purpose ; Filename !Twilight.Effects. ; Author ; Last modified //91 GET h.swis GET h.effectdefs DCB "TwEffect" DCD message DCD 0 ; control description DCD 0 ; default control data DCD init DCD poll DCD finalise DCD 2_110 ; flags message DCB "",0 ALIGN init STMFD R13!,{R14} MOV R0,#6 ; claim MOV R3,#work_end - work_start SWI XOS_Module BVS init_error STR R2,[R11] MOV R11,R2 LDMFD R13!,{PC} init_error LDMFD R13!,{R14} ORRS PC,R14,#v_flag poll STMFD R13!,{R14} LDR R11,[R11] LDMFD R13!,{PC} finalise STMFD R13!,{R14} LDR R11,[R11] MOV R0,#7 ; free block in RMA MOV R2,R11 SWI XOS_Module ; free block LDMFD R13!,{PC} ; *************** workspace definitions LTORG ^ 0,R11 work_start # 0 ; put variables here... work_end # 0 END
00000000 20 20 20 3b 20 50 72 6f 6a 65 63 74 20 6e 61 6d | ; Project nam| 00000010 65 20 20 20 20 54 77 69 6c 69 67 68 74 0a 20 20 |e Twilight. | 00000020 20 3b 20 50 61 72 74 20 20 20 20 20 20 20 20 20 | ; Part | 00000030 20 20 20 0a 20 20 20 3b 20 50 75 72 70 6f 73 65 | . ; Purpose| 00000040 20 20 20 20 20 20 20 20 20 0a 20 20 20 3b 20 46 | . ; F| 00000050 69 6c 65 6e 61 6d 65 20 20 20 20 20 20 20 20 21 |ilename !| 00000060 54 77 69 6c 69 67 68 74 2e 45 66 66 65 63 74 73 |Twilight.Effects| 00000070 2e 0a 20 20 20 3b 20 41 75 74 68 6f 72 20 20 20 |.. ; Author | 00000080 20 20 20 20 20 20 20 0a 20 20 20 3b 20 4c 61 73 | . ; Las| 00000090 74 20 6d 6f 64 69 66 69 65 64 20 20 20 2f 2f 39 |t modified //9| 000000a0 31 0a 0a 20 47 45 54 20 68 2e 73 77 69 73 0a 20 |1.. GET h.swis. | 000000b0 47 45 54 20 68 2e 65 66 66 65 63 74 64 65 66 73 |GET h.effectdefs| 000000c0 0a 0a 20 44 43 42 20 22 54 77 45 66 66 65 63 74 |.. DCB "TwEffect| 000000d0 22 0a 20 44 43 44 20 6d 65 73 73 61 67 65 0a 20 |". DCD message. | 000000e0 44 43 44 20 30 20 20 20 20 20 3b 20 63 6f 6e 74 |DCD 0 ; cont| 000000f0 72 6f 6c 20 64 65 73 63 72 69 70 74 69 6f 6e 0a |rol description.| 00000100 20 44 43 44 20 30 20 20 20 20 20 3b 20 64 65 66 | DCD 0 ; def| 00000110 61 75 6c 74 20 63 6f 6e 74 72 6f 6c 20 64 61 74 |ault control dat| 00000120 61 0a 20 44 43 44 20 69 6e 69 74 0a 20 44 43 44 |a. DCD init. DCD| 00000130 20 70 6f 6c 6c 0a 20 44 43 44 20 66 69 6e 61 6c | poll. DCD final| 00000140 69 73 65 0a 20 44 43 44 20 32 5f 31 31 30 20 20 |ise. DCD 2_110 | 00000150 3b 20 66 6c 61 67 73 0a 0a 6d 65 73 73 61 67 65 |; flags..message| 00000160 0a 20 44 43 42 20 22 22 2c 30 0a 20 41 4c 49 47 |. DCB "",0. ALIG| 00000170 4e 0a 0a 69 6e 69 74 0a 20 53 54 4d 46 44 20 52 |N..init. STMFD R| 00000180 31 33 21 2c 7b 52 31 34 7d 0a 20 4d 4f 56 20 20 |13!,{R14}. MOV | 00000190 20 52 30 2c 23 36 20 20 3b 20 63 6c 61 69 6d 0a | R0,#6 ; claim.| 000001a0 20 4d 4f 56 20 20 20 52 33 2c 23 77 6f 72 6b 5f | MOV R3,#work_| 000001b0 65 6e 64 20 2d 20 77 6f 72 6b 5f 73 74 61 72 74 |end - work_start| 000001c0 0a 20 53 57 49 20 20 20 58 4f 53 5f 4d 6f 64 75 |. SWI XOS_Modu| 000001d0 6c 65 0a 20 42 56 53 20 20 20 69 6e 69 74 5f 65 |le. BVS init_e| 000001e0 72 72 6f 72 0a 20 53 54 52 20 20 20 52 32 2c 5b |rror. STR R2,[| 000001f0 52 31 31 5d 0a 20 4d 4f 56 20 20 20 52 31 31 2c |R11]. MOV R11,| 00000200 52 32 0a 20 4c 44 4d 46 44 20 52 31 33 21 2c 7b |R2. LDMFD R13!,{| 00000210 50 43 7d 0a 69 6e 69 74 5f 65 72 72 6f 72 0a 20 |PC}.init_error. | 00000220 4c 44 4d 46 44 20 52 31 33 21 2c 7b 52 31 34 7d |LDMFD R13!,{R14}| 00000230 0a 20 4f 52 52 53 20 20 50 43 2c 52 31 34 2c 23 |. ORRS PC,R14,#| 00000240 76 5f 66 6c 61 67 0a 0a 70 6f 6c 6c 0a 20 53 54 |v_flag..poll. ST| 00000250 4d 46 44 20 52 31 33 21 2c 7b 52 31 34 7d 0a 20 |MFD R13!,{R14}. | 00000260 4c 44 52 20 20 20 52 31 31 2c 5b 52 31 31 5d 0a |LDR R11,[R11].| 00000270 20 4c 44 4d 46 44 20 52 31 33 21 2c 7b 50 43 7d | LDMFD R13!,{PC}| 00000280 0a 0a 66 69 6e 61 6c 69 73 65 0a 20 53 54 4d 46 |..finalise. STMF| 00000290 44 20 52 31 33 21 2c 7b 52 31 34 7d 0a 20 4c 44 |D R13!,{R14}. LD| 000002a0 52 20 20 20 52 31 31 2c 5b 52 31 31 5d 0a 20 4d |R R11,[R11]. M| 000002b0 4f 56 20 20 20 52 30 2c 23 37 20 20 3b 20 66 72 |OV R0,#7 ; fr| 000002c0 65 65 20 62 6c 6f 63 6b 20 69 6e 20 52 4d 41 0a |ee block in RMA.| 000002d0 20 4d 4f 56 20 20 20 52 32 2c 52 31 31 0a 20 53 | MOV R2,R11. S| 000002e0 57 49 20 20 20 58 4f 53 5f 4d 6f 64 75 6c 65 20 |WI XOS_Module | 000002f0 20 20 20 3b 20 66 72 65 65 20 62 6c 6f 63 6b 0a | ; free block.| 00000300 20 4c 44 4d 46 44 20 52 31 33 21 2c 7b 50 43 7d | LDMFD R13!,{PC}| 00000310 0a 0a 20 20 3b 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |.. ; **********| 00000320 2a 2a 2a 2a 2a 20 77 6f 72 6b 73 70 61 63 65 20 |***** workspace | 00000330 64 65 66 69 6e 69 74 69 6f 6e 73 0a 0a 20 4c 54 |definitions.. LT| 00000340 4f 52 47 0a 0a 20 5e 20 30 2c 52 31 31 0a 0a 77 |ORG.. ^ 0,R11..w| 00000350 6f 72 6b 5f 73 74 61 72 74 20 23 20 30 0a 0a 20 |ork_start # 0.. | 00000360 3b 20 70 75 74 20 76 61 72 69 61 62 6c 65 73 20 |; put variables | 00000370 68 65 72 65 2e 2e 2e 0a 0a 77 6f 72 6b 5f 65 6e |here.....work_en| 00000380 64 20 23 20 30 0a 0a 20 45 4e 44 0a |d # 0.. END.| 0000038c