?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. nolist
  2.  
  3. org #1000
  4.  
  5. write "nslookup.com"
  6. READ <SymbOS-Constants.asm>
  7.  
  8. relocate_start
  9.  
  10. App_BegCode
  11.  
  12. ;### APPLICATION HEADER #######################################################
  13.  
  14. ;header structure
  15. prgdatcod       equ 0           ;Length of the code area (OS will place this area everywhere)
  16. prgdatdat       equ 2           ;Length of the data area (screen manager data; OS will place this area inside a 16k block of one 64K bank)
  17. prgdattra       equ 4           ;Length of the transfer area (stack, message buffer, desktop manager data; placed between #c000 and #ffff of a 64K bank)
  18. prgdatorg       equ 6           ;Original origin of the assembler code
  19. prgdatrel       equ 8           ;Number of entries in the relocator table
  20. prgdatstk       equ 10          ;Length of the stack in bytes
  21. prgdatrs1       equ 12          ;*reserved* (3 bytes)
  22. prgdatnam       equ 15          ;program name (24+1[0] chars)
  23. prgdatflg       equ 40          ;flags (+1=16colour icon available)
  24. prgdat16i       equ 41          ;file offset of 16colour icon
  25. prgdatrs2       equ 43          ;*reserved* (5 bytes)
  26. prgdatidn       equ 48          ;"SymExe10" SymbOS executable file identification
  27. prgdatcex       equ 56          ;additional memory for code area (will be reserved directly behind the loaded code area)
  28. prgdatdex       equ 58          ;additional memory for data area (see above)
  29. prgdattex       equ 60          ;additional memory for transfer area (see above)
  30. prgdatres       equ 62          ;*reserved* (26 bytes)
  31. prgdatver       equ 88          ;required OS version (1.0)
  32. prgdatism       equ 90          ;Application icon (small version), 8x8 pixel, SymbOS graphic format
  33. prgdatibg       equ 109         ;Application icon (big version), 24x24 pixel, SymbOS graphic format
  34. prgdatlen       equ 256         ;length of header
  35.  
  36. prgpstdat       equ 6           ;start address of the data area
  37. prgpsttra       equ 8           ;start address of the transfer area
  38. prgpstspz       equ 10          ;additional sub process or timer IDs (4*1)
  39. prgpstbnk       equ 14          ;64K ram bank (1-15), where the application is located
  40. prgpstmem       equ 48          ;additional memory areas; 8 memory areas can be registered here, each entry consists of 5 bytes
  41.                                 ;00  1B  Ram bank number (1-8; if 0, the entry will be ignored)
  42.                                 ;01  1W  Address
  43.                                 ;03  1W  Length
  44. prgpstnum       equ 88          ;Application ID
  45. prgpstprz       equ 89          ;Main process ID
  46.  
  47.             dw App_BegData-App_BegCode  ;length of code area
  48.             dw App_BegTrns-App_BegData  ;length of data area
  49.             dw App_EndTrns-App_BegTrns  ;length of transfer area
  50. prgdatadr   dw #1000                ;original origin                    POST address data area
  51. prgtrnadr   dw relocate_count       ;number of relocator table entries  POST address transfer area
  52. prgprztab   dw prgstk-App_BegTrns   ;stack length                       POST table processes
  53.             dw 0                    ;*reserved*
  54. App_BnkNum  db 0                    ;*reserved*                         POST bank number
  55.             db "NsLookUp":ds 16:db 0 ;name
  56.             db 0                    ;flags (+1=16c icon)
  57.             dw 0                    ;16c icon offset
  58.             ds 5                    ;*reserved*
  59. prgmemtab   db "SymExe10"           ;SymbOS-EXE-identifier              POST table reserved memory areas
  60.             dw 0                    ;additional code memory
  61.             dw 0                    ;additional data memory
  62.             dw 0                    ;additional transfer memory
  63.             ds 26                   ;*reserved*
  64.             db 0,3                  ;required OS version (3.0)
  65. prgicnsml   db 2, 8, 8:ds  16
  66. prgicnbig   db 6,24,24:ds 144
  67.  
  68.  
  69. ;*** SYMSHELL LIBRARY USAGE
  70. ;   SyShell_PARALL              ;Fetches parameters/switches from command line
  71. ;   SyShell_PARSHL              ;Parses SymShell info switch
  72. use_SyShell_PARFLG      equ 1   ;Validates present switches
  73. use_SyShell_CHRINP      equ 0   ;Reads a char from the input source
  74. use_SyShell_STRINP      equ 0   ;Reads a string from the input source
  75. use_SyShell_CHROUT      equ 0   ;Sends a char to the output destination
  76. use_SyShell_STROUT      equ 1   ;Sends a string to the output destination
  77. use_SyShell_PTHADD      equ 0   ;...
  78. ;   SyShell_EXIT                ;Informs SymShell about an exit event
  79.  
  80. ;*** SYSTEM MANAGER LIBRARY USAGE
  81. use_SySystem_PRGRUN     equ 0   ;Starts an application or opens a document
  82. use_SySystem_PRGEND     equ 1   ;Stops an application and frees its resources
  83. use_SySystem_PRGSRV     equ 1   ;Manages shared services or finds applications
  84. use_SySystem_SYSWRN     equ 0   ;Opens an info, warning or confirm box
  85. use_SySystem_SELOPN     equ 0   ;Opens the file selection dialogue
  86. use_SySystem_HLPOPN     equ 0   ;HLP file handling
  87.  
  88. ;*** NETWORK DAEMON LIBRARY USAGE
  89. ;   SyNet_NETINI                ;...
  90. use_SyNet_NETEVT        equ 0   ;Network event check
  91. use_SyNet_CFGGET        equ 0   ;Config get data
  92. use_SyNet_CFGSET        equ 0   ;Config set data
  93. use_SyNet_CFGSCK        equ 0   ;Config socket status
  94. use_SyNet_TCPOPN        equ 0   ;TCP open connection
  95. use_SyNet_TCPCLO        equ 0   ;TCP close connecton
  96. use_SyNet_TCPSTA        equ 0   ;TCP status of connection
  97. use_SyNet_TCPRCV        equ 0   ;TCP receive from connection
  98. use_SyNet_TCPSND        equ 0   ;TCP send to connection
  99. use_SyNet_TCPSKP        equ 0   ;TCP skip received data
  100. use_SyNet_TCPFLS        equ 0   ;TCP flush send buffer
  101. use_SyNet_TCPDIS        equ 0   ;TCP disconnect connection
  102. use_SyNet_TCPRLN        equ 0   ;TCP receive textline from connection
  103. use_SyNet_UDPOPN        equ 0   ;UDP open
  104. use_SyNet_UDPCLO        equ 0   ;UDP close
  105. use_SyNet_UDPSTA        equ 0   ;UDP status
  106. use_SyNet_UDPRCV        equ 0   ;UDP receive
  107. use_SyNet_UDPSND        equ 0   ;UDP send
  108. use_SyNet_UDPSKP        equ 0   ;UDP skip received data
  109. use_SyNet_DNSRSV        equ 1   ;DNS resolve
  110. use_SyNet_DNSVFY        equ 1   ;DNS verify
  111.  
  112. READ <symbos_lib-SymShell.asm>
  113. READ <symbos_lib-SystemManager.asm>
  114. READ <symbos_lib-NetworkDaemon.asm>
  115. READ "Cmd-NsLookUp.asm"
  116.  
  117. App_EndTrns
  118.  
  119. relocate_table
  120. relocate_end
  121.