Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/Examples/!Redraw/!Redraw
!AWJan95/Goodies/Event/Examples/!Redraw/!Redraw
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/Examples/!Redraw/!Redraw |
Read OK: | ✔ |
File size: | 1216 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1REM > <Redraw$Dir>.!Redraw 2: 3debugging%=FALSE 4REM Copyright Paul Hobbs 1993 5REM Rheinpfalzstrasse 2 6REM 85049 Ingolstadt 7REM Germany 8: 9REM This program and parts thereof may be freely distributed 10: 11ON ERROR PROCshell_Error 12: 13LIBRARY "<EvntShell$Path>ShellLibRT" 14: 15SYS "Hourglass_On" 16: 17SYS "Wimp_SlotSize",-1,-1 TO progsize% 18pagesize%=1<<10 19freespace%=&8000+progsize% 20END=freespace%+pagesize% 21HIMEM=freespace% 22: 23PROCshell_HeapManagerInit("<EvntShell$Path>",freespace%) 24PROCshell_Init 25task%=FNshell_WimpInit_I(200,"Redraw Demo") 26PROCshell_TraceInit("") 27REM PROCshell_TraceOn 28PROCshell_ResourcesInit 29PROCapp_init 30: 31REM -------------------- Initialise Variables ---------------------------- 32: 33_closedown% =FALSE :REM Set this to TRUE when you want the program to 34 :REM end 35changed% =FALSE :REM Used to keep track of whether the data has 36 :REM been changed. Call PROCfile_changed() when it 37 :REM has. But if the program does not use data 38 :REM files just ignore this variable but do not 39 :REM delete it as the program checks it before 40 :REM exiting! 41: 42REM -------------------- Miscelleanous Initialisation -------------------- 43: 44SYS "Hourglass_Off" 45ON ERROR OFF 46ON ERROR PROCshell_Error 47REPEAT 48 PROCshell_Action(FNshell_Poll_I(0,task%)) 49UNTIL _closedown% 50: 51PROCshell_Exit:END 52: 53REM ====================================================================== 54: 55DEF PROCapp_init 56my_font$="Trinity.Medium" 57PROCSetUp_Menus 58sicon=FNshell_Iconbar(-1,"!"+FNshell_GetAppName,"",120,MenuHandle_IconBar%,0,0,0) 59PROCshell_AttachHelpTag(-1,sicon,"iconbar") 60PROCshell_AttachClickSelect(-1,sicon,"_ClickSelect_IconBar") 61 62PROCshell_CreateWindowStatic("mainw",mainw%) 63PROCshell_AttachUserRedraw(mainw%,"_redraw") 64PROCshell_AttachFontMenu(mainw%,-1,"_MenuSelect_Fonts","_MenuMaker_Fonts") 65 66PROCshell_FindFont(my_font$,24,24,font_handle%) 67SYS "Font_SetFont",font_handle% 68_shell_FontMenuSelFN$="" 69ENDPROC 70: 71 72REM ===== Menu_Setup routines ====================================== 73 74DEF PROCSetUp_Menus 75LOCAL void% 76 77MenuHandle_IconBar%=FNshell_MenuNew("Redraw") 78MenuItem_Info% =FNshell_MenuAdd(0,"Info","") 79MenuItem_Fonts% =FNshell_MenuAdd(0,"Fonts","") 80void% =FNshell_MenuAdd(0,"Quit","_MenuSelect_Quit") 81PROCshell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","") 82PROCshell_AttachFontSubMenu(MenuItem_Fonts%,"_warn_FontMenu","_MenuSelect_Fonts") 83 84ENDPROC 85: 86 87REM ===== Click_Select routines ==================================== 88 89DEF FN_ClickSelect_IconBar(wh%,icon%) 90PROCshell_OpenWindowStatic(mainw%) 91=0 92: 93REM ===== Menu_Select routines ===================================== 94 95DEF FN_MenuSelect_Fonts(fontname$) 96IF fontname$<>"" THEN PROCselect_new_font(fontname$) 97=0 98: 99DEF FN_MenuSelect_Quit(blk%) 100_closedown%=TRUE 101SYS "Font_LoseFont",font_handle% 102=0 103: 104 105REM ===== Menu_Maker routines ====================================== 106 107DEF FN_MenuMaker_Fonts(wh%,ih%) 108REM Tick the current font in the FontMenu.. 109PROCshell_FontMenuSelectFont(my_font$,1) 110=0 111: 112 113REM ===== Menu_Warn routines ======================================= 114 115DEF FN_warn_FontMenu(wh%,ih%) 116REM Tick the current font in the FontMenu.. 117PROCshell_FontMenuSelectFont(my_font$,1) 118=0 119: 120DEF PROCselect_new_font(font$) 121REM A font has been selected in the FontMenu.. 122my_font$=font$ 123SYS "Font_LoseFont",font_handle% 124PROCshell_FindFont(my_font$,24,24,font_handle%) 125SYS "Font_SetFont",font_handle% 126SYS "Wimp_ForceRedraw",mainw%,0,-2000,2000,0 127ENDPROC 128: 129DEF FN_redraw(blk%,x0%,y0%) 130SYS "Wimp_SetColour",11 131CIRCLE FILL x0%+200,y0%-200,120 132SYS "Wimp_SetColour",8 133MOVE x0%+80,y0%-340:PRINT "This is an example of" 134MOVE x0%+40,y0%-380:PRINT "user drawn text and graphics" 135MOVE x0%+95,y0%-420:PRINT "in a desktop window" 136SYS "ColourTrans_SetFontColours",font_handle%,&FFFFFF00,&00000000,14 137SYS "Font_Paint",0,"And Outline Fonts..",1<<4,x0%+10,y0%-70 138=0 139: 140DEF FN_ClickSelect_IconBar(wh%,icon%) 141PROCshell_OpenWindowStatic(mainw%) 142=0 143: 144 145REM ===== Dialog_PreOpen routines ================================== 146 147DEF FN_PreOpenInfo(wh%) 148PROCshell_IconPutData(wh%,0,FNshell_MessageNoArgs("progInfo0"),0) 149PROCshell_IconPutData(wh%,1,FNshell_MessageNoArgs("progInfo1"),0) 150PROCshell_IconPutData(wh%,2,FNshell_MessageNoArgs("progInfo2"),0) 151PROCshell_IconPutData(wh%,3,FNshell_MessageNoArgs("progInfo3"),0) 152=0 153: 154 155REM =================== Routines to go in the library ================== 156:
� > <Redraw$Dir>.!Redraw : debugging%=� � Copyright Paul Hobbs 1993 � Rheinpfalzstrasse 2 � 85049 Ingolstadt � Germany : >� This program and parts thereof may be freely distributed : � � �shell_Error : #ț "<EvntShell$Path>ShellLibRT" : ș "Hourglass_On" : (ș "Wimp_SlotSize",-1,-1 � progsize% pagesize%=1<<10 freespace%=&8000+progsize% �=freespace%+pagesize% �=freespace% : 9�shell_HeapManagerInit("<EvntShell$Path>",freespace%) �shell_Init .task%=�shell_WimpInit_I(200,"Redraw Demo") �shell_TraceInit("") � PROCshell_TraceOn �shell_ResourcesInit �app_init : L� -------------------- Initialise Variables ---------------------------- : !G_closedown% =� :� Set this to TRUE when you want the program to "! :� end #Dchanged% =� :� Used to keep track of whether the data has $K :� been changed. Call PROCfile_changed() when it %G :� has. But if the program does not use data &H :� files just ignore this variable but do not 'G :� delete it as the program checks it before (& :� exiting! ): *L� -------------------- Miscelleanous Initialisation -------------------- +: ,ș "Hourglass_Off" - � � � .� � �shell_Error /� 0+ �shell_Action(�shell_Poll_I(0,task%)) 1� _closedown% 2: 3�shell_Exit:� 4: 5L� ====================================================================== 6: 7� �app_init 8my_font$="Trinity.Medium" 9�SetUp_Menus :Ssicon=�shell_Iconbar(-1,"!"+�shell_GetAppName,"",120,MenuHandle_IconBar%,0,0,0) ;,�shell_AttachHelpTag(-1,sicon,"iconbar") <=�shell_AttachClickSelect(-1,sicon,"_ClickSelect_IconBar") = >-�shell_CreateWindowStatic("mainw",mainw%) ?-�shell_AttachUserRedraw(mainw%,"_redraw") @K�shell_AttachFontMenu(mainw%,-1,"_MenuSelect_Fonts","_MenuMaker_Fonts") A B0�shell_FindFont(my_font$,24,24,font_handle%) C"ș "Font_SetFont",font_handle% D_shell_FontMenuSelFN$="" E� F: G HF� ===== Menu_Setup routines ====================================== I J� �SetUp_Menus K� void% L M0MenuHandle_IconBar%=�shell_MenuNew("Redraw") N3MenuItem_Info% =�shell_MenuAdd(0,"Info","") O4MenuItem_Fonts% =�shell_MenuAdd(0,"Fonts","") PCvoid% =�shell_MenuAdd(0,"Quit","_MenuSelect_Quit") QF�shell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","") RR�shell_AttachFontSubMenu(MenuItem_Fonts%,"_warn_FontMenu","_MenuSelect_Fonts") S T� U: V WF� ===== Click_Select routines ==================================== X Y&� �_ClickSelect_IconBar(wh%,icon%) Z#�shell_OpenWindowStatic(mainw%) [=0 \: ]F� ===== Menu_Select routines ===================================== ^ _#� �_MenuSelect_Fonts(fontname$) `3� fontname$<>"" � �select_new_font(fontname$) a=0 b: c� �_MenuSelect_Quit(blk%) d_closedown%=� e#ș "Font_LoseFont",font_handle% f=0 g: h iF� ===== Menu_Maker routines ====================================== j k � �_MenuMaker_Fonts(wh%,ih%) l-� Tick the current font in the FontMenu.. m)�shell_FontMenuSelectFont(my_font$,1) n=0 o: p qF� ===== Menu_Warn routines ======================================= r s� �_warn_FontMenu(wh%,ih%) t-� Tick the current font in the FontMenu.. u)�shell_FontMenuSelectFont(my_font$,1) v=0 w: x� �select_new_font(font$) y0� A font has been selected in the FontMenu.. zmy_font$=font$ {#ș "Font_LoseFont",font_handle% |0�shell_FindFont(my_font$,24,24,font_handle%) }"ș "Font_SetFont",font_handle% ~/ș "Wimp_ForceRedraw",mainw%,0,-2000,2000,0 � �: �� �_redraw(blk%,x0%,y0%) �ș "Wimp_SetColour",11 �ȏ Ȑ x0%+200,y0%-200,120 �ș "Wimp_SetColour",8 �.� x0%+80,y0%-340:� "This is an example of" �5� x0%+40,y0%-380:� "user drawn text and graphics" �,� x0%+95,y0%-420:� "in a desktop window" �Gș "ColourTrans_SetFontColours",font_handle%,&FFFFFF00,&00000000,14 �>ș "Font_Paint",0,"And Outline Fonts..",1<<4,x0%+10,y0%-70 �=0 �: �&� �_ClickSelect_IconBar(wh%,icon%) �#�shell_OpenWindowStatic(mainw%) �=0 �: � �F� ===== Dialog_PreOpen routines ================================== � �� �_PreOpenInfo(wh%) �A�shell_IconPutData(wh%,0,�shell_MessageNoArgs("progInfo0"),0) �A�shell_IconPutData(wh%,1,�shell_MessageNoArgs("progInfo1"),0) �A�shell_IconPutData(wh%,2,�shell_MessageNoArgs("progInfo2"),0) �A�shell_IconPutData(wh%,3,�shell_MessageNoArgs("progInfo3"),0) �=0 �: � �J� =================== Routines to go in the library ================== �: �
00000000 0d 00 01 1c f4 20 3e 20 3c 52 65 64 72 61 77 24 |..... > <Redraw$| 00000010 44 69 72 3e 2e 21 52 65 64 72 61 77 0d 00 02 05 |Dir>.!Redraw....| 00000020 3a 0d 00 03 10 64 65 62 75 67 67 69 6e 67 25 3d |:....debugging%=| 00000030 a3 0d 00 04 1f f4 20 43 6f 70 79 72 69 67 68 74 |...... Copyright| 00000040 20 50 61 75 6c 20 48 6f 62 62 73 20 31 39 39 33 | Paul Hobbs 1993| 00000050 0d 00 05 19 f4 20 52 68 65 69 6e 70 66 61 6c 7a |..... Rheinpfalz| 00000060 73 74 72 61 73 73 65 20 32 0d 00 06 19 f4 20 20 |strasse 2..... | 00000070 20 20 38 35 30 34 39 20 49 6e 67 6f 6c 73 74 61 | 85049 Ingolsta| 00000080 64 74 0d 00 07 19 f4 20 20 20 20 20 20 20 20 20 |dt..... | 00000090 20 20 20 20 47 65 72 6d 61 6e 79 0d 00 08 05 3a | Germany....:| 000000a0 0d 00 09 3e f4 20 54 68 69 73 20 70 72 6f 67 72 |...>. This progr| 000000b0 61 6d 20 61 6e 64 20 70 61 72 74 73 20 74 68 65 |am and parts the| 000000c0 72 65 6f 66 20 6d 61 79 20 62 65 20 66 72 65 65 |reof may be free| 000000d0 6c 79 20 64 69 73 74 72 69 62 75 74 65 64 0d 00 |ly distributed..| 000000e0 0a 05 3a 0d 00 0b 14 ee 20 85 20 f2 73 68 65 6c |..:..... . .shel| 000000f0 6c 5f 45 72 72 6f 72 0d 00 0c 05 3a 0d 00 0d 23 |l_Error....:...#| 00000100 c8 9b 20 22 3c 45 76 6e 74 53 68 65 6c 6c 24 50 |.. "<EvntShell$P| 00000110 61 74 68 3e 53 68 65 6c 6c 4c 69 62 52 54 22 0d |ath>ShellLibRT".| 00000120 00 0e 05 3a 0d 00 0f 15 c8 99 20 22 48 6f 75 72 |...:...... "Hour| 00000130 67 6c 61 73 73 5f 4f 6e 22 0d 00 10 05 3a 0d 00 |glass_On"....:..| 00000140 11 28 c8 99 20 22 57 69 6d 70 5f 53 6c 6f 74 53 |.(.. "Wimp_SlotS| 00000150 69 7a 65 22 2c 2d 31 2c 2d 31 20 b8 20 70 72 6f |ize",-1,-1 . pro| 00000160 67 73 69 7a 65 25 0d 00 12 13 70 61 67 65 73 69 |gsize%....pagesi| 00000170 7a 65 25 3d 31 3c 3c 31 30 0d 00 13 1e 66 72 65 |ze%=1<<10....fre| 00000180 65 73 70 61 63 65 25 3d 26 38 30 30 30 2b 70 72 |espace%=&8000+pr| 00000190 6f 67 73 69 7a 65 25 0d 00 14 1a e0 3d 66 72 65 |ogsize%.....=fre| 000001a0 65 73 70 61 63 65 25 2b 70 61 67 65 73 69 7a 65 |espace%+pagesize| 000001b0 25 0d 00 15 10 d3 3d 66 72 65 65 73 70 61 63 65 |%.....=freespace| 000001c0 25 0d 00 16 05 3a 0d 00 17 39 f2 73 68 65 6c 6c |%....:...9.shell| 000001d0 5f 48 65 61 70 4d 61 6e 61 67 65 72 49 6e 69 74 |_HeapManagerInit| 000001e0 28 22 3c 45 76 6e 74 53 68 65 6c 6c 24 50 61 74 |("<EvntShell$Pat| 000001f0 68 3e 22 2c 66 72 65 65 73 70 61 63 65 25 29 0d |h>",freespace%).| 00000200 00 18 0f f2 73 68 65 6c 6c 5f 49 6e 69 74 0d 00 |....shell_Init..| 00000210 19 2e 74 61 73 6b 25 3d a4 73 68 65 6c 6c 5f 57 |..task%=.shell_W| 00000220 69 6d 70 49 6e 69 74 5f 49 28 32 30 30 2c 22 52 |impInit_I(200,"R| 00000230 65 64 72 61 77 20 44 65 6d 6f 22 29 0d 00 1a 18 |edraw Demo")....| 00000240 f2 73 68 65 6c 6c 5f 54 72 61 63 65 49 6e 69 74 |.shell_TraceInit| 00000250 28 22 22 29 0d 00 1b 17 f4 20 50 52 4f 43 73 68 |("")..... PROCsh| 00000260 65 6c 6c 5f 54 72 61 63 65 4f 6e 0d 00 1c 18 f2 |ell_TraceOn.....| 00000270 73 68 65 6c 6c 5f 52 65 73 6f 75 72 63 65 73 49 |shell_ResourcesI| 00000280 6e 69 74 0d 00 1d 0d f2 61 70 70 5f 69 6e 69 74 |nit.....app_init| 00000290 0d 00 1e 05 3a 0d 00 1f 4c f4 20 2d 2d 2d 2d 2d |....:...L. -----| 000002a0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 20 |--------------- | 000002b0 49 6e 69 74 69 61 6c 69 73 65 20 56 61 72 69 61 |Initialise Varia| 000002c0 62 6c 65 73 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |bles -----------| 000002d0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 000002e0 2d 0d 00 20 05 3a 0d 00 21 47 5f 63 6c 6f 73 65 |-.. .:..!G_close| 000002f0 64 6f 77 6e 25 20 20 20 20 20 3d a3 20 3a f4 20 |down% =. :. | 00000300 53 65 74 20 74 68 69 73 20 74 6f 20 54 52 55 45 |Set this to TRUE| 00000310 20 77 68 65 6e 20 79 6f 75 20 77 61 6e 74 20 74 | when you want t| 00000320 68 65 20 70 72 6f 67 72 61 6d 20 74 6f 0d 00 22 |he program to.."| 00000330 21 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |! | 00000340 20 20 20 20 20 20 20 20 3a f4 20 65 6e 64 0d 00 | :. end..| 00000350 23 44 63 68 61 6e 67 65 64 25 20 20 20 20 20 20 |#Dchanged% | 00000360 20 20 3d a3 20 3a f4 20 55 73 65 64 20 74 6f 20 | =. :. Used to | 00000370 6b 65 65 70 20 74 72 61 63 6b 20 6f 66 20 77 68 |keep track of wh| 00000380 65 74 68 65 72 20 74 68 65 20 64 61 74 61 20 68 |ether the data h| 00000390 61 73 0d 00 24 4b 20 20 20 20 20 20 20 20 20 20 |as..$K | 000003a0 20 20 20 20 20 20 20 20 20 20 20 20 20 3a f4 20 | :. | 000003b0 62 65 65 6e 20 63 68 61 6e 67 65 64 2e 20 43 61 |been changed. Ca| 000003c0 6c 6c 20 50 52 4f 43 66 69 6c 65 5f 63 68 61 6e |ll PROCfile_chan| 000003d0 67 65 64 28 29 20 77 68 65 6e 20 69 74 0d 00 25 |ged() when it..%| 000003e0 47 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |G | 000003f0 20 20 20 20 20 20 20 20 3a f4 20 68 61 73 2e 20 | :. has. | 00000400 42 75 74 20 69 66 20 74 68 65 20 70 72 6f 67 72 |But if the progr| 00000410 61 6d 20 64 6f 65 73 20 6e 6f 74 20 75 73 65 20 |am does not use | 00000420 64 61 74 61 0d 00 26 48 20 20 20 20 20 20 20 20 |data..&H | 00000430 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a | :| 00000440 f4 20 66 69 6c 65 73 20 6a 75 73 74 20 69 67 6e |. files just ign| 00000450 6f 72 65 20 74 68 69 73 20 76 61 72 69 61 62 6c |ore this variabl| 00000460 65 20 62 75 74 20 64 6f 20 6e 6f 74 0d 00 27 47 |e but do not..'G| 00000470 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000480 20 20 20 20 20 20 20 3a f4 20 64 65 6c 65 74 65 | :. delete| 00000490 20 69 74 20 61 73 20 74 68 65 20 70 72 6f 67 72 | it as the progr| 000004a0 61 6d 20 63 68 65 63 6b 73 20 69 74 20 62 65 66 |am checks it bef| 000004b0 6f 72 65 0d 00 28 26 20 20 20 20 20 20 20 20 20 |ore..(& | 000004c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a f4 | :.| 000004d0 20 65 78 69 74 69 6e 67 21 0d 00 29 05 3a 0d 00 | exiting!..).:..| 000004e0 2a 4c f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |*L. ------------| 000004f0 2d 2d 2d 2d 2d 2d 2d 2d 20 4d 69 73 63 65 6c 6c |-------- Miscell| 00000500 65 61 6e 6f 75 73 20 49 6e 69 74 69 61 6c 69 73 |eanous Initialis| 00000510 61 74 69 6f 6e 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |ation ----------| 00000520 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 00 2b 05 3a 0d |----------..+.:.| 00000530 00 2c 16 c8 99 20 22 48 6f 75 72 67 6c 61 73 73 |.,... "Hourglass| 00000540 5f 4f 66 66 22 0d 00 2d 09 ee 20 85 20 87 0d 00 |_Off"..-.. . ...| 00000550 2e 14 ee 20 85 20 f2 73 68 65 6c 6c 5f 45 72 72 |... . .shell_Err| 00000560 6f 72 0d 00 2f 05 f5 0d 00 30 2b 20 20 f2 73 68 |or../....0+ .sh| 00000570 65 6c 6c 5f 41 63 74 69 6f 6e 28 a4 73 68 65 6c |ell_Action(.shel| 00000580 6c 5f 50 6f 6c 6c 5f 49 28 30 2c 74 61 73 6b 25 |l_Poll_I(0,task%| 00000590 29 29 0d 00 31 11 fd 20 5f 63 6c 6f 73 65 64 6f |))..1.. _closedo| 000005a0 77 6e 25 0d 00 32 05 3a 0d 00 33 11 f2 73 68 65 |wn%..2.:..3..she| 000005b0 6c 6c 5f 45 78 69 74 3a e0 0d 00 34 05 3a 0d 00 |ll_Exit:...4.:..| 000005c0 35 4c f4 20 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |5L. ============| 000005d0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000600 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d 00 36 05 3a 0d |==========..6.:.| 00000610 00 37 0f dd 20 f2 61 70 70 5f 69 6e 69 74 0d 00 |.7.. .app_init..| 00000620 38 1d 6d 79 5f 66 6f 6e 74 24 3d 22 54 72 69 6e |8.my_font$="Trin| 00000630 69 74 79 2e 4d 65 64 69 75 6d 22 0d 00 39 10 f2 |ity.Medium"..9..| 00000640 53 65 74 55 70 5f 4d 65 6e 75 73 0d 00 3a 53 73 |SetUp_Menus..:Ss| 00000650 69 63 6f 6e 3d a4 73 68 65 6c 6c 5f 49 63 6f 6e |icon=.shell_Icon| 00000660 62 61 72 28 2d 31 2c 22 21 22 2b a4 73 68 65 6c |bar(-1,"!"+.shel| 00000670 6c 5f 47 65 74 41 70 70 4e 61 6d 65 2c 22 22 2c |l_GetAppName,"",| 00000680 31 32 30 2c 4d 65 6e 75 48 61 6e 64 6c 65 5f 49 |120,MenuHandle_I| 00000690 63 6f 6e 42 61 72 25 2c 30 2c 30 2c 30 29 0d 00 |conBar%,0,0,0)..| 000006a0 3b 2c f2 73 68 65 6c 6c 5f 41 74 74 61 63 68 48 |;,.shell_AttachH| 000006b0 65 6c 70 54 61 67 28 2d 31 2c 73 69 63 6f 6e 2c |elpTag(-1,sicon,| 000006c0 22 69 63 6f 6e 62 61 72 22 29 0d 00 3c 3d f2 73 |"iconbar")..<=.s| 000006d0 68 65 6c 6c 5f 41 74 74 61 63 68 43 6c 69 63 6b |hell_AttachClick| 000006e0 53 65 6c 65 63 74 28 2d 31 2c 73 69 63 6f 6e 2c |Select(-1,sicon,| 000006f0 22 5f 43 6c 69 63 6b 53 65 6c 65 63 74 5f 49 63 |"_ClickSelect_Ic| 00000700 6f 6e 42 61 72 22 29 0d 00 3d 04 0d 00 3e 2d f2 |onBar")..=...>-.| 00000710 73 68 65 6c 6c 5f 43 72 65 61 74 65 57 69 6e 64 |shell_CreateWind| 00000720 6f 77 53 74 61 74 69 63 28 22 6d 61 69 6e 77 22 |owStatic("mainw"| 00000730 2c 6d 61 69 6e 77 25 29 0d 00 3f 2d f2 73 68 65 |,mainw%)..?-.she| 00000740 6c 6c 5f 41 74 74 61 63 68 55 73 65 72 52 65 64 |ll_AttachUserRed| 00000750 72 61 77 28 6d 61 69 6e 77 25 2c 22 5f 72 65 64 |raw(mainw%,"_red| 00000760 72 61 77 22 29 0d 00 40 4b f2 73 68 65 6c 6c 5f |raw")..@K.shell_| 00000770 41 74 74 61 63 68 46 6f 6e 74 4d 65 6e 75 28 6d |AttachFontMenu(m| 00000780 61 69 6e 77 25 2c 2d 31 2c 22 5f 4d 65 6e 75 53 |ainw%,-1,"_MenuS| 00000790 65 6c 65 63 74 5f 46 6f 6e 74 73 22 2c 22 5f 4d |elect_Fonts","_M| 000007a0 65 6e 75 4d 61 6b 65 72 5f 46 6f 6e 74 73 22 29 |enuMaker_Fonts")| 000007b0 0d 00 41 04 0d 00 42 30 f2 73 68 65 6c 6c 5f 46 |..A...B0.shell_F| 000007c0 69 6e 64 46 6f 6e 74 28 6d 79 5f 66 6f 6e 74 24 |indFont(my_font$| 000007d0 2c 32 34 2c 32 34 2c 66 6f 6e 74 5f 68 61 6e 64 |,24,24,font_hand| 000007e0 6c 65 25 29 0d 00 43 22 c8 99 20 22 46 6f 6e 74 |le%)..C".. "Font| 000007f0 5f 53 65 74 46 6f 6e 74 22 2c 66 6f 6e 74 5f 68 |_SetFont",font_h| 00000800 61 6e 64 6c 65 25 0d 00 44 1c 5f 73 68 65 6c 6c |andle%..D._shell| 00000810 5f 46 6f 6e 74 4d 65 6e 75 53 65 6c 46 4e 24 3d |_FontMenuSelFN$=| 00000820 22 22 0d 00 45 05 e1 0d 00 46 05 3a 0d 00 47 04 |""..E....F.:..G.| 00000830 0d 00 48 46 f4 20 3d 3d 3d 3d 3d 20 4d 65 6e 75 |..HF. ===== Menu| 00000840 5f 53 65 74 75 70 20 72 6f 75 74 69 6e 65 73 20 |_Setup routines | 00000850 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000870 3d 3d 3d 3d 3d 3d 0d 00 49 04 0d 00 4a 12 dd 20 |======..I...J.. | 00000880 f2 53 65 74 55 70 5f 4d 65 6e 75 73 0d 00 4b 0b |.SetUp_Menus..K.| 00000890 ea 20 76 6f 69 64 25 0d 00 4c 04 0d 00 4d 30 4d |. void%..L...M0M| 000008a0 65 6e 75 48 61 6e 64 6c 65 5f 49 63 6f 6e 42 61 |enuHandle_IconBa| 000008b0 72 25 3d a4 73 68 65 6c 6c 5f 4d 65 6e 75 4e 65 |r%=.shell_MenuNe| 000008c0 77 28 22 52 65 64 72 61 77 22 29 0d 00 4e 33 4d |w("Redraw")..N3M| 000008d0 65 6e 75 49 74 65 6d 5f 49 6e 66 6f 25 20 20 20 |enuItem_Info% | 000008e0 20 20 3d a4 73 68 65 6c 6c 5f 4d 65 6e 75 41 64 | =.shell_MenuAd| 000008f0 64 28 30 2c 22 49 6e 66 6f 22 2c 22 22 29 0d 00 |d(0,"Info","")..| 00000900 4f 34 4d 65 6e 75 49 74 65 6d 5f 46 6f 6e 74 73 |O4MenuItem_Fonts| 00000910 25 20 20 20 20 3d a4 73 68 65 6c 6c 5f 4d 65 6e |% =.shell_Men| 00000920 75 41 64 64 28 30 2c 22 46 6f 6e 74 73 22 2c 22 |uAdd(0,"Fonts","| 00000930 22 29 0d 00 50 43 76 6f 69 64 25 20 20 20 20 20 |")..PCvoid% | 00000940 20 20 20 20 20 20 20 20 20 3d a4 73 68 65 6c 6c | =.shell| 00000950 5f 4d 65 6e 75 41 64 64 28 30 2c 22 51 75 69 74 |_MenuAdd(0,"Quit| 00000960 22 2c 22 5f 4d 65 6e 75 53 65 6c 65 63 74 5f 51 |","_MenuSelect_Q| 00000970 75 69 74 22 29 0d 00 51 46 f2 73 68 65 6c 6c 5f |uit")..QF.shell_| 00000980 41 74 74 61 63 68 4d 65 6e 75 44 42 6f 78 28 4d |AttachMenuDBox(M| 00000990 65 6e 75 49 74 65 6d 5f 49 6e 66 6f 25 2c 22 70 |enuItem_Info%,"p| 000009a0 72 6f 67 49 6e 66 6f 22 2c 22 5f 50 72 65 4f 70 |rogInfo","_PreOp| 000009b0 65 6e 49 6e 66 6f 22 2c 22 22 29 0d 00 52 52 f2 |enInfo","")..RR.| 000009c0 73 68 65 6c 6c 5f 41 74 74 61 63 68 46 6f 6e 74 |shell_AttachFont| 000009d0 53 75 62 4d 65 6e 75 28 4d 65 6e 75 49 74 65 6d |SubMenu(MenuItem| 000009e0 5f 46 6f 6e 74 73 25 2c 22 5f 77 61 72 6e 5f 46 |_Fonts%,"_warn_F| 000009f0 6f 6e 74 4d 65 6e 75 22 2c 22 5f 4d 65 6e 75 53 |ontMenu","_MenuS| 00000a00 65 6c 65 63 74 5f 46 6f 6e 74 73 22 29 0d 00 53 |elect_Fonts")..S| 00000a10 04 0d 00 54 05 e1 0d 00 55 05 3a 0d 00 56 04 0d |...T....U.:..V..| 00000a20 00 57 46 f4 20 3d 3d 3d 3d 3d 20 43 6c 69 63 6b |.WF. ===== Click| 00000a30 5f 53 65 6c 65 63 74 20 72 6f 75 74 69 6e 65 73 |_Select routines| 00000a40 20 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d | ===============| 00000a50 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| 00000a60 3d 3d 3d 3d 3d 0d 00 58 04 0d 00 59 26 dd 20 a4 |=====..X...Y&. .| 00000a70 5f 43 6c 69 63 6b 53 65 6c 65 63 74 5f 49 63 6f |_ClickSelect_Ico| 00000a80 6e 42 61 72 28 77 68 25 2c 69 63 6f 6e 25 29 0d |nBar(wh%,icon%).| 00000a90 00 5a 23 f2 73 68 65 6c 6c 5f 4f 70 65 6e 57 69 |.Z#.shell_OpenWi| 00000aa0 6e 64 6f 77 53 74 61 74 69 63 28 6d 61 69 6e 77 |ndowStatic(mainw| 00000ab0 25 29 0d 00 5b 06 3d 30 0d 00 5c 05 3a 0d 00 5d |%)..[.=0..\.:..]| 00000ac0 46 f4 20 3d 3d 3d 3d 3d 20 4d 65 6e 75 5f 53 65 |F. ===== Menu_Se| 00000ad0 6c 65 63 74 20 72 6f 75 74 69 6e 65 73 20 3d 3d |lect routines ==| 00000ae0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000b00 3d 3d 3d 0d 00 5e 04 0d 00 5f 23 dd 20 a4 5f 4d |===..^..._#. ._M| 00000b10 65 6e 75 53 65 6c 65 63 74 5f 46 6f 6e 74 73 28 |enuSelect_Fonts(| 00000b20 66 6f 6e 74 6e 61 6d 65 24 29 0d 00 60 33 e7 20 |fontname$)..`3. | 00000b30 66 6f 6e 74 6e 61 6d 65 24 3c 3e 22 22 20 8c 20 |fontname$<>"" . | 00000b40 f2 73 65 6c 65 63 74 5f 6e 65 77 5f 66 6f 6e 74 |.select_new_font| 00000b50 28 66 6f 6e 74 6e 61 6d 65 24 29 20 20 0d 00 61 |(fontname$) ..a| 00000b60 06 3d 30 0d 00 62 05 3a 0d 00 63 1d dd 20 a4 5f |.=0..b.:..c.. ._| 00000b70 4d 65 6e 75 53 65 6c 65 63 74 5f 51 75 69 74 28 |MenuSelect_Quit(| 00000b80 62 6c 6b 25 29 0d 00 64 11 5f 63 6c 6f 73 65 64 |blk%)..d._closed| 00000b90 6f 77 6e 25 3d b9 0d 00 65 23 c8 99 20 22 46 6f |own%=...e#.. "Fo| 00000ba0 6e 74 5f 4c 6f 73 65 46 6f 6e 74 22 2c 66 6f 6e |nt_LoseFont",fon| 00000bb0 74 5f 68 61 6e 64 6c 65 25 0d 00 66 06 3d 30 0d |t_handle%..f.=0.| 00000bc0 00 67 05 3a 0d 00 68 04 0d 00 69 46 f4 20 3d 3d |.g.:..h...iF. ==| 00000bd0 3d 3d 3d 20 4d 65 6e 75 5f 4d 61 6b 65 72 20 72 |=== Menu_Maker r| 00000be0 6f 75 74 69 6e 65 73 20 3d 3d 3d 3d 3d 3d 3d 3d |outines ========| 00000bf0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| 00000c00 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d 00 |==============..| 00000c10 6a 04 0d 00 6b 20 dd 20 a4 5f 4d 65 6e 75 4d 61 |j...k . ._MenuMa| 00000c20 6b 65 72 5f 46 6f 6e 74 73 28 77 68 25 2c 69 68 |ker_Fonts(wh%,ih| 00000c30 25 29 0d 00 6c 2d f4 20 54 69 63 6b 20 74 68 65 |%)..l-. Tick the| 00000c40 20 63 75 72 72 65 6e 74 20 66 6f 6e 74 20 69 6e | current font in| 00000c50 20 74 68 65 20 46 6f 6e 74 4d 65 6e 75 2e 2e 0d | the FontMenu...| 00000c60 00 6d 29 f2 73 68 65 6c 6c 5f 46 6f 6e 74 4d 65 |.m).shell_FontMe| 00000c70 6e 75 53 65 6c 65 63 74 46 6f 6e 74 28 6d 79 5f |nuSelectFont(my_| 00000c80 66 6f 6e 74 24 2c 31 29 0d 00 6e 06 3d 30 0d 00 |font$,1)..n.=0..| 00000c90 6f 05 3a 0d 00 70 04 0d 00 71 46 f4 20 3d 3d 3d |o.:..p...qF. ===| 00000ca0 3d 3d 20 4d 65 6e 75 5f 57 61 72 6e 20 72 6f 75 |== Menu_Warn rou| 00000cb0 74 69 6e 65 73 20 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |tines ==========| 00000cc0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| 00000cd0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d 00 72 |=============..r| 00000ce0 04 0d 00 73 1e dd 20 a4 5f 77 61 72 6e 5f 46 6f |...s.. ._warn_Fo| 00000cf0 6e 74 4d 65 6e 75 28 77 68 25 2c 69 68 25 29 0d |ntMenu(wh%,ih%).| 00000d00 00 74 2d f4 20 54 69 63 6b 20 74 68 65 20 63 75 |.t-. Tick the cu| 00000d10 72 72 65 6e 74 20 66 6f 6e 74 20 69 6e 20 74 68 |rrent font in th| 00000d20 65 20 46 6f 6e 74 4d 65 6e 75 2e 2e 0d 00 75 29 |e FontMenu....u)| 00000d30 f2 73 68 65 6c 6c 5f 46 6f 6e 74 4d 65 6e 75 53 |.shell_FontMenuS| 00000d40 65 6c 65 63 74 46 6f 6e 74 28 6d 79 5f 66 6f 6e |electFont(my_fon| 00000d50 74 24 2c 31 29 0d 00 76 06 3d 30 0d 00 77 05 3a |t$,1)..v.=0..w.:| 00000d60 0d 00 78 1d dd 20 f2 73 65 6c 65 63 74 5f 6e 65 |..x.. .select_ne| 00000d70 77 5f 66 6f 6e 74 28 66 6f 6e 74 24 29 0d 00 79 |w_font(font$)..y| 00000d80 30 f4 20 41 20 66 6f 6e 74 20 68 61 73 20 62 65 |0. A font has be| 00000d90 65 6e 20 73 65 6c 65 63 74 65 64 20 69 6e 20 74 |en selected in t| 00000da0 68 65 20 46 6f 6e 74 4d 65 6e 75 2e 2e 0d 00 7a |he FontMenu....z| 00000db0 12 6d 79 5f 66 6f 6e 74 24 3d 66 6f 6e 74 24 0d |.my_font$=font$.| 00000dc0 00 7b 23 c8 99 20 22 46 6f 6e 74 5f 4c 6f 73 65 |.{#.. "Font_Lose| 00000dd0 46 6f 6e 74 22 2c 66 6f 6e 74 5f 68 61 6e 64 6c |Font",font_handl| 00000de0 65 25 0d 00 7c 30 f2 73 68 65 6c 6c 5f 46 69 6e |e%..|0.shell_Fin| 00000df0 64 46 6f 6e 74 28 6d 79 5f 66 6f 6e 74 24 2c 32 |dFont(my_font$,2| 00000e00 34 2c 32 34 2c 66 6f 6e 74 5f 68 61 6e 64 6c 65 |4,24,font_handle| 00000e10 25 29 0d 00 7d 22 c8 99 20 22 46 6f 6e 74 5f 53 |%)..}".. "Font_S| 00000e20 65 74 46 6f 6e 74 22 2c 66 6f 6e 74 5f 68 61 6e |etFont",font_han| 00000e30 64 6c 65 25 0d 00 7e 2f c8 99 20 22 57 69 6d 70 |dle%..~/.. "Wimp| 00000e40 5f 46 6f 72 63 65 52 65 64 72 61 77 22 2c 6d 61 |_ForceRedraw",ma| 00000e50 69 6e 77 25 2c 30 2c 2d 32 30 30 30 2c 32 30 30 |inw%,0,-2000,200| 00000e60 30 2c 30 0d 00 7f 05 e1 0d 00 80 05 3a 0d 00 81 |0,0.........:...| 00000e70 1c dd 20 a4 5f 72 65 64 72 61 77 28 62 6c 6b 25 |.. ._redraw(blk%| 00000e80 2c 78 30 25 2c 79 30 25 29 0d 00 82 1a c8 99 20 |,x0%,y0%)...... | 00000e90 22 57 69 6d 70 5f 53 65 74 43 6f 6c 6f 75 72 22 |"Wimp_SetColour"| 00000ea0 2c 31 31 0d 00 83 1d c8 8f 20 c8 90 20 78 30 25 |,11...... .. x0%| 00000eb0 2b 32 30 30 2c 79 30 25 2d 32 30 30 2c 31 32 30 |+200,y0%-200,120| 00000ec0 0d 00 84 19 c8 99 20 22 57 69 6d 70 5f 53 65 74 |...... "Wimp_Set| 00000ed0 43 6f 6c 6f 75 72 22 2c 38 0d 00 85 2e ec 20 78 |Colour",8..... x| 00000ee0 30 25 2b 38 30 2c 79 30 25 2d 33 34 30 3a f1 20 |0%+80,y0%-340:. | 00000ef0 22 54 68 69 73 20 69 73 20 61 6e 20 65 78 61 6d |"This is an exam| 00000f00 70 6c 65 20 6f 66 22 0d 00 86 35 ec 20 78 30 25 |ple of"...5. x0%| 00000f10 2b 34 30 2c 79 30 25 2d 33 38 30 3a f1 20 22 75 |+40,y0%-380:. "u| 00000f20 73 65 72 20 64 72 61 77 6e 20 74 65 78 74 20 61 |ser drawn text a| 00000f30 6e 64 20 67 72 61 70 68 69 63 73 22 0d 00 87 2c |nd graphics"...,| 00000f40 ec 20 78 30 25 2b 39 35 2c 79 30 25 2d 34 32 30 |. x0%+95,y0%-420| 00000f50 3a f1 20 22 69 6e 20 61 20 64 65 73 6b 74 6f 70 |:. "in a desktop| 00000f60 20 77 69 6e 64 6f 77 22 0d 00 88 47 c8 99 20 22 | window"...G.. "| 00000f70 43 6f 6c 6f 75 72 54 72 61 6e 73 5f 53 65 74 46 |ColourTrans_SetF| 00000f80 6f 6e 74 43 6f 6c 6f 75 72 73 22 2c 66 6f 6e 74 |ontColours",font| 00000f90 5f 68 61 6e 64 6c 65 25 2c 26 46 46 46 46 46 46 |_handle%,&FFFFFF| 00000fa0 30 30 2c 26 30 30 30 30 30 30 30 30 2c 31 34 0d |00,&00000000,14.| 00000fb0 00 89 3e c8 99 20 22 46 6f 6e 74 5f 50 61 69 6e |..>.. "Font_Pain| 00000fc0 74 22 2c 30 2c 22 41 6e 64 20 4f 75 74 6c 69 6e |t",0,"And Outlin| 00000fd0 65 20 46 6f 6e 74 73 2e 2e 22 2c 31 3c 3c 34 2c |e Fonts..",1<<4,| 00000fe0 78 30 25 2b 31 30 2c 79 30 25 2d 37 30 0d 00 8a |x0%+10,y0%-70...| 00000ff0 06 3d 30 0d 00 8b 05 3a 0d 00 8c 26 dd 20 a4 5f |.=0....:...&. ._| 00001000 43 6c 69 63 6b 53 65 6c 65 63 74 5f 49 63 6f 6e |ClickSelect_Icon| 00001010 42 61 72 28 77 68 25 2c 69 63 6f 6e 25 29 0d 00 |Bar(wh%,icon%)..| 00001020 8d 23 f2 73 68 65 6c 6c 5f 4f 70 65 6e 57 69 6e |.#.shell_OpenWin| 00001030 64 6f 77 53 74 61 74 69 63 28 6d 61 69 6e 77 25 |dowStatic(mainw%| 00001040 29 0d 00 8e 06 3d 30 0d 00 8f 05 3a 0d 00 90 04 |)....=0....:....| 00001050 0d 00 91 46 f4 20 3d 3d 3d 3d 3d 20 44 69 61 6c |...F. ===== Dial| 00001060 6f 67 5f 50 72 65 4f 70 65 6e 20 72 6f 75 74 69 |og_PreOpen routi| 00001070 6e 65 73 20 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |nes ============| 00001080 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| 00001090 3d 3d 3d 3d 3d 3d 0d 00 92 04 0d 00 93 18 dd 20 |======......... | 000010a0 a4 5f 50 72 65 4f 70 65 6e 49 6e 66 6f 28 77 68 |._PreOpenInfo(wh| 000010b0 25 29 0d 00 94 41 f2 73 68 65 6c 6c 5f 49 63 6f |%)...A.shell_Ico| 000010c0 6e 50 75 74 44 61 74 61 28 77 68 25 2c 30 2c a4 |nPutData(wh%,0,.| 000010d0 73 68 65 6c 6c 5f 4d 65 73 73 61 67 65 4e 6f 41 |shell_MessageNoA| 000010e0 72 67 73 28 22 70 72 6f 67 49 6e 66 6f 30 22 29 |rgs("progInfo0")| 000010f0 2c 30 29 0d 00 95 41 f2 73 68 65 6c 6c 5f 49 63 |,0)...A.shell_Ic| 00001100 6f 6e 50 75 74 44 61 74 61 28 77 68 25 2c 31 2c |onPutData(wh%,1,| 00001110 a4 73 68 65 6c 6c 5f 4d 65 73 73 61 67 65 4e 6f |.shell_MessageNo| 00001120 41 72 67 73 28 22 70 72 6f 67 49 6e 66 6f 31 22 |Args("progInfo1"| 00001130 29 2c 30 29 0d 00 96 41 f2 73 68 65 6c 6c 5f 49 |),0)...A.shell_I| 00001140 63 6f 6e 50 75 74 44 61 74 61 28 77 68 25 2c 32 |conPutData(wh%,2| 00001150 2c a4 73 68 65 6c 6c 5f 4d 65 73 73 61 67 65 4e |,.shell_MessageN| 00001160 6f 41 72 67 73 28 22 70 72 6f 67 49 6e 66 6f 32 |oArgs("progInfo2| 00001170 22 29 2c 30 29 0d 00 97 41 f2 73 68 65 6c 6c 5f |"),0)...A.shell_| 00001180 49 63 6f 6e 50 75 74 44 61 74 61 28 77 68 25 2c |IconPutData(wh%,| 00001190 33 2c a4 73 68 65 6c 6c 5f 4d 65 73 73 61 67 65 |3,.shell_Message| 000011a0 4e 6f 41 72 67 73 28 22 70 72 6f 67 49 6e 66 6f |NoArgs("progInfo| 000011b0 33 22 29 2c 30 29 0d 00 98 06 3d 30 0d 00 99 05 |3"),0)....=0....| 000011c0 3a 0d 00 9a 04 0d 00 9b 4a f4 20 3d 3d 3d 3d 3d |:.......J. =====| 000011d0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 20 52 |============== R| 000011e0 6f 75 74 69 6e 65 73 20 74 6f 20 67 6f 20 69 6e |outines to go in| 000011f0 20 74 68 65 20 6c 69 62 72 61 72 79 20 3d 3d 3d | the library ===| 00001200 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d |===============.| 00001210 00 9c 05 3a 0d ff |...:..| 00001216