Subversion Repositories Kolibri OS

Rev

Rev 109 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 109 Rev 331
Line 2... Line 2...
2
; Compile with FASM for Menuet
2
; Compile with FASM for Menuet
Line 3... Line 3...
3
   
3
   
4
;B+ System header
4
;B+ System header
5
use32
5
use32
6
org 0x0
6
 org	0x0
7
 db  'MENUET01'
7
 db	'MENUET01'    ; header
8
 dd  0x01
8
 dd	0x01	      ; header version
9
 dd  START
9
 dd	START	      ; entry point
10
 dd  I_END
10
 dd	I_END	      ; image size
11
 dd  0x100000
11
 dd	I_END+0x10000 ; required memory
12
 dd  0x7fff0
12
 dd	I_END+0x10000 ; esp
-
 
13
 dd	0x0 , 0x0     ; I_Param , I_Path
13
 dd  0x0,0x0
14
 
14
;E:.
15
;E:.
15
include 'lang.inc'   
16
include 'lang.inc'   
16
;B+ Definitions
17
;B+ Definitions
17
v_sp equ 330
18
v_sp equ 330
Line 141... Line 142...
141
  jmp  still
142
  jmp  still
142
;E:.
143
;E:.
Line 143... Line 144...
143
   
144
   
144
draw_window:
145
draw_window:
145
;B+ Draw window
-
 
146
  mov  ebx,1
-
 
147
  mov  eax,12
-
 
Line 148... Line 146...
148
  int  0x40
146
;B+ Draw window
149
   
147
  
150
  mov  ebx,3
148
  mov  ebx,3
151
  mov  ecx,sys_colors
149
  mov  ecx,sys_colors
152
  mov  edx,10*4
150
  mov  edx,10*4
Line -... Line 151...
-
 
151
  mov  eax,48
-
 
152
  int  0x40
-
 
153
 
-
 
154
  mov  ebx,1
-
 
155
  mov  eax,12
153
  mov  eax,48
156
  int  0x40
154
  int  0x40
157
 
155
   
158
  xor  eax,eax		     ;DRAW WINDOW
156
  mov  ebx,150*65536+h_sp
159
  mov  ebx,150*65536+h_sp
157
  mov  ecx,100*65536+v_sp
-
 
158
  mov  edx,[sys_colors+4*5]
-
 
159
  or   edx,0x02000000
-
 
160
  mov  esi,[sys_colors+4*1]
-
 
161
  or   esi,0x80000000
-
 
162
  mov  edi,[sys_colors+4*0]
-
 
163
  mov  eax,0
-
 
164
  int  0x40
-
 
165
   
-
 
166
  mov  ebx,8*65536+8
160
  mov  ecx,100*65536+v_sp
167
  mov  ecx,[sys_colors+4*4]
-
 
168
  or   ecx,0x10000000
-
 
169
  mov  edx,caption
-
 
170
  mov  esi,caption_end-caption
-
 
171
  mov  eax,4
-
 
172
  int  0x40
-
 
173
   
-
 
174
  mov  ebx,(400-19) shl 16 + 12
-
 
175
  mov  ecx,5 shl 16 + 12
-
 
176
  mov  edx,1
161
  mov  edx,[sys_colors+4*5]
Line 177... Line 162...
177
  mov  esi,[sys_colors+4*2]
162
  or   edx,0x13000000
178
  mov  eax,8
163
  mov  edi,header
179
  int  0x40
164
  int  0x40
Line 1059... Line 1044...
1059
fr_e db 0                                               ;del
1044
fr_e db 0						;del
1060
                                                        ;del
1045
							;del
1061
times 200 db 0                                          ;del
1046
times 200 db 0						;del
1062
                                                        ;del
1047
							;del
1063
last_friend_line dd 0x6                                 ;del
1048
last_friend_line dd 0x6 				;del
1064
;E:.                                                    ;del
-
 
Line 1065... Line -...
1065
   
-
 
1066
;B+ Data area
-
 
1067
;caption db 'Yahoo Messanger for MenuetOS'
1049
 
1068
caption db 'Messinger (Yahoo Compatible)'
-
 
Line 1069... Line 1050...
1069
caption_end:
1050
header db 'Messenger (Yahoo Compatible)',0
1070
   
1051
   
1071
;User / Password
1052
;User / Password
1072
login_txt db 'STATUS:            SESSION: ___.___.___.___'
1053
login_txt db 'STATUS:            SESSION: ___.___.___.___'