?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. ;### APPLICATION HEADER #######################################################
  2.  
  3. txtbufmax   equ 16384-1-1536-2
  4. txtlinmax   equ 1000
  5.  
  6. ;header structure
  7. prgdatcod       equ 0           ;Length of the code area (OS will place this area everywhere)
  8. prgdatdat       equ 2           ;Length of the data area (screen manager data; OS will place this area inside a 16k block of one 64K bank)
  9. prgdattra       equ 4           ;Length of the transfer area (stack, message buffer, desktop manager data; placed between #c000 and #ffff of a 64K bank)
  10. prgdatorg       equ 6           ;Original origin of the assembler code
  11. prgdatrel       equ 8           ;Number of entries in the relocator table
  12. prgdatstk       equ 10          ;Length of the stack in bytes
  13. prgdatrs1       equ 12          ;*reserved* (3 bytes)
  14. prgdatnam       equ 15          ;program name (24+1[0] chars)
  15. prgdatflg       equ 40          ;flags (+1=16colour icon available)
  16. prgdat16i       equ 41          ;file offset of 16colour icon
  17. prgdatrs2       equ 43          ;*reserved* (5 bytes)
  18. prgdatidn       equ 48          ;"SymExe10" SymbOS executable file identification
  19. prgdatcex       equ 56          ;additional memory for code area (will be reserved directly behind the loaded code area)
  20. prgdatdex       equ 58          ;additional memory for data area (see above)
  21. prgdattex       equ 60          ;additional memory for transfer area (see above)
  22. prgdatres       equ 62          ;*reserviert* (26 bytes)
  23. prgdatver       equ 88          ;required OS version (1.0)
  24. prgdatism       equ 90          ;Application icon (small version), 8x8 pixel, SymbOS graphic format
  25. prgdatibg       equ 109         ;Application icon (big version), 24x24 pixel, SymbOS graphic format
  26. prgdatlen       equ 256         ;length of header
  27.  
  28. prgpstdat       equ 6           ;start address of the data area
  29. prgpsttra       equ 8           ;start address of the transfer area
  30. prgpstspz       equ 10          ;additional sub process or timer IDs (4*1)
  31. prgpstbnk       equ 14          ;64K ram bank (1-8), where the application is located
  32. prgpstmem       equ 48          ;additional memory areas; 8 memory areas can be registered here, each entry consists of 5 bytes
  33.                                 ;00  1B  Ram bank number (1-8; if 0, the entry will be ignored)
  34.                                 ;01  1W  Address
  35.                                 ;03  1W  Length
  36. prgpstnum       equ 88          ;Application ID
  37. prgpstprz       equ 89          ;Main process ID
  38.  
  39. prgcodbeg   dw prgdatbeg-prgcodbeg  ;length of code area
  40.             dw prgtrnbeg-prgdatbeg  ;length of data area
  41.             dw prgtrnend-prgtrnbeg  ;length of transfer area
  42. prgdatadr   dw #1000                ;original origin                    POST address data area
  43. prgtrnadr   dw relocate_count       ;number of relocator table entries  POST address transfer area
  44. prgprztab   dw prgstk-prgtrnbeg     ;stack length                       POST table processes
  45.             dw 0                    ;*reserved*
  46. prgbnknum   db 0                    ;*reserved*                         POST bank number
  47.             db "Notepad":ds 32-7-8:db 0 ;Name
  48.             db 1                    ;flags (+1=16c icon)
  49.             dw prgicn16c-prgcodbeg  ;16 colour icon offset
  50.             ds 5                    ;*reserved*
  51. prgmemtab   db "SymExe10"           ;SymbOS-EXE-identifier              POST table reserved memory areas
  52.             dw 0                    ;additional code memory
  53.             dw txtbufmax+1536+2     ;additional data memory
  54.             dw txtlinmax*2          ;additional transfer memory
  55.             ds 26                   ;*reserviert*
  56.             db 1,2                  ;required OS version (2.1)
  57.  
  58. prgicnsml   db 2,8,8,#31,#F5,#23,#3F,#56,#6E,#47,#6E,#8F,#EA,#FF,#AE,#74,#E2,#77,#EE
  59. prgicnbig   db 6,24,24
  60.             db #00,#00,#D0,#B0,#60,#C0,#00,#10,#60,#D0,#B0,#60,#00,#31,#F6,#FD,#FB,#F4,#00,#31,#FF,#FF,#FF,#FC,#00,#73,#FF,#FF,#FF,#FA,#00,#73,#FF,#FF,#FF,#FA,#00,#F7,#F0,#F0,#F7,#B6,#00,#F7,#FF,#FF,#FF,#F6
  61.             db #10,#FE,#F0,#F0,#FE,#3E,#10,#FF,#FF,#FF,#FE,#3E,#31,#FF,#FF,#FF,#FD,#FE,#31,#FF,#FF,#FF,#ED,#3A,#73,#FF,#FF,#FF,#CB,#3A,#73,#FF,#FF,#FF,#FB,#FE,#F7,#FF,#FF,#FF,#87,#32,#F7,#FF,#FF,#FF,#87,#32
  62.             db #70,#F0,#F0,#F0,#FF,#FE,#00,#21,#0F,#0F,#0E,#32,#00,#21,#0F,#0F,#0E,#32,#00,#31,#FF,#FF,#FF,#FE,#00,#21,#0F,#0F,#0C,#32,#00,#20,#00,#00,#00,#76,#00,#10,#FF,#FF,#FF,#EC,#00,#00,#F0,#F0,#F0,#C0
  63.