Rev 109 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 109 | Rev 131 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | jge bg4 |
105 | jge bg4 |
Line 106... | Line 106... | ||
106 | 106 | ||
Line 107... | Line -... | ||
107 | jmp bg2 |
- | |
108 | - | ||
109 | - | ||
110 | set_default_colours: |
- | |
111 | - | ||
112 | pusha |
- | |
113 | - | ||
114 | mov eax,6 ; load default color map |
- | |
115 | mov ebx,defcol |
- | |
116 | mov ecx,0 |
- | |
117 | mov edx,-1 |
- | |
118 | mov esi,0x8000 |
- | |
119 | int 0x40 |
- | |
120 | - | ||
121 | mov eax,48 ; set default color map |
- | |
122 | mov ebx,2 |
- | |
123 | mov ecx,0x8000 |
- | |
124 | mov edx,10*4 |
- | |
125 | int 0x40 |
- | |
126 | - | ||
127 | popa |
- | |
128 | ret |
- | |
129 | - | ||
130 | defcol db 'DEFAULT.DTP' |
107 | jmp bg2 |
Line 131... | Line 108... | ||
131 | 108 | ||
132 | 109 | ||
133 | check_parameters: |
110 | check_parameters: |
134 | 111 | ||
Line 135... | Line -... | ||
135 | cmp [I_Param],dword 'BOOT' |
- | |
136 | je @f |
112 | cmp [I_Param],dword 'BOOT' |
Line 137... | Line 113... | ||
137 | ret |
113 | je @f |
138 | @@: |
114 | ret |
139 | 115 | @@: |
|
140 | call set_default_colours |
116 | |
141 | call load_texture |
117 | call load_texture |
Line 142... | Line 118... | ||
142 | 118 | ||
143 | mov eax,15 |
119 | mov eax,15 |
144 | mov ebx,1 |
120 | mov ebx,1 |
- | 121 | mov ecx,256 |
|
145 | mov ecx,256 |
122 | mov edx,256 |
146 | mov edx,256 |
123 | int 0x40 |
147 | int 0x40 |
124 | |
Line 148... | Line 125... | ||
148 | 125 | mov eax,15 |
|
Line 306... | Line 283... | ||
306 | mov ebp,[usearray] |
283 | mov ebp,[usearray] |
Line 307... | Line 284... | ||
307 | 284 | ||
308 | ylup: |
285 | ylup: |
Line 309... | Line 286... | ||
309 | mov ebx,0 |
286 | mov ebx,0 |
Line 310... | Line 287... | ||
310 | 287 | ||
311 | call precalcbar |
288 | ; call precalcbar |
312 | 289 | ||
313 | xlup: |
290 | xlup: |
Line 340... | Line 317... | ||
340 | cmp [ebp+edi],dword 777 |
317 | cmp [ebp+edi],dword 777 |
341 | jne pixlup |
318 | jne pixlup |
Line 342... | Line 319... | ||
342 | 319 | ||
Line 343... | Line 320... | ||
343 | mov eax,esi ; now evaluate color... |
320 | mov eax,esi ; now evaluate color... |
344 | 321 | ||
345 | cmp eax,255*24 |
322 | ; cmp eax,255*24 |
346 | jbe ok2 |
323 | ; jbe ok2 |
Line 347... | Line 324... | ||
347 | ; imul eax,12 |
324 | ; imul eax,12 |
348 | ok2: |
325 | ; ok2: |
Line 349... | Line 326... | ||
349 | 326 | ||
Line 374... | Line 351... | ||
374 | neg eax |
351 | neg eax |
375 | add eax,256 |
352 | add eax,256 |
376 | nowrap: |
353 | nowrap: |
377 | ret |
354 | ret |
Line 378... | Line 355... | ||
378 | 355 | ||
379 | precalcbar: |
356 | ;precalcbar: |
380 | pusha |
357 | ; pusha |
381 | mov eax,1 |
358 | ; mov eax,1 |
382 | mov ebx,ecx |
359 | ; mov ebx,ecx |
383 | add ebx,18 |
360 | ; add ebx,18 |
384 | mov ecx,44 |
361 | ; mov ecx,44 |
385 | mov edx,0x00000060 |
362 | ; mov edx,0x00000060 |
386 | bar: |
363 | ; bar: |
387 | add ecx,2 |
364 | ; add ecx,2 |
388 | add edx,0x00020100 |
365 | ; add edx,0x00020100 |
389 | ; int 0x40 |
366 | ; int 0x40 |
390 | cmp ecx,298 |
367 | ; cmp ecx,298 |
391 | jb bar |
368 | ; jb bar |
392 | popa |
369 | ; popa |
Line 393... | Line 370... | ||
393 | ret |
370 | ; ret |
394 | 371 | ||
395 | ; ********************************************* |
372 | ; ********************************************* |
Line 515... | Line 492... | ||
515 | mov edx,14 ; button number |
492 | mov edx,14 ; button number |
516 | mov ebx,(18)*65536+17 ; button start x & size |
493 | mov ebx,(18)*65536+17 ; button start x & size |
517 | mov ecx,(y_add2+40)*65536+14 ; button start y & size |
494 | mov ecx,(y_add2+40)*65536+14 ; button start y & size |
Line 518... | Line 495... | ||
518 | 495 | ||
519 | newcb: |
- | |
520 | push edx |
- | |
521 | sub edx,14 |
- | |
522 | shl edx,2 |
- | |
523 | add edx,colors |
496 | newcb: |
524 | mov esi,[edx] |
- | |
Line 525... | Line 497... | ||
525 | pop edx |
497 | mov esi,[(edx-14)*4+colors] |
526 | 498 | ||
Line 527... | Line 499... | ||
527 | mov eax,8 |
499 | mov eax,8 |