?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. txt_memoryerror:    db 0x0A,"Memory allocation error!",0x0D,0x0A,0
  2. txt_fopenerror:     db 0x0A,"Cannot open file: ",0
  3. txt_fcreateerror:    db 0x0A,"Cannot create file: ",0
  4. txt_freaderror:     db 0x0A,"Cannot read file: ",0
  5. txt_fwriteerror:     db 0x0A,"Cannot write file: ",0   
  6. txt_dircherror:     db 0x0A,"Cannot change directory: ",0
  7. txt_unkcode:        db 0x0A,"unknown code: ",0
  8. txt_nl:             db 0x0D,0x0A,0
  9. txt_unkflag:     db 0x0A,"Unknown flg_if: ",0
  10.  
  11.  
  12.  
  13. ;------------------------
  14.  
  15. loadedCg:       ds 32,0
  16. text_pointer:   dw 0
  17.        
  18. redraw_border: db 0   ;if set is not zero - redraw border, then set variable to zero  ; if set - F_0 required then loaded
  19.  
  20.  
  21.  
  22. first_word      db 0 ; is first word in line flag
  23. first_letter    db 0
  24. just_cr         db 0 ;
  25.  
  26. ;-----memory------
  27. winpage0:    db 0 ;0x0000-0x3fff
  28. script_buf1:
  29. winpage1:    db 0 ;0x4000-0x7fff
  30. script_buf2:
  31. winpage2:    db 0 ;0x8000-0xbfff
  32. winpage3:    db 0 ;0xc000-0xffff
  33.  
  34. ;reserved pages in memory
  35.  
  36. plr_page:    db 0
  37. plr_page2:    db 0
  38. plr_page3:    db 0
  39.  
  40. load_buf1:   db 0  ;13
  41. load_buf2:   db 0  ;24
  42.  
  43. mem_buf1:    db 0 ;13
  44. mem_buf2:    db 0 ;24
  45.  
  46. mem_buf3:    db 0 ;13
  47. mem_buf4:    db 0 ;24
  48.  
  49. scr_buf1:    db 0 ;13 ;additional buffers. (reserved) !!! load sprites here !!!
  50. scr_buf2:    db 0 ;24 ;additional buffers. (reserved)
  51. ;-------------
  52.  
  53. src_buf1:     db 0 ;datasource for screen output
  54. src_buf2:     db 0
  55. ;------------
  56. font_page      db 0;here goes font_rus
  57.  
  58. bank1:  db 0  ;current page for 4000
  59. bank2:  db 0  ;current page for 8000
  60. bank3:  db 0  ;current page for c000
  61.  
  62.  
  63. tbank1 db 0  ;temp page store for 4000
  64. tbank2 db 0  ;temp page store for 8000
  65. tbank3: db 0  ;temp page store for c000
  66.  
  67.  
  68. zbank1 db 0  ;temp page store for 4000
  69. zbank2 db 0  ;temp page store for 8000
  70. zbank3: db 0  ;temp page store for c000
  71. ;----setup---
  72. res_path:    db "tenkosei",0
  73.  
  74. language:    db 1  ;0 eng | 1 rus
  75. gfx_mode:    db 0  ;0 DDp | 1 16c | 2 ATM
  76. mus_mode:    db 0  ;0 AY  | 1 s98
  77. tsfm_mode    db 0 ;0- mode1 nedopc ;1-mode 2 moonsound
  78. tsfm_detected   db 0 ;0- no ;1-yes
  79.  
  80. censor_mode db 0  ;0-normal 1-censorship
  81. ;------intro-----
  82.  
  83. menu_pic         db "th_ti00",0
  84. menu_mus         db 24
  85.  
  86. anim_w          db "push4",0
  87.  
  88. font_file       db "font_rus.bin",0
  89. font_file2       db "font1251.bin",0
  90.  
  91. SAVETEMPL       db "TSIDATA0.000",0
  92. SAVETEMPL_N     equ SAVETEMPL+7
  93. SAVETEMPL_EXT   equ SAVETEMPL+9
  94.  
  95. PERSISTSAVE     db "CDATA",0
  96.  
  97. ;FSTOVL         db "MON_01.OVL",0
  98. FSTOVL          db "MON_01.OVL",0  ;for test purposes
  99.  
  100. OVL             ds 32,0
  101. LOADED          ds 32,0
  102. SAVESLOT:       ds 33,0
  103.  
  104. t_mus:         db 0
  105.  
  106. ;---palette----
  107. setpalflag:  db 0
  108.  
  109. stdpal:  STANDARDPAL
  110. pal:     ds 32,0xff
  111. mempal:  ds 32,0xff
  112. temppal:  ds 32,0xff
  113.  
  114. t_pal:  ds 32,0xff
  115.  
  116. niggapal:
  117.           ds 32,0xff
  118.  
  119. whitepal:  ds 32,0x0c ;00001100b
  120. redpal:    ds 32,0xbd
  121.  
  122.  
  123. blackpal:
  124.           ds 16,0xff
  125.           db 0x8c,0xff ;db 0x9c,0x9c
  126.           ds 12,0x0ff
  127.           db 0x0c,0x0c 
  128.  
  129. nblackpal:
  130.           db 0xff,0xff
  131.           db 0x9c,0x9c  ;  db 0x8c,0xff
  132.           ds 12,0xff
  133.           db 0x8c,0xff ;db 0x9c,0x9c
  134.           ds 12,0x0ff
  135.           db 0x0c,0x0c   
  136.  
  137.  
  138.  
  139. pal_rgb   ds 32,0xff
  140.  
  141.  
  142. DDp_pal:
  143. ;blackpal:
  144.           ds 16,0xff
  145.           db 0x8c,0xff ;db 0x9c,0x9c
  146.           ds 12,0x0ff
  147.           db 0x0c,0x0c 
  148. ;nblackpal:
  149.           db 0xff,0xff
  150.           db 0xce,0x8c  ;  db 0x8c,0xff
  151.           ds 12,0xff
  152.           db 0x8c,0xff ;db 0x9c,0x9c
  153.           ds 12,0x0ff
  154.           db 0x0c,0x0c   
  155. ATM_pal:
  156. ;blackpal:
  157.           ds 16,0xff
  158.           db 0x8c,0x8c ;db 0x9c,0x9c
  159.           ds 12,0x0ff
  160.           db 0x0c,0x0c 
  161. ;nblackpal:
  162.           db 0xff,0xff
  163.           db 0x8c,0x8c  ;  db 0x8c,0xff
  164.           ds 12,0xff
  165.           db 0x1f,0x1f ;db 0x9c,0x9c
  166.           ds 12,0x0ff
  167.           db 0x0c,0x0c   
  168.  
  169. ;-------keyboard
  170. keyreg db 0
  171. keymatrixbc dw 0
  172. keymatrixde dw 0
  173. keymatrixhl dw 0
  174. keymatrixix dw 0
  175.  
  176. lastvar
  177. lastkey db 0
  178. lastspace dw 0
  179. lastchar db 0
  180. ;------------------------------
  181. CORDS dw 0
  182. CORDS_P dw 0
  183.  
  184. g_curpos dw 0 ;
  185. g_atpos  dw 0 ;
  186. ;------------------------------
  187. DELAY db 0
  188. ;------------------------------
  189. mus_path1:
  190.         db "mus/",0
  191. mus_path2:        
  192.         db  "/mt_00.",0
  193.  
  194. gfx_path1:        
  195.                 db "gfx/",0
  196. gfx_ext db ".16c",0            
  197.  
  198. ovl_path1:
  199.                 db "ovl/",0    
  200.  
  201. censor_path: db "censored/",0
  202.  
  203. ;------------------------------
  204. namebuf ds 14,0
  205. namebuf1: ds 128,0
  206. namebuf2: ds 128,0
  207. ovlnamebuf ds 128,0
  208.  
  209.  
  210. MENUCURHELPER:
  211. ;MENUCURHELPER_MAINMNU
  212.         dw 0x9902+80
  213.         dw 0x9902+320+80
  214.         dw 0x9902+320+320+80
  215.         dw 0x9902+320+320+320+80
  216.  
  217.         dw 0x9912+80
  218.         dw 0x9912+320+80
  219.         dw 0x9912+320+320+80
  220.         dw 0x9912+320+320+320+80
  221.  
  222.  
  223. MENUCURHELPER_MAINMNU:
  224.         dw  0x96df;+40 ; 0x9902+80-320-320
  225.         dw 0x981f;+40 ;0x9902+80-320
  226.         dw 0x995f;+40   ;0x9902+80
  227.         dw 0x9a4f;+40  ;0x9902+320
  228.  
  229. ;       dw 0xD692-2+80
  230. ;       dw 0xD692+320-2+80
  231. ;       dw 0xD692+320+320-2+80
  232. ;       dw 0xD692+320+320+320-2+80