Rev 109 | Rev 552 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 109 | Rev 485 | ||
---|---|---|---|
Line 371... | Line 371... | ||
371 | { |
371 | { |
372 | wordstoreg ebx,x,xs ;x*65536+xs |
372 | wordstoreg ebx,x,xs ;x*65536+xs |
373 | wordstoreg ecx,y,ys ;y*65536+ys |
373 | wordstoreg ecx,y,ys ;y*65536+ys |
374 | mov edx,color |
374 | mov edx,color |
375 | mov eax,13 |
375 | mov eax,13 |
376 | int 0x40 |
376 | mcall |
377 | } |
377 | } |
Line 378... | Line 378... | ||
378 | 378 | ||
379 | ; FPS - Set Frame Per Second Display |
379 | ; FPS - Set Frame Per Second Display |
380 | fps_show_frequency=40 |
380 | fps_show_frequency=40 |
Line 388... | Line 388... | ||
388 | fps dd 0 |
388 | fps dd 0 |
389 | ttt dd 0 |
389 | ttt dd 0 |
390 | spdat: |
390 | spdat: |
391 | get_time: |
391 | get_time: |
392 | mov eax,3 |
392 | mov eax,3 |
393 | int 0x40 |
393 | mcall |
394 | cmp eax,[savetime] |
394 | cmp eax,[savetime] |
395 | jne new_time |
395 | jne new_time |
396 | inc [fps_cntr] |
396 | inc [fps_cntr] |
397 | cmp dword [ttt],0 |
397 | cmp dword [ttt],0 |
398 | je out_fps |
398 | je out_fps |
Line 407... | Line 407... | ||
407 | if ~(delcolor eq ) |
407 | if ~(delcolor eq ) |
408 | mov ebx,x*65536+30 |
408 | mov ebx,x*65536+30 |
409 | mov ecx,y*65536+7 |
409 | mov ecx,y*65536+7 |
410 | mov edx,delcolor |
410 | mov edx,delcolor |
411 | mov eax,13 |
411 | mov eax,13 |
412 | int 0x40 |
412 | mcall |
413 | end if |
413 | end if |
414 | mov dword [ttt],fps_show_frequency |
414 | mov dword [ttt],fps_show_frequency |
415 | mov eax,47 |
415 | mov eax,47 |
416 | mov ebx,5*65536 |
416 | mov ebx,5*65536 |
417 | ; mov bl,0 |
417 | ; mov bl,0 |
418 | mov edx,x*65536+y |
418 | mov edx,x*65536+y |
419 | mov esi,color |
419 | mov esi,color |
420 | mov ecx,[fps] |
420 | mov ecx,[fps] |
421 | int 0x40 |
421 | mcall |
422 | no_out_fps: |
422 | no_out_fps: |
423 | } |
423 | } |
Line 424... | Line 424... | ||
424 | 424 | ||
425 | ; COLLIMG - Collusion image's |
425 | ; COLLIMG - Collusion image's |
Line 494... | Line 494... | ||
494 | mov cx,[arg3] |
494 | mov cx,[arg3] |
495 | shl ecx,16 |
495 | shl ecx,16 |
496 | add cx,[arg3+4] |
496 | add cx,[arg3+4] |
497 | ; wordstoreg ecx,[arg3],[arg3+4] |
497 | ; wordstoreg ecx,[arg3],[arg3+4] |
498 | wordstoreg edx, x , y ;arg1*65536+arg2 |
498 | wordstoreg edx, x , y ;arg1*65536+arg2 |
499 | int 0x40 |
499 | mcall |
500 | } |
500 | } |
Line 501... | Line 501... | ||
501 | 501 | ||
502 | macro setframe x , y ,arg3 |
502 | macro setframe x , y ,arg3 |
503 | { |
503 | { |
504 | mov eax,7 |
504 | mov eax,7 |
505 | mov ebx,arg3 |
505 | mov ebx,arg3 |
506 | add ebx,8 |
506 | add ebx,8 |
507 | wordstoreg edx, x , y ;arg1*65536+arg2 |
507 | wordstoreg edx, x , y ;arg1*65536+arg2 |
508 | add edx,dword [arg3] |
508 | add edx,dword [arg3] |
509 | mov ecx,dword [arg3+4] |
509 | mov ecx,dword [arg3+4] |
510 | int 0x40 |
510 | mcall |
Line 511... | Line 511... | ||
511 | } |
511 | } |
512 | 512 |