103,7 → 103,7 |
|
call draw_mario |
|
mov eax,11 ; check if os wants to say something |
mov eax,11 ; check for event |
int 0x40 |
cmp eax,1 |
jz red |
160,9 → 160,14 |
mov [velocity],dword 0x110 |
key4: |
|
mov eax,71 ;draw caption |
mov ebx,1 |
mov ecx,title |
int 0x40 |
|
jmp sta ;draw field |
|
jmp wait_for_event |
;jmp wait_for_event |
|
button: |
|
169,9 → 174,7 |
mov eax,0xffffffff ; close this program |
int 0x40 |
|
; end of program |
|
|
load_graph: |
|
pusha |
529,7 → 532,7 |
|
pusha |
|
mov eax,5 |
mov eax,5 ;pause |
mov ebx,2 |
int 0x40 |
|
743,25 → 746,10 |
mov eax,0 ; define and draw window |
mov ebx,80*65536+480+1 |
mov ecx,20*65536+382 |
mov edx,0x0000500f |
mov esi,0x8066AA88 |
mov edi,0x00559977 |
mov edx,0x5466AA88 |
mov edi,title |
int 0x40 |
|
mov eax,dword 0x00000004 |
mov ebx,8*65536+8 |
mov ecx,dword 0x00cccccc |
mov edx,text |
mov esi,textlen-text |
int 0x40 |
|
mov eax,8 |
mov ebx,(481-19)*65536+12 ; button start x & size |
mov ecx,5*65536+12 ; button start y & size |
mov edx,1 ; button number |
mov esi,0x00229911 ; button color |
int 0x40 |
|
mov eax,12 ; tell os about redraw end |
mov ebx,2 |
int 0x40 |
773,16 → 761,12 |
|
; DATA SECTION |
|
|
filename: |
db 'MARIOALLBMP' |
|
text: |
db 'SUPER MARIO - USE ARROW KEYS' |
textlen: |
title: |
db 'SUPER MARIO - USE ARROW KEYS', 0 |
|
xx db 'x' |
|
field: |
|
db '1 1' |