Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/!EvntShell/Extensions/AWorksLib
!AWJan95/Goodies/Event/!EvntShell/Extensions/AWorksLib
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 » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 |
Filename: | !AWJan95/Goodies/Event/!EvntShell/Extensions/AWorksLib |
Read OK: | ✔ |
File size: | 20A1 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1*|start PROCshell_AWAssemble 2*|!PROCshell_AWAssemble( ) 3DEF PROCshell_AWAssemble 4LOCAL SR_V,SR_C,MemMapPageSize,ecode,aw_blk% 5 6SYS "OS_ReadMemMapInfo" TO MemMapPageSize 7SR_V = 1 << 28 8SR_C = 1 << 29 9ecode = _heap_code% + 24 10 11DIM code% &400 12 13FOR PASS=0 TO 2 STEP 2 14P%=code% 15[OPT PASS 16 17; Entry r11 = reason code 18; r0-r10 depends on r11 19 20.CallbackRoutine 21 cmp r11,#(TableEnd-TableStart)DIV4 22 addcc pc,pc,r11,lsl #2 23 24 movs pc,r14 25.TableStart 26 b MemoryManager 27 b PlateColour 28.TableEnd 29 30; MemoryManager 31; 32; Entry r0 = desired size of resizable block or 33; r0 = -1 to read the current size of resizable block 34; 35; Exit r0=> Base of resizable block 36; r1 = size of resizable block 37; r2=> base of fixed block (or -1 if there is no fixed block) 38; r3 = size of fixed block (or size of document in resizable block) 39; 40; Note that r3 is only expected to be correct the first time this callback 41; is made when called from the FileInit routine - after that, the renderer 42; module will keep track if the document grows or shrinks in size (as it 43; might during conversion) 44 45.MemoryManager 46 stmfd r13!,{r4-r12,r14} 47 48 cmn r0,#ABS-1 49 beq returnsizes 50 51; The renderer has requested that the resizable block be resized, so we see 52; where that would change the slot, and call the extend slot code as needed. 53; 54 ldr r1,VarSize ; Get old variable block size 55 str r1,OldVarSize 56 str r0,VarSize ; Store new size of variable block 57 ldr r1,VarBase 58 add r0,r0,r1 59 60; Have we extended beyond the claimed memory? 61 62 ldr r1,TopOfSlot ; tough 'cos I'm not allocating any 63 cmp r0,r1 ; more... 64 bgt growslot ; ok, we'll try 65 66.returnsizes 67 ldr r0,VarBase 68 ldr r1,VarSize 69 ldr r2,FixedBase 70 ldr r3,FixedSize 71 ldmfd r13!,{r4-r12,r14} 72 bics pc,r14,#SR_V 73 74.growslot 75 ldr r0,VarSize 76 ldr r1,OldVarSize 77 sub r3,r0,r1 ; Calculate change required 78 ldr r0,VarBase 79 bl ecode ; jump to extend code 80 str r2,VarBase ; store new base of slot 81 b returnsizes ; and return 82 83.errblock 84 equd 1 85 equs "Out of memory"+CHR$0 86 align 87 88.VarBase equd 0 ; Base of resizable block 89.VarSize equd 0 ; Size of resizable block 90.FixedBase equd 0 ; Base of fixed block 91.FixedSize equd 0 ; Size of fixed block 92.PageSize equd MemMapPageSize 93.OldVarSize equd 0 ; Temp store for variable doc size 94.TopOfSlot equd 0 ; Top of variable block 95 96; PlateColour 97; 98; Since we're not separating, we can just return CC 99 100.PlateColour 101 bics pc,r14,#SR_C 102 103 104.CallFileInit 105 stmfd r13!,{r0-r12,r14} 106 107 swi "AWRender_FileInitAddress" 108 mov r12,r1 109 mov r10,r0 ; save address of fileinit routine 110 111 ldr r0,VarBase 112 adr r1,CallbackRoutine 113 ldr r2,FixedSize 114 115 mov r14,pc 116 mov pc,r10 ; jump to fileinit routine 117 118; Returned from routine, check error flag 119 120 mvnvc r1,#NOT-1 121 movvs r1,r0 122 str r1,OldVarSize ; Return -1 or error pointer 123 124 strvc r0,FixedSize ; Store real size of doc 125 126 ldmfd r13!,{r0-r12,pc}^ 127 128.RenderArtWorks 129 stmfd r13!,{r0-r12,r14} 130 131 swi "AWRender_RenderAddress" 132 mov r12,r1 133 mov r10,r0 134 135 ldr r0,[r13] ; Retrieve r0 136 ldr r1,[r13,#4] ; and r1 from the stack 137 138 mov r14,pc 139 mov pc,r10 140 141 ldmfd r13!,{r0-r12,pc}^ 142 143] 144NEXT PASS 145 146REM Set shell flag bit.. 147_U%!100 = _U%!100 OR 1 << 8 148 149REM Set up renderer redraw block, contains pointers to blocks of memory 150REM used by the redraw routine.. 151aw_blk% = FNshell_HeapBlockFetch(16) :REM Store address of block 152aw_blk%!00 = FNshell_HeapBlockFetch(256) :REM VduVars heapblock 153aw_blk%!04 = FNshell_HeapBlockFetch(6 * 4) :REM Matrix heapblock 154aw_blk%!08 = FNshell_HeapBlockFetch(36) :REM Info heapblock 155aw_blk%!12 = FNshell_HeapBlockFetch(&2000) :REM WorkBlk heapblock 156aw_blk%!16 = CallbackRoutine :REM Address of CallbackRoutine 157_U%!48 = aw_blk% 158 159ENDPROC 160: 161 162*|stop PROCshell_AWAssemble 163 164*|start PROCshell_AWCallFileInit 165*|!PROCshell_AWCallFileInit( ) 166DEF PROCshell_AWCallFileInit(var_buff%,RETURN DocLength%) 167 168!VarBase = var_buff% 169!VarSize = DocLength% 170!FixedBase = -1 171!FixedSize = DocLength% 172!TopOfSlot = 0 173 174CALL CallFileInit 175 176IF !OldVarSize<>-1 THEN 177 ERROR 1,"This ArtWorks file version is too old to be rendered. Drop it into a current ArtWorks and save it out to use it" 178ENDIF 179 180REM Now set up the variables for the size of the doc and variable space 181 182DocLength% = !FixedSize 183 184ENDPROC 185: 186*|stop PROCshell_AWCallFileInit 187 188*|start PROCshell_AWRenderDoc 189*|!PROCshell_AWRenderDoc( ) 190DEF PROCshell_AWRenderDoc(w%) 191LOCAL LowX%,LowY%,HighX%,HighY%,aw_blk%,Matrix,InfoBlock%,VduVars% 192LOCAL CallbackRoutine,AW_WorkBuffer% 193 194aw_blk% = _U%!48 195VduVars% = aw_blk%!00 196Matrix = aw_blk%!04 197InfoBlock% = aw_blk%!08 198AW_WorkBuffer% = aw_blk%!12 199CallbackRoutine = aw_blk%!16 200 201WindOffX% = w%!04 - w%!20 202WindOffY% = w%!16 - w%!24 203 204LowX% = w%!28 205LowY% = w%!32 206HighX% = w%!36 207HighY% = w%!40 208 209REM Now set everything up that I need for the renderer 210 211InfoBlock%!0 = WindOffX% 212InfoBlock%!4 = WindOffY% :REM Dither origin is always at document (0,0) 213 214PROCshell_AWScreenToVirt(LowX%,LowY%) 215PROCshell_AWScreenToVirt(HighX%,HighY%) 216 217InfoBlock%!08 = LowX% 218InfoBlock%!12 = LowY% 219InfoBlock%!16 = HighX% 220InfoBlock%!20 = HighY% 221 222REM The other params are unnecessary when not printing 223 224VduVars%!0 = XEigenFactor 225VduVars%!4 = YEigenFactor 226VduVars%!8 = Log2ModeBPP 227SYS"Wimp_ReadPalette",,VduVars% + 12 228 229REM Set up the matrix 230 231!Matrix = &10000 * WinScaleFactor 232Matrix!04 = 0 233Matrix!08 = 0 234Matrix!12 = &10000 * WinScaleFactor 235Matrix!16 = 256 * WindOffX% 236Matrix!20 = 256 * WindOffY% 237 238REM Now set up the memory management variables 239 240!FixedBase = AW_Buffer% 241!FixedSize = DocLength% 242!VarBase = AW_WorkBuffer% 243!VarSize = FNshell_HeapBlockInfo(AW_WorkBuffer%) 244!TopOfSlot = !VarBase + !VarSize 245 246A% = AW_Buffer% 247B% = InfoBlock% 248C% = Matrix 249D% = VduVars% 250E% = AW_WorkBuffer% 251F% = CallbackRoutine 252G% = 110 253H% = 0 254 255CALL RenderArtWorks 256AW_WorkBuffer% = !VarBase 257 258ENDPROC 259: 260*|stop PROCshell_AWRenderDoc 261 262*|start PROCshell_AWScreenToVirt 263*|!PROCshell_AWScreenToVirt( ) 264DEFPROCshell_AWScreenToVirt(RETURN x%, RETURN y%) 265x% = (x% - WindOffX%) * 256 / WinScaleFactor 266y% = (y% - WindOffY%) * 256 / WinScaleFactor 267ENDPROC 268: 269*|stop PROCshell_AWScreenToVirt 270 271*|start FNshell_AWLoadFile 272DEF PROCshell_AWLoadFile(name$,RETURN buffer%,RETURN size%) 273LOCAL err,flags% 274REM Called to load an ArtWorks file. First check if renderer code has 275REM already been assembled.. 276IF (_U%!100 AND (1 << 8)) = 0 THEN 277 PROCshell_Tracef0("AWLoadFile:Assembling AW renderer code..") 278 PROCshell_AWAssemble 279ELSE 280 PROCshell_Tracef0("AWLoadFile:AW renderer code already assembled..") 281ENDIF 282size% = FNshell_FileLength(name$) 283buffer% = FNshell_HeapBlockFetch(size%) 284SYS"XOS_File",16,name$,buffer%,0 TO err;flags% 285IF flags% AND 1 THEN ERROR !err,FNshell_GetString(err + 4) 286PROCshell_AWCallFileInit(buffer%,size%) 287ENDPROC 288: 289*|stop FNshell_AWLoadFile
*|start PROCshell_AWAssemble *|!PROCshell_AWAssemble( ) � �shell_AWAssemble ,� SR_V,SR_C,MemMapPageSize,ecode,aw_blk% +ș "OS_ReadMemMapInfo" � MemMapPageSize SR_V = 1 << 28 SR_C = 1 << 29 ecode = _heap_code% + 24 � code% &400 � PASS=0 � 2 � 2 P%=code% [OPT PASS ; Entry r11 = reason code !; r0-r10 depends on r11 .CallbackRoutine 0 cmp r11,#(TableEnd-TableStart)�4 $ addcc pc,pc,r11,lsl #2 movs pc,r14 .TableStart ! b MemoryManager b PlateColour .TableEnd ; MemoryManager ; 5; Entry r0 = desired size of resizable block or !?; r0 = -1 to read the current size of resizable block "; #(; Exit r0=> Base of resizable block $(; r1 = size of resizable block %G; r2=> base of fixed block (or -1 if there is no fixed block) &M; r3 = size of fixed block (or size of document in resizable block) '; (N; Note that r3 is only expected to be correct the first time this callback )N; is made when called from the FileInit routine - after that, the renderer *L; module will keep track if the document grows or shrinks in size (as it +; might during conversion) , -.MemoryManager .% stmfd r13!,{r4-r12,r14} / 0 cmn r0,#�-1 1 beq returnsizes 2 3O; The renderer has requested that the resizable block be resized, so we see 4P; where that would change the slot, and call the extend slot code as needed. 5; 6I ldr r1,VarSize ; Get old variable block size 7! str r1,OldVarSize 8N str r0,VarSize ; Store new size of variable block 9 ldr r1,VarBase : add r0,r0,r1 ; <1; Have we extended beyond the claimed memory? = >O ldr r1,TopOfSlot ; tough 'cos I'm not allocating any ?5 cmp r0,r1 ; more... @; bgt growslot ; ok, we'll try A B.returnsizes C ldr r0,VarBase D ldr r1,VarSize E ldr r2,FixedBase F ldr r3,FixedSize G% ldmfd r13!,{r4-r12,r14} H bics pc,r14,#SR_V I J .growslot K ldr r0,VarSize L! ldr r1,OldVarSize MG sub r3,r0,r1 ; Calculate change required N ldr r0,VarBase OA bl ecode ; jump to extend code PD str r2,VarBase ; store new base of slot Q8 b returnsizes ; and return R S .errblock T equd 1 U& equs "Out of memory"+�0 V align W X=.VarBase equd 0 ; Base of resizable block Y=.VarSize equd 0 ; Size of resizable block Z9.FixedBase equd 0 ; Base of fixed block [9.FixedSize equd 0 ; Size of fixed block \*.PageSize equd MemMapPageSize ]F.OldVarSize equd 0 ; Temp store for variable doc size ^;.TopOfSlot equd 0 ; Top of variable block _ `; PlateColour a; b7; Since we're not separating, we can just return CC c d.PlateColour e bics pc,r14,#SR_C f g h.CallFileInit i% stmfd r13!,{r0-r12,r14} j k. swi "AWRender_FileInitAddress" l mov r12,r1 mH mov r10,r0 ; save address of fileinit routine n o ldr r0,VarBase p& adr r1,CallbackRoutine q ldr r2,FixedSize r s mov r14,pc t@ mov pc,r10 ; jump to fileinit routine u v-; Returned from routine, check error flag w x mvnvc r1,#�-1 y movvs r1,r0 zH str r1,OldVarSize ; Return -1 or error pointer { |D strvc r0,FixedSize ; Store real size of doc } ~% ldmfd r13!,{r0-r12,pc}^ �.RenderArtWorks �% stmfd r13!,{r0-r12,r14} � �, swi "AWRender_RenderAddress" � mov r12,r1 � mov r10,r0 � �9 ldr r0,[r13] ; Retrieve r0 �C ldr r1,[r13,#4] ; and r1 from the stack � � mov r14,pc � mov pc,r10 � �% ldmfd r13!,{r0-r12,pc}^ � �] � � PASS � �� Set shell flag bit.. �_U%!100 = _U%!100 � 1 << 8 � �I� Set up renderer redraw block, contains pointers to blocks of memory �"� used by the redraw routine.. �Gaw_blk% = �shell_HeapBlockFetch(16) :� Store address of block �Baw_blk%!00 = �shell_HeapBlockFetch(256) :� VduVars heapblock �Baw_blk%!04 = �shell_HeapBlockFetch(6 * 4) :� Matrix heapblock �Baw_blk%!08 = �shell_HeapBlockFetch(36) :� Info heapblock �Baw_blk%!12 = �shell_HeapBlockFetch(&2000) :� WorkBlk heapblock �Law_blk%!16 = CallbackRoutine :� Address of CallbackRoutine �_U%!48 = aw_blk% � �� �: � �*|stop PROCshell_AWAssemble � �$*|start PROCshell_AWCallFileInit �"*|!PROCshell_AWCallFileInit( ) �3� �shell_AWCallFileInit(var_buff%,� DocLength%) � �!VarBase = var_buff% �!VarSize = DocLength% �!FixedBase = -1 �!FixedSize = DocLength% �!TopOfSlot = 0 � �� CallFileInit � �� !OldVarSize<>-1 � �{ � 1,"This ArtWorks file version is too old to be rendered. Drop it into a current ArtWorks and save it out to use it" �� � �I� Now set up the variables for the size of the doc and variable space � �DocLength% = !FixedSize � �� �: �#*|stop PROCshell_AWCallFileInit � �!*|start PROCshell_AWRenderDoc �*|!PROCshell_AWRenderDoc( ) �� �shell_AWRenderDoc(w%) �B� LowX%,LowY%,HighX%,HighY%,aw_blk%,Matrix,InfoBlock%,VduVars% �$� CallbackRoutine,AW_WorkBuffer% � �aw_blk% = _U%!48 � VduVars% = aw_blk%!00 � Matrix = aw_blk%!04 � InfoBlock% = aw_blk%!08 � AW_WorkBuffer% = aw_blk%!12 � CallbackRoutine = aw_blk%!16 � �WindOffX% = w%!04 - w%!20 �WindOffY% = w%!16 - w%!24 � �LowX% = w%!28 �LowY% = w%!32 �HighX% = w%!36 �HighY% = w%!40 � �8� Now set everything up that I need for the renderer � �InfoBlock%!0 = WindOffX% �LInfoBlock%!4 = WindOffY% :� Dither origin is always at document (0,0) � �&�shell_AWScreenToVirt(LowX%,LowY%) �(�shell_AWScreenToVirt(HighX%,HighY%) � �InfoBlock%!08 = LowX% �InfoBlock%!12 = LowY% �InfoBlock%!16 = HighX% �InfoBlock%!20 = HighY% � �8� The other params are unnecessary when not printing � �"VduVars%!0 = XEigenFactor �"VduVars%!4 = YEigenFactor �!VduVars%!8 = Log2ModeBPP �'ș"Wimp_ReadPalette",,VduVars% + 12 � �� Set up the matrix � �-!Matrix = &10000 * WinScaleFactor �Matrix!04 = 0 �.Matrix!08 = 0 �-Matrix!12 = &10000 * WinScaleFactor �%Matrix!16 = 256 * WindOffX% �%Matrix!20 = 256 * WindOffY% � �0� Now set up the memory management variables � � !FixedBase = AW_Buffer% � !FixedSize = DocLength% �$!VarBase = AW_WorkBuffer% �:!VarSize = �shell_HeapBlockInfo(AW_WorkBuffer%) �)!TopOfSlot = !VarBase + !VarSize � �A% = AW_Buffer% �B% = InfoBlock% �C% = Matrix �D% = VduVars% �E% = AW_WorkBuffer% �F% = CallbackRoutine �G% = 110 � H% = 0 � �� RenderArtWorks AW_WorkBuffer% = !VarBase � : *|stop PROCshell_AWRenderDoc $*|start PROCshell_AWScreenToVirt "*|!PROCshell_AWScreenToVirt( ) &��shell_AWScreenToVirt(� x%, � y%) 0x% = (x% - WindOffX%) * 256 / WinScaleFactor 0y% = (y% - WindOffY%) * 256 / WinScaleFactor � : #*|stop PROCshell_AWScreenToVirt *|start FNshell_AWLoadFile 0� �shell_AWLoadFile(name$,� buffer%,� size%) � err,flags% G� Called to load an ArtWorks file. First check if renderer code has � already been assembled.. � (_U%!100 � (1 << 8)) = 0 � @ �shell_Tracef0("AWLoadFile:Assembling AW renderer code..") �shell_AWAssemble � G �shell_Tracef0("AWLoadFile:AW renderer code already assembled..") � &size% = �shell_FileLength(name$) *buffer% = �shell_HeapBlockFetch(size%) 0ș"XOS_File",16,name$,buffer%,0 � err;flags% 3� flags% � 1 � � !err,�shell_GetString(err + 4) (�shell_AWCallFileInit(buffer%,size%) � : !*|stop FNshell_AWLoadFile �
00000000 0d 00 01 20 2a 7c 73 74 61 72 74 20 50 52 4f 43 |... *|start PROC| 00000010 73 68 65 6c 6c 5f 41 57 41 73 73 65 6d 62 6c 65 |shell_AWAssemble| 00000020 0d 00 02 1e 2a 7c 21 50 52 4f 43 73 68 65 6c 6c |....*|!PROCshell| 00000030 5f 41 57 41 73 73 65 6d 62 6c 65 28 20 29 0d 00 |_AWAssemble( )..| 00000040 03 17 dd 20 f2 73 68 65 6c 6c 5f 41 57 41 73 73 |... .shell_AWAss| 00000050 65 6d 62 6c 65 0d 00 04 2c ea 20 53 52 5f 56 2c |emble...,. SR_V,| 00000060 53 52 5f 43 2c 4d 65 6d 4d 61 70 50 61 67 65 53 |SR_C,MemMapPageS| 00000070 69 7a 65 2c 65 63 6f 64 65 2c 61 77 5f 62 6c 6b |ize,ecode,aw_blk| 00000080 25 0d 00 05 04 0d 00 06 2b c8 99 20 22 4f 53 5f |%.......+.. "OS_| 00000090 52 65 61 64 4d 65 6d 4d 61 70 49 6e 66 6f 22 20 |ReadMemMapInfo" | 000000a0 b8 20 4d 65 6d 4d 61 70 50 61 67 65 53 69 7a 65 |. MemMapPageSize| 000000b0 0d 00 07 13 53 52 5f 56 20 20 3d 20 31 20 3c 3c |....SR_V = 1 <<| 000000c0 20 32 38 0d 00 08 13 53 52 5f 43 20 20 3d 20 31 | 28....SR_C = 1| 000000d0 20 3c 3c 20 32 39 0d 00 09 1c 65 63 6f 64 65 20 | << 29....ecode | 000000e0 3d 20 5f 68 65 61 70 5f 63 6f 64 65 25 20 2b 20 |= _heap_code% + | 000000f0 32 34 0d 00 0a 04 0d 00 0b 10 de 20 63 6f 64 65 |24......... code| 00000100 25 20 26 34 30 30 0d 00 0c 04 0d 00 0d 14 e3 20 |% &400......... | 00000110 50 41 53 53 3d 30 20 b8 20 32 20 88 20 32 0d 00 |PASS=0 . 2 . 2..| 00000120 0e 0c 50 25 3d 63 6f 64 65 25 0d 00 0f 0d 5b 4f |..P%=code%....[O| 00000130 50 54 20 50 41 53 53 0d 00 10 04 0d 00 11 1d 3b |PT PASS........;| 00000140 20 45 6e 74 72 79 20 72 31 31 20 3d 20 72 65 61 | Entry r11 = rea| 00000150 73 6f 6e 20 63 6f 64 65 0d 00 12 21 3b 20 20 20 |son code...!; | 00000160 20 20 20 20 72 30 2d 72 31 30 20 64 65 70 65 6e | r0-r10 depen| 00000170 64 73 20 6f 6e 20 72 31 31 0d 00 13 04 0d 00 14 |ds on r11.......| 00000180 14 2e 43 61 6c 6c 62 61 63 6b 52 6f 75 74 69 6e |..CallbackRoutin| 00000190 65 0d 00 15 30 20 20 20 20 20 20 20 20 63 6d 70 |e...0 cmp| 000001a0 20 20 20 20 20 72 31 31 2c 23 28 54 61 62 6c 65 | r11,#(Table| 000001b0 45 6e 64 2d 54 61 62 6c 65 53 74 61 72 74 29 81 |End-TableStart).| 000001c0 34 0d 00 16 24 20 20 20 20 20 20 20 20 61 64 64 |4...$ add| 000001d0 63 63 20 20 20 70 63 2c 70 63 2c 72 31 31 2c 6c |cc pc,pc,r11,l| 000001e0 73 6c 20 23 32 0d 00 17 04 0d 00 18 1a 20 20 20 |sl #2........ | 000001f0 20 20 20 20 20 6d 6f 76 73 20 20 20 20 70 63 2c | movs pc,| 00000200 72 31 34 0d 00 19 0f 2e 54 61 62 6c 65 53 74 61 |r14.....TableSta| 00000210 72 74 0d 00 1a 21 20 20 20 20 20 20 20 20 62 20 |rt...! b | 00000220 20 20 20 20 20 20 4d 65 6d 6f 72 79 4d 61 6e 61 | MemoryMana| 00000230 67 65 72 0d 00 1b 1f 20 20 20 20 20 20 20 20 62 |ger.... b| 00000240 20 20 20 20 20 20 20 50 6c 61 74 65 43 6f 6c 6f | PlateColo| 00000250 75 72 0d 00 1c 0d 2e 54 61 62 6c 65 45 6e 64 0d |ur.....TableEnd.| 00000260 00 1d 04 0d 00 1e 13 3b 20 4d 65 6d 6f 72 79 4d |.......; MemoryM| 00000270 61 6e 61 67 65 72 0d 00 1f 05 3b 0d 00 20 35 3b |anager....;.. 5;| 00000280 20 45 6e 74 72 79 20 72 30 20 3d 20 64 65 73 69 | Entry r0 = desi| 00000290 72 65 64 20 73 69 7a 65 20 6f 66 20 72 65 73 69 |red size of resi| 000002a0 7a 61 62 6c 65 20 62 6c 6f 63 6b 20 20 20 6f 72 |zable block or| 000002b0 0d 00 21 3f 3b 20 20 20 20 20 20 20 72 30 20 3d |..!?; r0 =| 000002c0 20 2d 31 20 74 6f 20 72 65 61 64 20 74 68 65 20 | -1 to read the | 000002d0 63 75 72 72 65 6e 74 20 73 69 7a 65 20 6f 66 20 |current size of | 000002e0 72 65 73 69 7a 61 62 6c 65 20 62 6c 6f 63 6b 0d |resizable block.| 000002f0 00 22 05 3b 0d 00 23 28 3b 20 45 78 69 74 20 20 |.".;..#(; Exit | 00000300 72 30 3d 3e 20 42 61 73 65 20 6f 66 20 72 65 73 |r0=> Base of res| 00000310 69 7a 61 62 6c 65 20 62 6c 6f 63 6b 0d 00 24 28 |izable block..$(| 00000320 3b 20 20 20 20 20 20 20 72 31 20 3d 20 73 69 7a |; r1 = siz| 00000330 65 20 6f 66 20 72 65 73 69 7a 61 62 6c 65 20 62 |e of resizable b| 00000340 6c 6f 63 6b 0d 00 25 47 3b 20 20 20 20 20 20 20 |lock..%G; | 00000350 72 32 3d 3e 20 62 61 73 65 20 6f 66 20 66 69 78 |r2=> base of fix| 00000360 65 64 20 62 6c 6f 63 6b 20 28 6f 72 20 2d 31 20 |ed block (or -1 | 00000370 69 66 20 74 68 65 72 65 20 69 73 20 6e 6f 20 66 |if there is no f| 00000380 69 78 65 64 20 62 6c 6f 63 6b 29 0d 00 26 4d 3b |ixed block)..&M;| 00000390 20 20 20 20 20 20 20 72 33 20 3d 20 73 69 7a 65 | r3 = size| 000003a0 20 6f 66 20 66 69 78 65 64 20 62 6c 6f 63 6b 20 | of fixed block | 000003b0 28 6f 72 20 73 69 7a 65 20 6f 66 20 64 6f 63 75 |(or size of docu| 000003c0 6d 65 6e 74 20 69 6e 20 72 65 73 69 7a 61 62 6c |ment in resizabl| 000003d0 65 20 62 6c 6f 63 6b 29 0d 00 27 05 3b 0d 00 28 |e block)..'.;..(| 000003e0 4e 3b 20 4e 6f 74 65 20 74 68 61 74 20 72 33 20 |N; Note that r3 | 000003f0 69 73 20 6f 6e 6c 79 20 65 78 70 65 63 74 65 64 |is only expected| 00000400 20 74 6f 20 62 65 20 63 6f 72 72 65 63 74 20 74 | to be correct t| 00000410 68 65 20 66 69 72 73 74 20 74 69 6d 65 20 74 68 |he first time th| 00000420 69 73 20 63 61 6c 6c 62 61 63 6b 0d 00 29 4e 3b |is callback..)N;| 00000430 20 69 73 20 6d 61 64 65 20 77 68 65 6e 20 63 61 | is made when ca| 00000440 6c 6c 65 64 20 66 72 6f 6d 20 74 68 65 20 46 69 |lled from the Fi| 00000450 6c 65 49 6e 69 74 20 72 6f 75 74 69 6e 65 20 2d |leInit routine -| 00000460 20 61 66 74 65 72 20 74 68 61 74 2c 20 74 68 65 | after that, the| 00000470 20 72 65 6e 64 65 72 65 72 0d 00 2a 4c 3b 20 6d | renderer..*L; m| 00000480 6f 64 75 6c 65 20 77 69 6c 6c 20 6b 65 65 70 20 |odule will keep | 00000490 74 72 61 63 6b 20 69 66 20 74 68 65 20 64 6f 63 |track if the doc| 000004a0 75 6d 65 6e 74 20 67 72 6f 77 73 20 6f 72 20 73 |ument grows or s| 000004b0 68 72 69 6e 6b 73 20 69 6e 20 73 69 7a 65 20 28 |hrinks in size (| 000004c0 61 73 20 69 74 0d 00 2b 1e 3b 20 6d 69 67 68 74 |as it..+.; might| 000004d0 20 64 75 72 69 6e 67 20 63 6f 6e 76 65 72 73 69 | during conversi| 000004e0 6f 6e 29 0d 00 2c 04 0d 00 2d 12 2e 4d 65 6d 6f |on)..,...-..Memo| 000004f0 72 79 4d 61 6e 61 67 65 72 0d 00 2e 25 20 20 20 |ryManager...% | 00000500 20 20 20 20 20 73 74 6d 66 64 20 20 20 72 31 33 | stmfd r13| 00000510 21 2c 7b 72 34 2d 72 31 32 2c 72 31 34 7d 0d 00 |!,{r4-r12,r14}..| 00000520 2f 04 0d 00 30 1b 20 20 20 20 20 20 20 20 63 6d |/...0. cm| 00000530 6e 20 20 20 20 20 72 30 2c 23 94 2d 31 0d 00 31 |n r0,#.-1..1| 00000540 1f 20 20 20 20 20 20 20 20 62 65 71 20 20 20 20 |. beq | 00000550 20 72 65 74 75 72 6e 73 69 7a 65 73 0d 00 32 04 | returnsizes..2.| 00000560 0d 00 33 4f 3b 20 54 68 65 20 72 65 6e 64 65 72 |..3O; The render| 00000570 65 72 20 68 61 73 20 72 65 71 75 65 73 74 65 64 |er has requested| 00000580 20 74 68 61 74 20 74 68 65 20 72 65 73 69 7a 61 | that the resiza| 00000590 62 6c 65 20 62 6c 6f 63 6b 20 62 65 20 72 65 73 |ble block be res| 000005a0 69 7a 65 64 2c 20 73 6f 20 77 65 20 73 65 65 0d |ized, so we see.| 000005b0 00 34 50 3b 20 77 68 65 72 65 20 74 68 61 74 20 |.4P; where that | 000005c0 77 6f 75 6c 64 20 63 68 61 6e 67 65 20 74 68 65 |would change the| 000005d0 20 73 6c 6f 74 2c 20 61 6e 64 20 63 61 6c 6c 20 | slot, and call | 000005e0 74 68 65 20 65 78 74 65 6e 64 20 73 6c 6f 74 20 |the extend slot | 000005f0 63 6f 64 65 20 61 73 20 6e 65 65 64 65 64 2e 0d |code as needed..| 00000600 00 35 06 3b 20 0d 00 36 49 20 20 20 20 20 20 20 |.5.; ..6I | 00000610 20 6c 64 72 20 20 20 20 20 72 31 2c 56 61 72 53 | ldr r1,VarS| 00000620 69 7a 65 20 20 20 20 20 20 20 20 20 20 20 20 20 |ize | 00000630 20 3b 20 47 65 74 20 6f 6c 64 20 76 61 72 69 61 | ; Get old varia| 00000640 62 6c 65 20 62 6c 6f 63 6b 20 73 69 7a 65 0d 00 |ble block size..| 00000650 37 21 20 20 20 20 20 20 20 20 73 74 72 20 20 20 |7! str | 00000660 20 20 72 31 2c 4f 6c 64 56 61 72 53 69 7a 65 0d | r1,OldVarSize.| 00000670 00 38 4e 20 20 20 20 20 20 20 20 73 74 72 20 20 |.8N str | 00000680 20 20 20 72 30 2c 56 61 72 53 69 7a 65 20 20 20 | r0,VarSize | 00000690 20 20 20 20 20 20 20 20 20 20 20 3b 20 53 74 6f | ; Sto| 000006a0 72 65 20 6e 65 77 20 73 69 7a 65 20 6f 66 20 76 |re new size of v| 000006b0 61 72 69 61 62 6c 65 20 62 6c 6f 63 6b 0d 00 39 |ariable block..9| 000006c0 1e 20 20 20 20 20 20 20 20 6c 64 72 20 20 20 20 |. ldr | 000006d0 20 72 31 2c 56 61 72 42 61 73 65 0d 00 3a 1c 20 | r1,VarBase..:. | 000006e0 20 20 20 20 20 20 20 61 64 64 20 20 20 20 20 72 | add r| 000006f0 30 2c 72 30 2c 72 31 0d 00 3b 04 0d 00 3c 31 3b |0,r0,r1..;...<1;| 00000700 20 48 61 76 65 20 77 65 20 65 78 74 65 6e 64 65 | Have we extende| 00000710 64 20 62 65 79 6f 6e 64 20 74 68 65 20 63 6c 61 |d beyond the cla| 00000720 69 6d 65 64 20 6d 65 6d 6f 72 79 3f 0d 00 3d 04 |imed memory?..=.| 00000730 0d 00 3e 4f 20 20 20 20 20 20 20 20 6c 64 72 20 |..>O ldr | 00000740 20 20 20 20 72 31 2c 54 6f 70 4f 66 53 6c 6f 74 | r1,TopOfSlot| 00000750 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 74 6f | ; to| 00000760 75 67 68 20 27 63 6f 73 20 49 27 6d 20 6e 6f 74 |ugh 'cos I'm not| 00000770 20 61 6c 6c 6f 63 61 74 69 6e 67 20 61 6e 79 0d | allocating any.| 00000780 00 3f 35 20 20 20 20 20 20 20 20 63 6d 70 20 20 |.?5 cmp | 00000790 20 20 20 72 30 2c 72 31 20 20 20 20 20 20 20 20 | r0,r1 | 000007a0 20 20 20 20 20 20 20 20 20 20 20 3b 20 6d 6f 72 | ; mor| 000007b0 65 2e 2e 2e 0d 00 40 3b 20 20 20 20 20 20 20 20 |e.....@; | 000007c0 62 67 74 20 20 20 20 20 67 72 6f 77 73 6c 6f 74 |bgt growslot| 000007d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000007e0 3b 20 6f 6b 2c 20 77 65 27 6c 6c 20 74 72 79 0d |; ok, we'll try.| 000007f0 00 41 0c 20 20 20 20 20 20 20 20 0d 00 42 10 2e |.A. ..B..| 00000800 72 65 74 75 72 6e 73 69 7a 65 73 0d 00 43 1e 20 |returnsizes..C. | 00000810 20 20 20 20 20 20 20 6c 64 72 20 20 20 20 20 72 | ldr r| 00000820 30 2c 56 61 72 42 61 73 65 0d 00 44 1e 20 20 20 |0,VarBase..D. | 00000830 20 20 20 20 20 6c 64 72 20 20 20 20 20 72 31 2c | ldr r1,| 00000840 56 61 72 53 69 7a 65 0d 00 45 20 20 20 20 20 20 |VarSize..E | 00000850 20 20 20 6c 64 72 20 20 20 20 20 72 32 2c 46 69 | ldr r2,Fi| 00000860 78 65 64 42 61 73 65 0d 00 46 20 20 20 20 20 20 |xedBase..F | 00000870 20 20 20 6c 64 72 20 20 20 20 20 72 33 2c 46 69 | ldr r3,Fi| 00000880 78 65 64 53 69 7a 65 0d 00 47 25 20 20 20 20 20 |xedSize..G% | 00000890 20 20 20 6c 64 6d 66 64 20 20 20 72 31 33 21 2c | ldmfd r13!,| 000008a0 7b 72 34 2d 72 31 32 2c 72 31 34 7d 0d 00 48 20 |{r4-r12,r14}..H | 000008b0 20 20 20 20 20 20 20 20 62 69 63 73 20 20 20 20 | bics | 000008c0 70 63 2c 72 31 34 2c 23 53 52 5f 56 0d 00 49 04 |pc,r14,#SR_V..I.| 000008d0 0d 00 4a 0d 2e 67 72 6f 77 73 6c 6f 74 0d 00 4b |..J..growslot..K| 000008e0 1e 20 20 20 20 20 20 20 20 6c 64 72 20 20 20 20 |. ldr | 000008f0 20 72 30 2c 56 61 72 53 69 7a 65 0d 00 4c 21 20 | r0,VarSize..L! | 00000900 20 20 20 20 20 20 20 6c 64 72 20 20 20 20 20 72 | ldr r| 00000910 31 2c 4f 6c 64 56 61 72 53 69 7a 65 0d 00 4d 47 |1,OldVarSize..MG| 00000920 20 20 20 20 20 20 20 20 73 75 62 20 20 20 20 20 | sub | 00000930 72 33 2c 72 30 2c 72 31 20 20 20 20 20 20 20 20 |r3,r0,r1 | 00000940 20 20 20 20 20 20 20 20 3b 20 43 61 6c 63 75 6c | ; Calcul| 00000950 61 74 65 20 63 68 61 6e 67 65 20 72 65 71 75 69 |ate change requi| 00000960 72 65 64 0d 00 4e 1e 20 20 20 20 20 20 20 20 6c |red..N. l| 00000970 64 72 20 20 20 20 20 72 30 2c 56 61 72 42 61 73 |dr r0,VarBas| 00000980 65 0d 00 4f 41 20 20 20 20 20 20 20 20 62 6c 20 |e..OA bl | 00000990 20 20 20 20 20 65 63 6f 64 65 20 20 20 20 20 20 | ecode | 000009a0 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 6a | ; j| 000009b0 75 6d 70 20 74 6f 20 65 78 74 65 6e 64 20 63 6f |ump to extend co| 000009c0 64 65 0d 00 50 44 20 20 20 20 20 20 20 20 73 74 |de..PD st| 000009d0 72 20 20 20 20 20 72 32 2c 56 61 72 42 61 73 65 |r r2,VarBase| 000009e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 | ; | 000009f0 73 74 6f 72 65 20 6e 65 77 20 62 61 73 65 20 6f |store new base o| 00000a00 66 20 73 6c 6f 74 0d 00 51 38 20 20 20 20 20 20 |f slot..Q8 | 00000a10 20 20 62 20 20 20 20 20 20 20 72 65 74 75 72 6e | b return| 00000a20 73 69 7a 65 73 20 20 20 20 20 20 20 20 20 20 20 |sizes | 00000a30 20 20 3b 20 61 6e 64 20 72 65 74 75 72 6e 0d 00 | ; and return..| 00000a40 52 04 0d 00 53 0d 2e 65 72 72 62 6c 6f 63 6b 0d |R...S..errblock.| 00000a50 00 54 15 20 20 20 20 20 20 20 20 65 71 75 64 20 |.T. equd | 00000a60 20 20 20 31 0d 00 55 26 20 20 20 20 20 20 20 20 | 1..U& | 00000a70 65 71 75 73 20 20 20 20 22 4f 75 74 20 6f 66 20 |equs "Out of | 00000a80 6d 65 6d 6f 72 79 22 2b bd 30 0d 00 56 11 20 20 |memory"+.0..V. | 00000a90 20 20 20 20 20 20 61 6c 69 67 6e 0d 00 57 04 0d | align..W..| 00000aa0 00 58 3d 2e 56 61 72 42 61 73 65 20 20 20 20 20 |.X=.VarBase | 00000ab0 20 20 20 65 71 75 64 20 20 20 20 30 20 20 20 20 | equd 0 | 00000ac0 20 20 20 3b 20 42 61 73 65 20 6f 66 20 72 65 73 | ; Base of res| 00000ad0 69 7a 61 62 6c 65 20 62 6c 6f 63 6b 0d 00 59 3d |izable block..Y=| 00000ae0 2e 56 61 72 53 69 7a 65 20 20 20 20 20 20 20 20 |.VarSize | 00000af0 65 71 75 64 20 20 20 20 30 20 20 20 20 20 20 20 |equd 0 | 00000b00 3b 20 53 69 7a 65 20 6f 66 20 72 65 73 69 7a 61 |; Size of resiza| 00000b10 62 6c 65 20 62 6c 6f 63 6b 0d 00 5a 39 2e 46 69 |ble block..Z9.Fi| 00000b20 78 65 64 42 61 73 65 20 20 20 20 20 20 65 71 75 |xedBase equ| 00000b30 64 20 20 20 20 30 20 20 20 20 20 20 20 3b 20 42 |d 0 ; B| 00000b40 61 73 65 20 6f 66 20 66 69 78 65 64 20 62 6c 6f |ase of fixed blo| 00000b50 63 6b 0d 00 5b 39 2e 46 69 78 65 64 53 69 7a 65 |ck..[9.FixedSize| 00000b60 20 20 20 20 20 20 65 71 75 64 20 20 20 20 30 20 | equd 0 | 00000b70 20 20 20 20 20 20 3b 20 53 69 7a 65 20 6f 66 20 | ; Size of | 00000b80 66 69 78 65 64 20 62 6c 6f 63 6b 0d 00 5c 2a 2e |fixed block..\*.| 00000b90 50 61 67 65 53 69 7a 65 20 20 20 20 20 20 20 65 |PageSize e| 00000ba0 71 75 64 20 20 20 20 4d 65 6d 4d 61 70 50 61 67 |qud MemMapPag| 00000bb0 65 53 69 7a 65 0d 00 5d 46 2e 4f 6c 64 56 61 72 |eSize..]F.OldVar| 00000bc0 53 69 7a 65 20 20 20 20 20 65 71 75 64 20 20 20 |Size equd | 00000bd0 20 30 20 20 20 20 20 20 20 3b 20 54 65 6d 70 20 | 0 ; Temp | 00000be0 73 74 6f 72 65 20 66 6f 72 20 76 61 72 69 61 62 |store for variab| 00000bf0 6c 65 20 64 6f 63 20 73 69 7a 65 0d 00 5e 3b 2e |le doc size..^;.| 00000c00 54 6f 70 4f 66 53 6c 6f 74 20 20 20 20 20 20 65 |TopOfSlot e| 00000c10 71 75 64 20 20 20 20 30 20 20 20 20 20 20 20 3b |qud 0 ;| 00000c20 20 54 6f 70 20 6f 66 20 76 61 72 69 61 62 6c 65 | Top of variable| 00000c30 20 62 6c 6f 63 6b 0d 00 5f 04 0d 00 60 11 3b 20 | block.._...`.; | 00000c40 50 6c 61 74 65 43 6f 6c 6f 75 72 0d 00 61 05 3b |PlateColour..a.;| 00000c50 0d 00 62 37 3b 20 53 69 6e 63 65 20 77 65 27 72 |..b7; Since we'r| 00000c60 65 20 6e 6f 74 20 73 65 70 61 72 61 74 69 6e 67 |e not separating| 00000c70 2c 20 77 65 20 63 61 6e 20 6a 75 73 74 20 72 65 |, we can just re| 00000c80 74 75 72 6e 20 43 43 0d 00 63 04 0d 00 64 10 2e |turn CC..c...d..| 00000c90 50 6c 61 74 65 43 6f 6c 6f 75 72 0d 00 65 20 20 |PlateColour..e | 00000ca0 20 20 20 20 20 20 20 62 69 63 73 20 20 20 20 70 | bics p| 00000cb0 63 2c 72 31 34 2c 23 53 52 5f 43 0d 00 66 04 0d |c,r14,#SR_C..f..| 00000cc0 00 67 04 0d 00 68 11 2e 43 61 6c 6c 46 69 6c 65 |.g...h..CallFile| 00000cd0 49 6e 69 74 0d 00 69 25 20 20 20 20 20 20 20 20 |Init..i% | 00000ce0 73 74 6d 66 64 20 20 20 72 31 33 21 2c 7b 72 30 |stmfd r13!,{r0| 00000cf0 2d 72 31 32 2c 72 31 34 7d 0d 00 6a 04 0d 00 6b |-r12,r14}..j...k| 00000d00 2e 20 20 20 20 20 20 20 20 73 77 69 20 20 20 20 |. swi | 00000d10 20 22 41 57 52 65 6e 64 65 72 5f 46 69 6c 65 49 | "AWRender_FileI| 00000d20 6e 69 74 41 64 64 72 65 73 73 22 0d 00 6c 1a 20 |nitAddress"..l. | 00000d30 20 20 20 20 20 20 20 6d 6f 76 20 20 20 20 20 72 | mov r| 00000d40 31 32 2c 72 31 0d 00 6d 48 20 20 20 20 20 20 20 |12,r1..mH | 00000d50 20 6d 6f 76 20 20 20 20 20 72 31 30 2c 72 30 20 | mov r10,r0 | 00000d60 20 20 20 20 20 20 20 20 20 20 20 3b 20 73 61 76 | ; sav| 00000d70 65 20 61 64 64 72 65 73 73 20 6f 66 20 66 69 6c |e address of fil| 00000d80 65 69 6e 69 74 20 72 6f 75 74 69 6e 65 0d 00 6e |einit routine..n| 00000d90 04 0d 00 6f 1e 20 20 20 20 20 20 20 20 6c 64 72 |...o. ldr| 00000da0 20 20 20 20 20 72 30 2c 56 61 72 42 61 73 65 0d | r0,VarBase.| 00000db0 00 70 26 20 20 20 20 20 20 20 20 61 64 72 20 20 |.p& adr | 00000dc0 20 20 20 72 31 2c 43 61 6c 6c 62 61 63 6b 52 6f | r1,CallbackRo| 00000dd0 75 74 69 6e 65 0d 00 71 20 20 20 20 20 20 20 20 |utine..q | 00000de0 20 6c 64 72 20 20 20 20 20 72 32 2c 46 69 78 65 | ldr r2,Fixe| 00000df0 64 53 69 7a 65 0d 00 72 04 0d 00 73 1a 20 20 20 |dSize..r...s. | 00000e00 20 20 20 20 20 6d 6f 76 20 20 20 20 20 72 31 34 | mov r14| 00000e10 2c 70 63 0d 00 74 40 20 20 20 20 20 20 20 20 6d |,pc..t@ m| 00000e20 6f 76 20 20 20 20 20 70 63 2c 72 31 30 20 20 20 |ov pc,r10 | 00000e30 20 20 20 20 20 20 20 20 20 3b 20 6a 75 6d 70 20 | ; jump | 00000e40 74 6f 20 66 69 6c 65 69 6e 69 74 20 72 6f 75 74 |to fileinit rout| 00000e50 69 6e 65 0d 00 75 04 0d 00 76 2d 3b 20 52 65 74 |ine..u...v-; Ret| 00000e60 75 72 6e 65 64 20 66 72 6f 6d 20 72 6f 75 74 69 |urned from routi| 00000e70 6e 65 2c 20 63 68 65 63 6b 20 65 72 72 6f 72 20 |ne, check error | 00000e80 66 6c 61 67 0d 00 77 04 0d 00 78 1b 20 20 20 20 |flag..w...x. | 00000e90 20 20 20 20 6d 76 6e 76 63 20 20 20 72 31 2c 23 | mvnvc r1,#| 00000ea0 ac 2d 31 0d 00 79 19 20 20 20 20 20 20 20 20 6d |.-1..y. m| 00000eb0 6f 76 76 73 20 20 20 72 31 2c 72 30 0d 00 7a 48 |ovvs r1,r0..zH| 00000ec0 20 20 20 20 20 20 20 20 73 74 72 20 20 20 20 20 | str | 00000ed0 72 31 2c 4f 6c 64 56 61 72 53 69 7a 65 20 20 20 |r1,OldVarSize | 00000ee0 20 20 20 20 20 20 20 20 3b 20 52 65 74 75 72 6e | ; Return| 00000ef0 20 2d 31 20 6f 72 20 65 72 72 6f 72 20 70 6f 69 | -1 or error poi| 00000f00 6e 74 65 72 0d 00 7b 04 0d 00 7c 44 20 20 20 20 |nter..{...|D | 00000f10 20 20 20 20 73 74 72 76 63 20 20 20 72 30 2c 46 | strvc r0,F| 00000f20 69 78 65 64 53 69 7a 65 20 20 20 20 20 20 20 20 |ixedSize | 00000f30 20 20 20 20 3b 20 53 74 6f 72 65 20 72 65 61 6c | ; Store real| 00000f40 20 73 69 7a 65 20 6f 66 20 64 6f 63 0d 00 7d 04 | size of doc..}.| 00000f50 0d 00 7e 25 20 20 20 20 20 20 20 20 6c 64 6d 66 |..~% ldmf| 00000f60 64 20 20 20 72 31 33 21 2c 7b 72 30 2d 72 31 32 |d r13!,{r0-r12| 00000f70 2c 70 63 7d 5e 0d 00 7f 04 0d 00 80 13 2e 52 65 |,pc}^.........Re| 00000f80 6e 64 65 72 41 72 74 57 6f 72 6b 73 0d 00 81 25 |nderArtWorks...%| 00000f90 20 20 20 20 20 20 20 20 73 74 6d 66 64 20 20 20 | stmfd | 00000fa0 72 31 33 21 2c 7b 72 30 2d 72 31 32 2c 72 31 34 |r13!,{r0-r12,r14| 00000fb0 7d 0d 00 82 04 0d 00 83 2c 20 20 20 20 20 20 20 |}......., | 00000fc0 20 73 77 69 20 20 20 20 20 22 41 57 52 65 6e 64 | swi "AWRend| 00000fd0 65 72 5f 52 65 6e 64 65 72 41 64 64 72 65 73 73 |er_RenderAddress| 00000fe0 22 0d 00 84 1a 20 20 20 20 20 20 20 20 6d 6f 76 |".... mov| 00000ff0 20 20 20 20 20 72 31 32 2c 72 31 0d 00 85 1a 20 | r12,r1.... | 00001000 20 20 20 20 20 20 20 6d 6f 76 20 20 20 20 20 72 | mov r| 00001010 31 30 2c 72 30 0d 00 86 04 0d 00 87 39 20 20 20 |10,r0.......9 | 00001020 20 20 20 20 20 6c 64 72 20 20 20 20 20 72 30 2c | ldr r0,| 00001030 5b 72 31 33 5d 20 20 20 20 20 20 20 20 20 20 20 |[r13] | 00001040 20 20 20 20 20 3b 20 52 65 74 72 69 65 76 65 20 | ; Retrieve | 00001050 72 30 0d 00 88 43 20 20 20 20 20 20 20 20 6c 64 |r0...C ld| 00001060 72 20 20 20 20 20 72 31 2c 5b 72 31 33 2c 23 34 |r r1,[r13,#4| 00001070 5d 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 |] ; | 00001080 61 6e 64 20 72 31 20 66 72 6f 6d 20 74 68 65 20 |and r1 from the | 00001090 73 74 61 63 6b 0d 00 89 04 0d 00 8a 1a 20 20 20 |stack........ | 000010a0 20 20 20 20 20 6d 6f 76 20 20 20 20 20 72 31 34 | mov r14| 000010b0 2c 70 63 0d 00 8b 1a 20 20 20 20 20 20 20 20 6d |,pc.... m| 000010c0 6f 76 20 20 20 20 20 70 63 2c 72 31 30 0d 00 8c |ov pc,r10...| 000010d0 04 0d 00 8d 25 20 20 20 20 20 20 20 20 6c 64 6d |....% ldm| 000010e0 66 64 20 20 20 72 31 33 21 2c 7b 72 30 2d 72 31 |fd r13!,{r0-r1| 000010f0 32 2c 70 63 7d 5e 0d 00 8e 04 0d 00 8f 05 5d 0d |2,pc}^........].| 00001100 00 90 0a ed 20 50 41 53 53 0d 00 91 04 0d 00 92 |.... PASS.......| 00001110 1a f4 20 53 65 74 20 73 68 65 6c 6c 20 66 6c 61 |.. Set shell fla| 00001120 67 20 62 69 74 2e 2e 0d 00 93 1e 5f 55 25 21 31 |g bit......_U%!1| 00001130 30 30 20 3d 20 5f 55 25 21 31 30 30 20 84 20 31 |00 = _U%!100 . 1| 00001140 20 3c 3c 20 38 0d 00 94 04 0d 00 95 49 f4 20 53 | << 8.......I. S| 00001150 65 74 20 75 70 20 72 65 6e 64 65 72 65 72 20 72 |et up renderer r| 00001160 65 64 72 61 77 20 62 6c 6f 63 6b 2c 20 63 6f 6e |edraw block, con| 00001170 74 61 69 6e 73 20 70 6f 69 6e 74 65 72 73 20 74 |tains pointers t| 00001180 6f 20 62 6c 6f 63 6b 73 20 6f 66 20 6d 65 6d 6f |o blocks of memo| 00001190 72 79 0d 00 96 22 f4 20 75 73 65 64 20 62 79 20 |ry...". used by | 000011a0 74 68 65 20 72 65 64 72 61 77 20 72 6f 75 74 69 |the redraw routi| 000011b0 6e 65 2e 2e 0d 00 97 47 61 77 5f 62 6c 6b 25 20 |ne.....Gaw_blk% | 000011c0 20 20 20 3d 20 a4 73 68 65 6c 6c 5f 48 65 61 70 | = .shell_Heap| 000011d0 42 6c 6f 63 6b 46 65 74 63 68 28 31 36 29 20 20 |BlockFetch(16) | 000011e0 20 20 3a f4 20 53 74 6f 72 65 20 61 64 64 72 65 | :. Store addre| 000011f0 73 73 20 6f 66 20 62 6c 6f 63 6b 0d 00 98 42 61 |ss of block...Ba| 00001200 77 5f 62 6c 6b 25 21 30 30 20 3d 20 a4 73 68 65 |w_blk%!00 = .she| 00001210 6c 6c 5f 48 65 61 70 42 6c 6f 63 6b 46 65 74 63 |ll_HeapBlockFetc| 00001220 68 28 32 35 36 29 20 20 20 3a f4 20 56 64 75 56 |h(256) :. VduV| 00001230 61 72 73 20 68 65 61 70 62 6c 6f 63 6b 0d 00 99 |ars heapblock...| 00001240 42 61 77 5f 62 6c 6b 25 21 30 34 20 3d 20 a4 73 |Baw_blk%!04 = .s| 00001250 68 65 6c 6c 5f 48 65 61 70 42 6c 6f 63 6b 46 65 |hell_HeapBlockFe| 00001260 74 63 68 28 36 20 2a 20 34 29 20 3a f4 20 4d 61 |tch(6 * 4) :. Ma| 00001270 74 72 69 78 20 20 68 65 61 70 62 6c 6f 63 6b 0d |trix heapblock.| 00001280 00 9a 42 61 77 5f 62 6c 6b 25 21 30 38 20 3d 20 |..Baw_blk%!08 = | 00001290 a4 73 68 65 6c 6c 5f 48 65 61 70 42 6c 6f 63 6b |.shell_HeapBlock| 000012a0 46 65 74 63 68 28 33 36 29 20 20 20 20 3a f4 20 |Fetch(36) :. | 000012b0 49 6e 66 6f 20 20 20 20 68 65 61 70 62 6c 6f 63 |Info heapbloc| 000012c0 6b 0d 00 9b 42 61 77 5f 62 6c 6b 25 21 31 32 20 |k...Baw_blk%!12 | 000012d0 3d 20 a4 73 68 65 6c 6c 5f 48 65 61 70 42 6c 6f |= .shell_HeapBlo| 000012e0 63 6b 46 65 74 63 68 28 26 32 30 30 30 29 20 3a |ckFetch(&2000) :| 000012f0 f4 20 57 6f 72 6b 42 6c 6b 20 68 65 61 70 62 6c |. WorkBlk heapbl| 00001300 6f 63 6b 0d 00 9c 4c 61 77 5f 62 6c 6b 25 21 31 |ock...Law_blk%!1| 00001310 36 20 3d 20 43 61 6c 6c 62 61 63 6b 52 6f 75 74 |6 = CallbackRout| 00001320 69 6e 65 20 20 20 20 20 20 20 20 20 20 20 20 20 |ine | 00001330 20 20 3a f4 20 41 64 64 72 65 73 73 20 6f 66 20 | :. Address of | 00001340 43 61 6c 6c 62 61 63 6b 52 6f 75 74 69 6e 65 0d |CallbackRoutine.| 00001350 00 9d 14 5f 55 25 21 34 38 20 3d 20 61 77 5f 62 |..._U%!48 = aw_b| 00001360 6c 6b 25 0d 00 9e 04 0d 00 9f 05 e1 0d 00 a0 05 |lk%.............| 00001370 3a 0d 00 a1 04 0d 00 a2 1f 2a 7c 73 74 6f 70 20 |:........*|stop | 00001380 50 52 4f 43 73 68 65 6c 6c 5f 41 57 41 73 73 65 |PROCshell_AWAsse| 00001390 6d 62 6c 65 0d 00 a3 04 0d 00 a4 24 2a 7c 73 74 |mble.......$*|st| 000013a0 61 72 74 20 50 52 4f 43 73 68 65 6c 6c 5f 41 57 |art PROCshell_AW| 000013b0 43 61 6c 6c 46 69 6c 65 49 6e 69 74 0d 00 a5 22 |CallFileInit..."| 000013c0 2a 7c 21 50 52 4f 43 73 68 65 6c 6c 5f 41 57 43 |*|!PROCshell_AWC| 000013d0 61 6c 6c 46 69 6c 65 49 6e 69 74 28 20 29 0d 00 |allFileInit( )..| 000013e0 a6 33 dd 20 f2 73 68 65 6c 6c 5f 41 57 43 61 6c |.3. .shell_AWCal| 000013f0 6c 46 69 6c 65 49 6e 69 74 28 76 61 72 5f 62 75 |lFileInit(var_bu| 00001400 66 66 25 2c f8 20 44 6f 63 4c 65 6e 67 74 68 25 |ff%,. DocLength%| 00001410 29 0d 00 a7 04 0d 00 a8 1a 21 56 61 72 42 61 73 |)........!VarBas| 00001420 65 20 20 20 3d 20 76 61 72 5f 62 75 66 66 25 0d |e = var_buff%.| 00001430 00 a9 1b 21 56 61 72 53 69 7a 65 20 20 20 3d 20 |...!VarSize = | 00001440 44 6f 63 4c 65 6e 67 74 68 25 0d 00 aa 13 21 46 |DocLength%....!F| 00001450 69 78 65 64 42 61 73 65 20 3d 20 2d 31 0d 00 ab |ixedBase = -1...| 00001460 1b 21 46 69 78 65 64 53 69 7a 65 20 3d 20 44 6f |.!FixedSize = Do| 00001470 63 4c 65 6e 67 74 68 25 0d 00 ac 12 21 54 6f 70 |cLength%....!Top| 00001480 4f 66 53 6c 6f 74 20 3d 20 30 0d 00 ad 04 0d 00 |OfSlot = 0......| 00001490 ae 12 d6 20 43 61 6c 6c 46 69 6c 65 49 6e 69 74 |... CallFileInit| 000014a0 0d 00 af 04 0d 00 b0 17 e7 20 21 4f 6c 64 56 61 |......... !OldVa| 000014b0 72 53 69 7a 65 3c 3e 2d 31 20 8c 0d 00 b1 7b 20 |rSize<>-1 ....{ | 000014c0 20 85 20 31 2c 22 54 68 69 73 20 41 72 74 57 6f | . 1,"This ArtWo| 000014d0 72 6b 73 20 66 69 6c 65 20 76 65 72 73 69 6f 6e |rks file version| 000014e0 20 69 73 20 74 6f 6f 20 6f 6c 64 20 74 6f 20 62 | is too old to b| 000014f0 65 20 72 65 6e 64 65 72 65 64 2e 20 44 72 6f 70 |e rendered. Drop| 00001500 20 69 74 20 69 6e 74 6f 20 61 20 63 75 72 72 65 | it into a curre| 00001510 6e 74 20 41 72 74 57 6f 72 6b 73 20 61 6e 64 20 |nt ArtWorks and | 00001520 73 61 76 65 20 69 74 20 6f 75 74 20 74 6f 20 75 |save it out to u| 00001530 73 65 20 69 74 22 0d 00 b2 05 cd 0d 00 b3 04 0d |se it"..........| 00001540 00 b4 49 f4 20 4e 6f 77 20 73 65 74 20 75 70 20 |..I. Now set up | 00001550 74 68 65 20 76 61 72 69 61 62 6c 65 73 20 66 6f |the variables fo| 00001560 72 20 74 68 65 20 73 69 7a 65 20 6f 66 20 74 68 |r the size of th| 00001570 65 20 64 6f 63 20 61 6e 64 20 76 61 72 69 61 62 |e doc and variab| 00001580 6c 65 20 73 70 61 63 65 0d 00 b5 04 0d 00 b6 1b |le space........| 00001590 44 6f 63 4c 65 6e 67 74 68 25 20 3d 20 21 46 69 |DocLength% = !Fi| 000015a0 78 65 64 53 69 7a 65 0d 00 b7 04 0d 00 b8 05 e1 |xedSize.........| 000015b0 0d 00 b9 05 3a 0d 00 ba 23 2a 7c 73 74 6f 70 20 |....:...#*|stop | 000015c0 50 52 4f 43 73 68 65 6c 6c 5f 41 57 43 61 6c 6c |PROCshell_AWCall| 000015d0 46 69 6c 65 49 6e 69 74 0d 00 bb 04 0d 00 bc 21 |FileInit.......!| 000015e0 2a 7c 73 74 61 72 74 20 50 52 4f 43 73 68 65 6c |*|start PROCshel| 000015f0 6c 5f 41 57 52 65 6e 64 65 72 44 6f 63 0d 00 bd |l_AWRenderDoc...| 00001600 1f 2a 7c 21 50 52 4f 43 73 68 65 6c 6c 5f 41 57 |.*|!PROCshell_AW| 00001610 52 65 6e 64 65 72 44 6f 63 28 20 29 0d 00 be 1c |RenderDoc( )....| 00001620 dd 20 f2 73 68 65 6c 6c 5f 41 57 52 65 6e 64 65 |. .shell_AWRende| 00001630 72 44 6f 63 28 77 25 29 0d 00 bf 42 ea 20 4c 6f |rDoc(w%)...B. Lo| 00001640 77 58 25 2c 4c 6f 77 59 25 2c 48 69 67 68 58 25 |wX%,LowY%,HighX%| 00001650 2c 48 69 67 68 59 25 2c 61 77 5f 62 6c 6b 25 2c |,HighY%,aw_blk%,| 00001660 4d 61 74 72 69 78 2c 49 6e 66 6f 42 6c 6f 63 6b |Matrix,InfoBlock| 00001670 25 2c 56 64 75 56 61 72 73 25 0d 00 c0 24 ea 20 |%,VduVars%...$. | 00001680 43 61 6c 6c 62 61 63 6b 52 6f 75 74 69 6e 65 2c |CallbackRoutine,| 00001690 41 57 5f 57 6f 72 6b 42 75 66 66 65 72 25 0d 00 |AW_WorkBuffer%..| 000016a0 c1 04 0d 00 c2 1c 61 77 5f 62 6c 6b 25 20 20 20 |......aw_blk% | 000016b0 20 20 20 20 20 20 3d 20 5f 55 25 21 34 38 0d 00 | = _U%!48..| 000016c0 c3 20 56 64 75 56 61 72 73 25 20 20 20 20 20 20 |. VduVars% | 000016d0 20 20 3d 20 61 77 5f 62 6c 6b 25 21 30 30 0d 00 | = aw_blk%!00..| 000016e0 c4 20 4d 61 74 72 69 78 20 20 20 20 20 20 20 20 |. Matrix | 000016f0 20 20 3d 20 61 77 5f 62 6c 6b 25 21 30 34 0d 00 | = aw_blk%!04..| 00001700 c5 20 49 6e 66 6f 42 6c 6f 63 6b 25 20 20 20 20 |. InfoBlock% | 00001710 20 20 3d 20 61 77 5f 62 6c 6b 25 21 30 38 0d 00 | = aw_blk%!08..| 00001720 c6 20 41 57 5f 57 6f 72 6b 42 75 66 66 65 72 25 |. AW_WorkBuffer%| 00001730 20 20 3d 20 61 77 5f 62 6c 6b 25 21 31 32 0d 00 | = aw_blk%!12..| 00001740 c7 20 43 61 6c 6c 62 61 63 6b 52 6f 75 74 69 6e |. CallbackRoutin| 00001750 65 20 3d 20 61 77 5f 62 6c 6b 25 21 31 36 0d 00 |e = aw_blk%!16..| 00001760 c8 04 0d 00 c9 1d 57 69 6e 64 4f 66 66 58 25 20 |......WindOffX% | 00001770 3d 20 77 25 21 30 34 20 2d 20 77 25 21 32 30 0d |= w%!04 - w%!20.| 00001780 00 ca 1d 57 69 6e 64 4f 66 66 59 25 20 3d 20 77 |...WindOffY% = w| 00001790 25 21 31 36 20 2d 20 77 25 21 32 34 0d 00 cb 04 |%!16 - w%!24....| 000017a0 0d 00 cc 12 4c 6f 77 58 25 20 20 3d 20 77 25 21 |....LowX% = w%!| 000017b0 32 38 0d 00 cd 12 4c 6f 77 59 25 20 20 3d 20 77 |28....LowY% = w| 000017c0 25 21 33 32 0d 00 ce 12 48 69 67 68 58 25 20 3d |%!32....HighX% =| 000017d0 20 77 25 21 33 36 0d 00 cf 12 48 69 67 68 59 25 | w%!36....HighY%| 000017e0 20 3d 20 77 25 21 34 30 0d 00 d0 04 0d 00 d1 38 | = w%!40.......8| 000017f0 f4 20 4e 6f 77 20 73 65 74 20 65 76 65 72 79 74 |. Now set everyt| 00001800 68 69 6e 67 20 75 70 20 74 68 61 74 20 49 20 6e |hing up that I n| 00001810 65 65 64 20 66 6f 72 20 74 68 65 20 72 65 6e 64 |eed for the rend| 00001820 65 72 65 72 0d 00 d2 04 0d 00 d3 1c 49 6e 66 6f |erer........Info| 00001830 42 6c 6f 63 6b 25 21 30 20 3d 20 57 69 6e 64 4f |Block%!0 = WindO| 00001840 66 66 58 25 0d 00 d4 4c 49 6e 66 6f 42 6c 6f 63 |ffX%...LInfoBloc| 00001850 6b 25 21 34 20 3d 20 57 69 6e 64 4f 66 66 59 25 |k%!4 = WindOffY%| 00001860 20 20 20 20 3a f4 20 44 69 74 68 65 72 20 6f 72 | :. Dither or| 00001870 69 67 69 6e 20 69 73 20 61 6c 77 61 79 73 20 61 |igin is always a| 00001880 74 20 64 6f 63 75 6d 65 6e 74 20 28 30 2c 30 29 |t document (0,0)| 00001890 0d 00 d5 04 0d 00 d6 26 f2 73 68 65 6c 6c 5f 41 |.......&.shell_A| 000018a0 57 53 63 72 65 65 6e 54 6f 56 69 72 74 28 4c 6f |WScreenToVirt(Lo| 000018b0 77 58 25 2c 4c 6f 77 59 25 29 0d 00 d7 28 f2 73 |wX%,LowY%)...(.s| 000018c0 68 65 6c 6c 5f 41 57 53 63 72 65 65 6e 54 6f 56 |hell_AWScreenToV| 000018d0 69 72 74 28 48 69 67 68 58 25 2c 48 69 67 68 59 |irt(HighX%,HighY| 000018e0 25 29 0d 00 d8 04 0d 00 d9 19 49 6e 66 6f 42 6c |%)........InfoBl| 000018f0 6f 63 6b 25 21 30 38 20 3d 20 4c 6f 77 58 25 0d |ock%!08 = LowX%.| 00001900 00 da 19 49 6e 66 6f 42 6c 6f 63 6b 25 21 31 32 |...InfoBlock%!12| 00001910 20 3d 20 4c 6f 77 59 25 0d 00 db 1a 49 6e 66 6f | = LowY%....Info| 00001920 42 6c 6f 63 6b 25 21 31 36 20 3d 20 48 69 67 68 |Block%!16 = High| 00001930 58 25 0d 00 dc 1a 49 6e 66 6f 42 6c 6f 63 6b 25 |X%....InfoBlock%| 00001940 21 32 30 20 3d 20 48 69 67 68 59 25 0d 00 dd 04 |!20 = HighY%....| 00001950 0d 00 de 38 f4 20 54 68 65 20 6f 74 68 65 72 20 |...8. The other | 00001960 70 61 72 61 6d 73 20 61 72 65 20 75 6e 6e 65 63 |params are unnec| 00001970 65 73 73 61 72 79 20 77 68 65 6e 20 6e 6f 74 20 |essary when not | 00001980 70 72 69 6e 74 69 6e 67 0d 00 df 04 0d 00 e0 22 |printing......."| 00001990 56 64 75 56 61 72 73 25 21 30 20 20 20 20 20 20 |VduVars%!0 | 000019a0 3d 20 58 45 69 67 65 6e 46 61 63 74 6f 72 0d 00 |= XEigenFactor..| 000019b0 e1 22 56 64 75 56 61 72 73 25 21 34 20 20 20 20 |."VduVars%!4 | 000019c0 20 20 3d 20 59 45 69 67 65 6e 46 61 63 74 6f 72 | = YEigenFactor| 000019d0 0d 00 e2 21 56 64 75 56 61 72 73 25 21 38 20 20 |...!VduVars%!8 | 000019e0 20 20 20 20 3d 20 4c 6f 67 32 4d 6f 64 65 42 50 | = Log2ModeBP| 000019f0 50 0d 00 e3 27 c8 99 22 57 69 6d 70 5f 52 65 61 |P...'.."Wimp_Rea| 00001a00 64 50 61 6c 65 74 74 65 22 2c 2c 56 64 75 56 61 |dPalette",,VduVa| 00001a10 72 73 25 20 2b 20 31 32 0d 00 e4 04 0d 00 e5 17 |rs% + 12........| 00001a20 f4 20 53 65 74 20 75 70 20 74 68 65 20 6d 61 74 |. Set up the mat| 00001a30 72 69 78 0d 00 e6 04 0d 00 e7 2d 21 4d 61 74 72 |rix.......-!Matr| 00001a40 69 78 20 20 20 20 20 20 20 20 20 3d 20 26 31 30 |ix = &10| 00001a50 30 30 30 20 2a 20 57 69 6e 53 63 61 6c 65 46 61 |000 * WinScaleFa| 00001a60 63 74 6f 72 0d 00 e8 17 4d 61 74 72 69 78 21 30 |ctor....Matrix!0| 00001a70 34 20 20 20 20 20 20 20 3d 20 30 0d 00 e9 2e 4d |4 = 0....M| 00001a80 61 74 72 69 78 21 30 38 20 20 20 20 20 20 20 3d |atrix!08 =| 00001a90 20 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | 0 | 00001aa0 20 20 20 20 20 20 20 20 20 0d 00 ea 2d 4d 61 74 | ...-Mat| 00001ab0 72 69 78 21 31 32 20 20 20 20 20 20 20 3d 20 26 |rix!12 = &| 00001ac0 31 30 30 30 30 20 2a 20 57 69 6e 53 63 61 6c 65 |10000 * WinScale| 00001ad0 46 61 63 74 6f 72 0d 00 eb 25 4d 61 74 72 69 78 |Factor...%Matrix| 00001ae0 21 31 36 20 20 20 20 20 20 20 3d 20 32 35 36 20 |!16 = 256 | 00001af0 2a 20 57 69 6e 64 4f 66 66 58 25 0d 00 ec 25 4d |* WindOffX%...%M| 00001b00 61 74 72 69 78 21 32 30 20 20 20 20 20 20 20 3d |atrix!20 =| 00001b10 20 32 35 36 20 2a 20 57 69 6e 64 4f 66 66 59 25 | 256 * WindOffY%| 00001b20 0d 00 ed 04 0d 00 ee 30 f4 20 4e 6f 77 20 73 65 |.......0. Now se| 00001b30 74 20 75 70 20 74 68 65 20 6d 65 6d 6f 72 79 20 |t up the memory | 00001b40 6d 61 6e 61 67 65 6d 65 6e 74 20 76 61 72 69 61 |management varia| 00001b50 62 6c 65 73 0d 00 ef 04 0d 00 f0 20 21 46 69 78 |bles....... !Fix| 00001b60 65 64 42 61 73 65 20 20 20 20 20 20 3d 20 41 57 |edBase = AW| 00001b70 5f 42 75 66 66 65 72 25 0d 00 f1 20 21 46 69 78 |_Buffer%... !Fix| 00001b80 65 64 53 69 7a 65 20 20 20 20 20 20 3d 20 44 6f |edSize = Do| 00001b90 63 4c 65 6e 67 74 68 25 0d 00 f2 24 21 56 61 72 |cLength%...$!Var| 00001ba0 42 61 73 65 20 20 20 20 20 20 20 20 3d 20 41 57 |Base = AW| 00001bb0 5f 57 6f 72 6b 42 75 66 66 65 72 25 0d 00 f3 3a |_WorkBuffer%...:| 00001bc0 21 56 61 72 53 69 7a 65 20 20 20 20 20 20 20 20 |!VarSize | 00001bd0 3d 20 a4 73 68 65 6c 6c 5f 48 65 61 70 42 6c 6f |= .shell_HeapBlo| 00001be0 63 6b 49 6e 66 6f 28 41 57 5f 57 6f 72 6b 42 75 |ckInfo(AW_WorkBu| 00001bf0 66 66 65 72 25 29 0d 00 f4 29 21 54 6f 70 4f 66 |ffer%)...)!TopOf| 00001c00 53 6c 6f 74 20 20 20 20 20 20 3d 20 21 56 61 72 |Slot = !Var| 00001c10 42 61 73 65 20 2b 20 21 56 61 72 53 69 7a 65 0d |Base + !VarSize.| 00001c20 00 f5 04 0d 00 f6 13 41 25 20 3d 20 41 57 5f 42 |.......A% = AW_B| 00001c30 75 66 66 65 72 25 0d 00 f7 13 42 25 20 3d 20 49 |uffer%....B% = I| 00001c40 6e 66 6f 42 6c 6f 63 6b 25 0d 00 f8 0f 43 25 20 |nfoBlock%....C% | 00001c50 3d 20 4d 61 74 72 69 78 0d 00 f9 11 44 25 20 3d |= Matrix....D% =| 00001c60 20 56 64 75 56 61 72 73 25 0d 00 fa 17 45 25 20 | VduVars%....E% | 00001c70 3d 20 41 57 5f 57 6f 72 6b 42 75 66 66 65 72 25 |= AW_WorkBuffer%| 00001c80 0d 00 fb 18 46 25 20 3d 20 43 61 6c 6c 62 61 63 |....F% = Callbac| 00001c90 6b 52 6f 75 74 69 6e 65 0d 00 fc 0c 47 25 20 3d |kRoutine....G% =| 00001ca0 20 31 31 30 0d 00 fd 0a 48 25 20 3d 20 30 0d 00 | 110....H% = 0..| 00001cb0 fe 04 0d 00 ff 14 d6 20 52 65 6e 64 65 72 41 72 |....... RenderAr| 00001cc0 74 57 6f 72 6b 73 0d 01 00 1d 41 57 5f 57 6f 72 |tWorks....AW_Wor| 00001cd0 6b 42 75 66 66 65 72 25 20 3d 20 21 56 61 72 42 |kBuffer% = !VarB| 00001ce0 61 73 65 0d 01 01 04 0d 01 02 05 e1 0d 01 03 05 |ase.............| 00001cf0 3a 0d 01 04 20 2a 7c 73 74 6f 70 20 50 52 4f 43 |:... *|stop PROC| 00001d00 73 68 65 6c 6c 5f 41 57 52 65 6e 64 65 72 44 6f |shell_AWRenderDo| 00001d10 63 0d 01 05 04 0d 01 06 24 2a 7c 73 74 61 72 74 |c.......$*|start| 00001d20 20 50 52 4f 43 73 68 65 6c 6c 5f 41 57 53 63 72 | PROCshell_AWScr| 00001d30 65 65 6e 54 6f 56 69 72 74 0d 01 07 22 2a 7c 21 |eenToVirt..."*|!| 00001d40 50 52 4f 43 73 68 65 6c 6c 5f 41 57 53 63 72 65 |PROCshell_AWScre| 00001d50 65 6e 54 6f 56 69 72 74 28 20 29 0d 01 08 26 dd |enToVirt( )...&.| 00001d60 f2 73 68 65 6c 6c 5f 41 57 53 63 72 65 65 6e 54 |.shell_AWScreenT| 00001d70 6f 56 69 72 74 28 f8 20 78 25 2c 20 f8 20 79 25 |oVirt(. x%, . y%| 00001d80 29 0d 01 09 30 78 25 20 3d 20 28 78 25 20 2d 20 |)...0x% = (x% - | 00001d90 57 69 6e 64 4f 66 66 58 25 29 20 2a 20 32 35 36 |WindOffX%) * 256| 00001da0 20 2f 20 57 69 6e 53 63 61 6c 65 46 61 63 74 6f | / WinScaleFacto| 00001db0 72 0d 01 0a 30 79 25 20 3d 20 28 79 25 20 2d 20 |r...0y% = (y% - | 00001dc0 57 69 6e 64 4f 66 66 59 25 29 20 2a 20 32 35 36 |WindOffY%) * 256| 00001dd0 20 2f 20 57 69 6e 53 63 61 6c 65 46 61 63 74 6f | / WinScaleFacto| 00001de0 72 0d 01 0b 05 e1 0d 01 0c 05 3a 0d 01 0d 23 2a |r.........:...#*| 00001df0 7c 73 74 6f 70 20 50 52 4f 43 73 68 65 6c 6c 5f ||stop PROCshell_| 00001e00 41 57 53 63 72 65 65 6e 54 6f 56 69 72 74 0d 01 |AWScreenToVirt..| 00001e10 0e 04 0d 01 0f 1e 2a 7c 73 74 61 72 74 20 46 4e |......*|start FN| 00001e20 73 68 65 6c 6c 5f 41 57 4c 6f 61 64 46 69 6c 65 |shell_AWLoadFile| 00001e30 0d 01 10 30 dd 20 f2 73 68 65 6c 6c 5f 41 57 4c |...0. .shell_AWL| 00001e40 6f 61 64 46 69 6c 65 28 6e 61 6d 65 24 2c f8 20 |oadFile(name$,. | 00001e50 62 75 66 66 65 72 25 2c f8 20 73 69 7a 65 25 29 |buffer%,. size%)| 00001e60 0d 01 11 10 ea 20 65 72 72 2c 66 6c 61 67 73 25 |..... err,flags%| 00001e70 0d 01 12 47 f4 20 43 61 6c 6c 65 64 20 74 6f 20 |...G. Called to | 00001e80 6c 6f 61 64 20 61 6e 20 41 72 74 57 6f 72 6b 73 |load an ArtWorks| 00001e90 20 66 69 6c 65 2e 20 46 69 72 73 74 20 63 68 65 | file. First che| 00001ea0 63 6b 20 69 66 20 72 65 6e 64 65 72 65 72 20 63 |ck if renderer c| 00001eb0 6f 64 65 20 68 61 73 0d 01 13 1e f4 20 61 6c 72 |ode has..... alr| 00001ec0 65 61 64 79 20 62 65 65 6e 20 61 73 73 65 6d 62 |eady been assemb| 00001ed0 6c 65 64 2e 2e 0d 01 14 20 e7 20 28 5f 55 25 21 |led..... . (_U%!| 00001ee0 31 30 30 20 80 20 28 31 20 3c 3c 20 38 29 29 20 |100 . (1 << 8)) | 00001ef0 3d 20 30 20 8c 0d 01 15 40 20 20 f2 73 68 65 6c |= 0 ....@ .shel| 00001f00 6c 5f 54 72 61 63 65 66 30 28 22 41 57 4c 6f 61 |l_Tracef0("AWLoa| 00001f10 64 46 69 6c 65 3a 41 73 73 65 6d 62 6c 69 6e 67 |dFile:Assembling| 00001f20 20 41 57 20 72 65 6e 64 65 72 65 72 20 63 6f 64 | AW renderer cod| 00001f30 65 2e 2e 22 29 0d 01 16 17 20 20 f2 73 68 65 6c |e..").... .shel| 00001f40 6c 5f 41 57 41 73 73 65 6d 62 6c 65 0d 01 17 05 |l_AWAssemble....| 00001f50 cc 0d 01 18 47 20 20 f2 73 68 65 6c 6c 5f 54 72 |....G .shell_Tr| 00001f60 61 63 65 66 30 28 22 41 57 4c 6f 61 64 46 69 6c |acef0("AWLoadFil| 00001f70 65 3a 41 57 20 72 65 6e 64 65 72 65 72 20 63 6f |e:AW renderer co| 00001f80 64 65 20 61 6c 72 65 61 64 79 20 61 73 73 65 6d |de already assem| 00001f90 62 6c 65 64 2e 2e 22 29 0d 01 19 05 cd 0d 01 1a |bled..")........| 00001fa0 26 73 69 7a 65 25 20 20 20 3d 20 a4 73 68 65 6c |&size% = .shel| 00001fb0 6c 5f 46 69 6c 65 4c 65 6e 67 74 68 28 6e 61 6d |l_FileLength(nam| 00001fc0 65 24 29 0d 01 1b 2a 62 75 66 66 65 72 25 20 3d |e$)...*buffer% =| 00001fd0 20 a4 73 68 65 6c 6c 5f 48 65 61 70 42 6c 6f 63 | .shell_HeapBloc| 00001fe0 6b 46 65 74 63 68 28 73 69 7a 65 25 29 0d 01 1c |kFetch(size%)...| 00001ff0 30 c8 99 22 58 4f 53 5f 46 69 6c 65 22 2c 31 36 |0.."XOS_File",16| 00002000 2c 6e 61 6d 65 24 2c 62 75 66 66 65 72 25 2c 30 |,name$,buffer%,0| 00002010 20 b8 20 65 72 72 3b 66 6c 61 67 73 25 0d 01 1d | . err;flags%...| 00002020 33 e7 20 66 6c 61 67 73 25 20 80 20 31 20 8c 20 |3. flags% . 1 . | 00002030 85 20 21 65 72 72 2c a4 73 68 65 6c 6c 5f 47 65 |. !err,.shell_Ge| 00002040 74 53 74 72 69 6e 67 28 65 72 72 20 2b 20 34 29 |tString(err + 4)| 00002050 0d 01 1e 28 f2 73 68 65 6c 6c 5f 41 57 43 61 6c |...(.shell_AWCal| 00002060 6c 46 69 6c 65 49 6e 69 74 28 62 75 66 66 65 72 |lFileInit(buffer| 00002070 25 2c 73 69 7a 65 25 29 0d 01 1f 05 e1 0d 01 20 |%,size%)....... | 00002080 05 3a 0d 01 21 1d 2a 7c 73 74 6f 70 20 46 4e 73 |.:..!.*|stop FNs| 00002090 68 65 6c 6c 5f 41 57 4c 6f 61 64 46 69 6c 65 0d |hell_AWLoadFile.| 000020a0 ff |.| 000020a1