Home » Archimedes archive » Archimedes World » AW-1992-09.adf » AWSept92 » !AWSept92/Goodies/Work/h/swiwimp
!AWSept92/Goodies/Work/h/swiwimp
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-1992-09.adf » AWSept92 |
Filename: | !AWSept92/Goodies/Work/h/swiwimp |
Read OK: | ✔ |
File size: | 0B24 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
/*************** WIMP SWI Numbers *******************/ #ifndef _swiwimp #define _swiwimp #define Wimp_Initialise 0x0400C0 #define Wimp_CreateWindow 0x0400C1 #define Wimp_CreateIcon 0x0400C2 #define Wimp_DeleteWindow 0x0400C3 #define Wimp_DeleteIcon 0x0400C4 #define Wimp_OpenWindow 0x0400C5 #define Wimp_CloseWindow 0x0400C6 #define Wimp_Poll 0x0400C7 #define Wimp_RedrawWindow 0x0400C8 #define Wimp_UpdateWindow 0x0400C9 #define Wimp_GetRectangle 0x0400CA #define Wimp_GetWindowState 0x0400CB #define Wimp_GetWindowInfo 0x0400CC #define Wimp_SetIconState 0x0400CD #define Wimp_GetIconState 0x0400CE #define Wimp_GetPointerInfo 0x0400CF #define Wimp_DragBox 0x0400D0 #define Wimp_ForceRedraw 0x0400D1 #define Wimp_SetCaretPosition 0x0400D2 #define Wimp_GetCaretPosition 0x0400D3 #define Wimp_CreateMenu 0x0400D4 #define Wimp_DecodeMenu 0x0400D5 #define Wimp_WhichIcon 0x0400D6 #define Wimp_SetExtent 0x0400D7 #define Wimp_SetPointerShape 0x0400D8 #define Wimp_OpenTemplate 0x0400D9 #define Wimp_CloseTemplate 0x0400DA #define Wimp_LoadTemplate 0x0400DB #define Wimp_ProcessKey 0x0400DC #define Wimp_CloseDown 0x0400DD #define Wimp_StartTask 0x0400DE #define Wimp_ReportError 0x0400DF #define Wimp_GetWindowOutline 0x0400E0 #define Wimp_PollIdle 0x0400E1 #define Wimp_PlotIcon 0x0400E2 #define Wimp_SetMode 0x0400E3 #define Wimp_SetPalette 0x0400E4 #define Wimp_ReadPalette 0x0400E5 #define Wimp_SetColour 0x0400E6 #define Wimp_SendMessage 0x0400E7 #define Wimp_CreateSubMenu 0x0400E8 #define Wimp_SpriteOp 0x0400E9 #define Wimp_BaseOfSprites 0x0400EA #define Wimp_BlockCopy 0x0400EB #define Wimp_SlotSize 0x0400EC #define Wimp_ReadPixTrans 0x0400ED #define Wimp_ClaimFreeMemory 0x0400EE #define Wimp_CommandWindow 0x0400EF #define Wimp_TextColour 0x0400F0 #define Wimp_TransferBlock 0x0400F1 #define Wimp_ReadSysInfo 0x0400F2 #define Wimp_SetFontColours 0x0400F3 #define Wimp_GetMenuState 0x0400F4 #define Wimp_RegisterFilter 0x0400F5 #define Wimp_AddMessages 0x0400F6 #endif
00000000 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |/***************| 00000010 20 57 49 4d 50 20 53 57 49 20 4e 75 6d 62 65 72 | WIMP SWI Number| 00000020 73 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |s **************| 00000030 2a 2a 2a 2a 2a 2f 0a 0a 23 69 66 6e 64 65 66 20 |*****/..#ifndef | 00000040 5f 73 77 69 77 69 6d 70 0a 23 64 65 66 69 6e 65 |_swiwimp.#define| 00000050 20 5f 73 77 69 77 69 6d 70 0a 0a 23 64 65 66 69 | _swiwimp..#defi| 00000060 6e 65 20 57 69 6d 70 5f 49 6e 69 74 69 61 6c 69 |ne Wimp_Initiali| 00000070 73 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |se | 00000080 20 20 20 20 30 78 30 34 30 30 43 30 0a 23 64 65 | 0x0400C0.#de| 00000090 66 69 6e 65 20 57 69 6d 70 5f 43 72 65 61 74 65 |fine Wimp_Create| 000000a0 57 69 6e 64 6f 77 20 20 20 20 20 20 20 20 20 20 |Window | 000000b0 20 20 20 20 20 20 30 78 30 34 30 30 43 31 0a 23 | 0x0400C1.#| 000000c0 64 65 66 69 6e 65 20 57 69 6d 70 5f 43 72 65 61 |define Wimp_Crea| 000000d0 74 65 49 63 6f 6e 20 20 20 20 20 20 20 20 20 20 |teIcon | 000000e0 20 20 20 20 20 20 20 20 30 78 30 34 30 30 43 32 | 0x0400C2| 000000f0 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f 44 65 |.#define Wimp_De| 00000100 6c 65 74 65 57 69 6e 64 6f 77 20 20 20 20 20 20 |leteWindow | 00000110 20 20 20 20 20 20 20 20 20 20 30 78 30 34 30 30 | 0x0400| 00000120 43 33 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f |C3.#define Wimp_| 00000130 44 65 6c 65 74 65 49 63 6f 6e 20 20 20 20 20 20 |DeleteIcon | 00000140 20 20 20 20 20 20 20 20 20 20 20 20 30 78 30 34 | 0x04| 00000150 30 30 43 34 0a 23 64 65 66 69 6e 65 20 57 69 6d |00C4.#define Wim| 00000160 70 5f 4f 70 65 6e 57 69 6e 64 6f 77 20 20 20 20 |p_OpenWindow | 00000170 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 | 0x| 00000180 30 34 30 30 43 35 0a 23 64 65 66 69 6e 65 20 57 |0400C5.#define W| 00000190 69 6d 70 5f 43 6c 6f 73 65 57 69 6e 64 6f 77 20 |imp_CloseWindow | 000001a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000001b0 30 78 30 34 30 30 43 36 0a 23 64 65 66 69 6e 65 |0x0400C6.#define| 000001c0 20 57 69 6d 70 5f 50 6f 6c 6c 20 20 20 20 20 20 | Wimp_Poll | 000001d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000001e0 20 20 30 78 30 34 30 30 43 37 0a 23 64 65 66 69 | 0x0400C7.#defi| 000001f0 6e 65 20 57 69 6d 70 5f 52 65 64 72 61 77 57 69 |ne Wimp_RedrawWi| 00000200 6e 64 6f 77 20 20 20 20 20 20 20 20 20 20 20 20 |ndow | 00000210 20 20 20 20 30 78 30 34 30 30 43 38 0a 23 64 65 | 0x0400C8.#de| 00000220 66 69 6e 65 20 57 69 6d 70 5f 55 70 64 61 74 65 |fine Wimp_Update| 00000230 57 69 6e 64 6f 77 20 20 20 20 20 20 20 20 20 20 |Window | 00000240 20 20 20 20 20 20 30 78 30 34 30 30 43 39 0a 23 | 0x0400C9.#| 00000250 64 65 66 69 6e 65 20 57 69 6d 70 5f 47 65 74 52 |define Wimp_GetR| 00000260 65 63 74 61 6e 67 6c 65 20 20 20 20 20 20 20 20 |ectangle | 00000270 20 20 20 20 20 20 20 20 30 78 30 34 30 30 43 41 | 0x0400CA| 00000280 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f 47 65 |.#define Wimp_Ge| 00000290 74 57 69 6e 64 6f 77 53 74 61 74 65 20 20 20 20 |tWindowState | 000002a0 20 20 20 20 20 20 20 20 20 20 30 78 30 34 30 30 | 0x0400| 000002b0 43 42 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f |CB.#define Wimp_| 000002c0 47 65 74 57 69 6e 64 6f 77 49 6e 66 6f 20 20 20 |GetWindowInfo | 000002d0 20 20 20 20 20 20 20 20 20 20 20 20 30 78 30 34 | 0x04| 000002e0 30 30 43 43 0a 23 64 65 66 69 6e 65 20 57 69 6d |00CC.#define Wim| 000002f0 70 5f 53 65 74 49 63 6f 6e 53 74 61 74 65 20 20 |p_SetIconState | 00000300 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 | 0x| 00000310 30 34 30 30 43 44 0a 23 64 65 66 69 6e 65 20 57 |0400CD.#define W| 00000320 69 6d 70 5f 47 65 74 49 63 6f 6e 53 74 61 74 65 |imp_GetIconState| 00000330 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000340 30 78 30 34 30 30 43 45 0a 23 64 65 66 69 6e 65 |0x0400CE.#define| 00000350 20 57 69 6d 70 5f 47 65 74 50 6f 69 6e 74 65 72 | Wimp_GetPointer| 00000360 49 6e 66 6f 20 20 20 20 20 20 20 20 20 20 20 20 |Info | 00000370 20 20 30 78 30 34 30 30 43 46 0a 23 64 65 66 69 | 0x0400CF.#defi| 00000380 6e 65 20 57 69 6d 70 5f 44 72 61 67 42 6f 78 20 |ne Wimp_DragBox | 00000390 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000003a0 20 20 20 20 30 78 30 34 30 30 44 30 0a 23 64 65 | 0x0400D0.#de| 000003b0 66 69 6e 65 20 57 69 6d 70 5f 46 6f 72 63 65 52 |fine Wimp_ForceR| 000003c0 65 64 72 61 77 20 20 20 20 20 20 20 20 20 20 20 |edraw | 000003d0 20 20 20 20 20 20 30 78 30 34 30 30 44 31 0a 23 | 0x0400D1.#| 000003e0 64 65 66 69 6e 65 20 57 69 6d 70 5f 53 65 74 43 |define Wimp_SetC| 000003f0 61 72 65 74 50 6f 73 69 74 69 6f 6e 20 20 20 20 |aretPosition | 00000400 20 20 20 20 20 20 20 20 30 78 30 34 30 30 44 32 | 0x0400D2| 00000410 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f 47 65 |.#define Wimp_Ge| 00000420 74 43 61 72 65 74 50 6f 73 69 74 69 6f 6e 20 20 |tCaretPosition | 00000430 20 20 20 20 20 20 20 20 20 20 30 78 30 34 30 30 | 0x0400| 00000440 44 33 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f |D3.#define Wimp_| 00000450 43 72 65 61 74 65 4d 65 6e 75 20 20 20 20 20 20 |CreateMenu | 00000460 20 20 20 20 20 20 20 20 20 20 20 20 30 78 30 34 | 0x04| 00000470 30 30 44 34 0a 23 64 65 66 69 6e 65 20 57 69 6d |00D4.#define Wim| 00000480 70 5f 44 65 63 6f 64 65 4d 65 6e 75 20 20 20 20 |p_DecodeMenu | 00000490 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 | 0x| 000004a0 30 34 30 30 44 35 0a 23 64 65 66 69 6e 65 20 57 |0400D5.#define W| 000004b0 69 6d 70 5f 57 68 69 63 68 49 63 6f 6e 20 20 20 |imp_WhichIcon | 000004c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000004d0 30 78 30 34 30 30 44 36 0a 23 64 65 66 69 6e 65 |0x0400D6.#define| 000004e0 20 57 69 6d 70 5f 53 65 74 45 78 74 65 6e 74 20 | Wimp_SetExtent | 000004f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000500 20 20 30 78 30 34 30 30 44 37 0a 23 64 65 66 69 | 0x0400D7.#defi| 00000510 6e 65 20 57 69 6d 70 5f 53 65 74 50 6f 69 6e 74 |ne Wimp_SetPoint| 00000520 65 72 53 68 61 70 65 20 20 20 20 20 20 20 20 20 |erShape | 00000530 20 20 20 20 30 78 30 34 30 30 44 38 0a 23 64 65 | 0x0400D8.#de| 00000540 66 69 6e 65 20 57 69 6d 70 5f 4f 70 65 6e 54 65 |fine Wimp_OpenTe| 00000550 6d 70 6c 61 74 65 20 20 20 20 20 20 20 20 20 20 |mplate | 00000560 20 20 20 20 20 20 30 78 30 34 30 30 44 39 0a 23 | 0x0400D9.#| 00000570 64 65 66 69 6e 65 20 57 69 6d 70 5f 43 6c 6f 73 |define Wimp_Clos| 00000580 65 54 65 6d 70 6c 61 74 65 20 20 20 20 20 20 20 |eTemplate | 00000590 20 20 20 20 20 20 20 20 30 78 30 34 30 30 44 41 | 0x0400DA| 000005a0 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f 4c 6f |.#define Wimp_Lo| 000005b0 61 64 54 65 6d 70 6c 61 74 65 20 20 20 20 20 20 |adTemplate | 000005c0 20 20 20 20 20 20 20 20 20 20 30 78 30 34 30 30 | 0x0400| 000005d0 44 42 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f |DB.#define Wimp_| 000005e0 50 72 6f 63 65 73 73 4b 65 79 20 20 20 20 20 20 |ProcessKey | 000005f0 20 20 20 20 20 20 20 20 20 20 20 20 30 78 30 34 | 0x04| 00000600 30 30 44 43 0a 23 64 65 66 69 6e 65 20 57 69 6d |00DC.#define Wim| 00000610 70 5f 43 6c 6f 73 65 44 6f 77 6e 20 20 20 20 20 |p_CloseDown | 00000620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 | 0x| 00000630 30 34 30 30 44 44 0a 23 64 65 66 69 6e 65 20 57 |0400DD.#define W| 00000640 69 6d 70 5f 53 74 61 72 74 54 61 73 6b 20 20 20 |imp_StartTask | 00000650 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000660 30 78 30 34 30 30 44 45 0a 23 64 65 66 69 6e 65 |0x0400DE.#define| 00000670 20 57 69 6d 70 5f 52 65 70 6f 72 74 45 72 72 6f | Wimp_ReportErro| 00000680 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |r | 00000690 20 20 30 78 30 34 30 30 44 46 0a 23 64 65 66 69 | 0x0400DF.#defi| 000006a0 6e 65 20 57 69 6d 70 5f 47 65 74 57 69 6e 64 6f |ne Wimp_GetWindo| 000006b0 77 4f 75 74 6c 69 6e 65 20 20 20 20 20 20 20 20 |wOutline | 000006c0 20 20 20 20 30 78 30 34 30 30 45 30 0a 23 64 65 | 0x0400E0.#de| 000006d0 66 69 6e 65 20 57 69 6d 70 5f 50 6f 6c 6c 49 64 |fine Wimp_PollId| 000006e0 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |le | 000006f0 20 20 20 20 20 20 30 78 30 34 30 30 45 31 0a 23 | 0x0400E1.#| 00000700 64 65 66 69 6e 65 20 57 69 6d 70 5f 50 6c 6f 74 |define Wimp_Plot| 00000710 49 63 6f 6e 20 20 20 20 20 20 20 20 20 20 20 20 |Icon | 00000720 20 20 20 20 20 20 20 20 30 78 30 34 30 30 45 32 | 0x0400E2| 00000730 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f 53 65 |.#define Wimp_Se| 00000740 74 4d 6f 64 65 20 20 20 20 20 20 20 20 20 20 20 |tMode | 00000750 20 20 20 20 20 20 20 20 20 20 30 78 30 34 30 30 | 0x0400| 00000760 45 33 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f |E3.#define Wimp_| 00000770 53 65 74 50 61 6c 65 74 74 65 20 20 20 20 20 20 |SetPalette | 00000780 20 20 20 20 20 20 20 20 20 20 20 20 30 78 30 34 | 0x04| 00000790 30 30 45 34 0a 23 64 65 66 69 6e 65 20 57 69 6d |00E4.#define Wim| 000007a0 70 5f 52 65 61 64 50 61 6c 65 74 74 65 20 20 20 |p_ReadPalette | 000007b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 | 0x| 000007c0 30 34 30 30 45 35 0a 23 64 65 66 69 6e 65 20 57 |0400E5.#define W| 000007d0 69 6d 70 5f 53 65 74 43 6f 6c 6f 75 72 20 20 20 |imp_SetColour | 000007e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000007f0 30 78 30 34 30 30 45 36 0a 23 64 65 66 69 6e 65 |0x0400E6.#define| 00000800 20 57 69 6d 70 5f 53 65 6e 64 4d 65 73 73 61 67 | Wimp_SendMessag| 00000810 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |e | 00000820 20 20 30 78 30 34 30 30 45 37 0a 23 64 65 66 69 | 0x0400E7.#defi| 00000830 6e 65 20 57 69 6d 70 5f 43 72 65 61 74 65 53 75 |ne Wimp_CreateSu| 00000840 62 4d 65 6e 75 20 20 20 20 20 20 20 20 20 20 20 |bMenu | 00000850 20 20 20 20 30 78 30 34 30 30 45 38 0a 23 64 65 | 0x0400E8.#de| 00000860 66 69 6e 65 20 57 69 6d 70 5f 53 70 72 69 74 65 |fine Wimp_Sprite| 00000870 4f 70 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |Op | 00000880 20 20 20 20 20 20 30 78 30 34 30 30 45 39 0a 23 | 0x0400E9.#| 00000890 64 65 66 69 6e 65 20 57 69 6d 70 5f 42 61 73 65 |define Wimp_Base| 000008a0 4f 66 53 70 72 69 74 65 73 20 20 20 20 20 20 20 |OfSprites | 000008b0 20 20 20 20 20 20 20 20 30 78 30 34 30 30 45 41 | 0x0400EA| 000008c0 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f 42 6c |.#define Wimp_Bl| 000008d0 6f 63 6b 43 6f 70 79 20 20 20 20 20 20 20 20 20 |ockCopy | 000008e0 20 20 20 20 20 20 20 20 20 20 30 78 30 34 30 30 | 0x0400| 000008f0 45 42 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f |EB.#define Wimp_| 00000900 53 6c 6f 74 53 69 7a 65 20 20 20 20 20 20 20 20 |SlotSize | 00000910 20 20 20 20 20 20 20 20 20 20 20 20 30 78 30 34 | 0x04| 00000920 30 30 45 43 0a 23 64 65 66 69 6e 65 20 57 69 6d |00EC.#define Wim| 00000930 70 5f 52 65 61 64 50 69 78 54 72 61 6e 73 20 20 |p_ReadPixTrans | 00000940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 | 0x| 00000950 30 34 30 30 45 44 0a 23 64 65 66 69 6e 65 20 57 |0400ED.#define W| 00000960 69 6d 70 5f 43 6c 61 69 6d 46 72 65 65 4d 65 6d |imp_ClaimFreeMem| 00000970 6f 72 79 20 20 20 20 20 20 20 20 20 20 20 20 20 |ory | 00000980 30 78 30 34 30 30 45 45 0a 23 64 65 66 69 6e 65 |0x0400EE.#define| 00000990 20 57 69 6d 70 5f 43 6f 6d 6d 61 6e 64 57 69 6e | Wimp_CommandWin| 000009a0 64 6f 77 20 20 20 20 20 20 20 20 20 20 20 20 20 |dow | 000009b0 20 20 30 78 30 34 30 30 45 46 0a 23 64 65 66 69 | 0x0400EF.#defi| 000009c0 6e 65 20 57 69 6d 70 5f 54 65 78 74 43 6f 6c 6f |ne Wimp_TextColo| 000009d0 75 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |ur | 000009e0 20 20 20 20 30 78 30 34 30 30 46 30 0a 23 64 65 | 0x0400F0.#de| 000009f0 66 69 6e 65 20 57 69 6d 70 5f 54 72 61 6e 73 66 |fine Wimp_Transf| 00000a00 65 72 42 6c 6f 63 6b 20 20 20 20 20 20 20 20 20 |erBlock | 00000a10 20 20 20 20 20 20 30 78 30 34 30 30 46 31 0a 23 | 0x0400F1.#| 00000a20 64 65 66 69 6e 65 20 57 69 6d 70 5f 52 65 61 64 |define Wimp_Read| 00000a30 53 79 73 49 6e 66 6f 20 20 20 20 20 20 20 20 20 |SysInfo | 00000a40 20 20 20 20 20 20 20 20 30 78 30 34 30 30 46 32 | 0x0400F2| 00000a50 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f 53 65 |.#define Wimp_Se| 00000a60 74 46 6f 6e 74 43 6f 6c 6f 75 72 73 20 20 20 20 |tFontColours | 00000a70 20 20 20 20 20 20 20 20 20 20 30 78 30 34 30 30 | 0x0400| 00000a80 46 33 0a 23 64 65 66 69 6e 65 20 57 69 6d 70 5f |F3.#define Wimp_| 00000a90 47 65 74 4d 65 6e 75 53 74 61 74 65 20 20 20 20 |GetMenuState | 00000aa0 20 20 20 20 20 20 20 20 20 20 20 20 30 78 30 34 | 0x04| 00000ab0 30 30 46 34 0a 23 64 65 66 69 6e 65 20 57 69 6d |00F4.#define Wim| 00000ac0 70 5f 52 65 67 69 73 74 65 72 46 69 6c 74 65 72 |p_RegisterFilter| 00000ad0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 | 0x| 00000ae0 30 34 30 30 46 35 0a 23 64 65 66 69 6e 65 20 57 |0400F5.#define W| 00000af0 69 6d 70 5f 41 64 64 4d 65 73 73 61 67 65 73 20 |imp_AddMessages | 00000b00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000b10 30 78 30 34 30 30 46 36 0a 0a 0a 0a 23 65 6e 64 |0x0400F6....#end| 00000b20 69 66 0a 0a |if..| 00000b24