Subversion Repositories Kolibri OS

Rev

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

Rev 1806 Rev 2752
Line 101... Line 101...
101
   
101
   
Line 102... Line 102...
102
wait_for_event:
102
wait_for_event:
Line 103... Line 103...
103
   
103
   
104
    call draw_mario
104
    call draw_mario
105
   
105
   
106
    mov  eax,11                  ; check if os wants to say something
106
    mov  eax,11              ; check for event
107
    int  0x40
107
    int  0x40
108
    cmp  eax,1
108
    cmp  eax,1
Line 158... Line 158...
158
    cmp  [velocity],dword 0xff
158
    cmp  [velocity],dword 0xff
159
    jnz  key4
159
    jnz  key4
160
    mov  [velocity],dword 0x110
160
    mov  [velocity],dword 0x110
161
  key4:
161
  key4:
Line -... Line 162...
-
 
162
   
-
 
163
	mov eax,71					;draw caption
-
 
164
	mov ebx,1
-
 
165
	mov ecx,title
Line -... Line 166...
-
 
166
	int 0x40
Line 162... Line 167...
162
   
167
	
Line 163... Line 168...
163
   
168
	jmp sta						;draw field
Line 164... Line 169...
164
   
169
	
165
    jmp  wait_for_event
170
    ;jmp  wait_for_event
Line 166... Line -...
166
   
-
 
167
  button:
-
 
Line 168... Line 171...
168
   
171
   
Line 169... Line 172...
169
    mov  eax,0xffffffff          ; close this program
172
  button:
Line 527... Line 530...
527
   
530
   
Line 528... Line 531...
528
mario_delay:
531
mario_delay:
Line 529... Line 532...
529
   
532
   
530
    pusha
533
    pusha
531
   
534
   
Line 532... Line 535...
532
    mov  eax,5
535
    mov  eax,5		;pause
533
    mov  ebx,2
536
    mov  ebx,2
Line 741... Line 744...
741
    int       0x40
744
    int       0x40
Line 742... Line 745...
742
   
745
   
743
    mov       eax,0                     ; define and draw window
746
    mov       eax,0                     ; define and draw window
744
    mov       ebx,80*65536+480+1
747
    mov       ebx,80*65536+480+1
745
    mov       ecx,20*65536+382
-
 
746
    mov       edx,0x0000500f
748
    mov       ecx,20*65536+382
747
    mov       esi,0x8066AA88
-
 
748
    mov       edi,0x00559977
-
 
749
    int       0x40
-
 
750
   
-
 
751
    mov       eax,dword 0x00000004
-
 
752
    mov       ebx,8*65536+8
-
 
753
    mov       ecx,dword 0x00cccccc
749
    mov       edx,0x5466AA88
754
    mov       edx,text
-
 
755
    mov       esi,textlen-text
-
 
756
    int       0x40
-
 
757
   
-
 
758
    mov       eax,8
-
 
759
    mov       ebx,(481-19)*65536+12     ; button start x & size
-
 
760
    mov       ecx,5*65536+12            ; button start y & size
-
 
761
    mov       edx,1                     ; button number
-
 
762
    mov       esi,0x00229911            ; button color
750
    mov       edi,title
Line 763... Line 751...
763
    int       0x40
751
    int       0x40
764
   
752
   
765
    mov       eax,12                    ; tell os about redraw end
753
    mov       eax,12                    ; tell os about redraw end
Line 771... Line 759...
771
    ret
759
    ret
Line 772... Line 760...
772
   
760
   
Line 773... Line -...
773
   
-
 
774
; DATA SECTION
761
   
775
   
762
; DATA SECTION
Line 776... Line 763...
776
   
763
   
777
filename:
764
filename:
778
    db  'MARIOALLBMP'
-
 
779
   
-
 
780
text:
-
 
Line 781... Line 765...
781
    db 'SUPER MARIO - USE ARROW KEYS'
765
    db  'MARIOALLBMP'
Line 782... Line 766...
782
textlen:
766
   
783
   
767
title: