Barco para ensamblador pixel en xp

Solo disponible en BuenasTareas
  • Páginas : 2 (262 palabras )
  • Descarga(s) : 0
  • Publicado : 21 de noviembre de 2011
Leer documento completo
Vista previa del texto
.model small
.stack
.data

col dw(0)
ren dw(240)

.code

mov ax,@data
mov ds,ax

;________________________modo video___________________________________

movah,00h
mov al,12h
int 10h

;_________________________mar________________________________

_________

pix1: mov cx,col
mov dx,ren

mov ah,0ch
mov al,03hmov bh,0h
int 10h

inc col
cmp col,640
jne pix1

inc ren
mov col,0
cmp ren,440
jne pix1

;__________________________casco__________________________________

mov col,321
mov ren,240
pix2: mov ah,0ch ;pinta el casco del barco
mov al,14 ;amarillo
mov bh,0
mov cx,col
mov dx,ren
int 10hinc col
cmp col,400
jne pix2

;_________________________cubierta___________________________

______

mov col,220
mov ren,140
pix3: mov ah,0ch ;pinta el cascodel barco
mov al,14 ;amarillo
mov bh,0
mov cx,col
mov dx,ren
int 10h
inc col
cmp col,500
jne pix3;________________________diagonal1___________________________

______

mov col,220
mov ren,140
pix4:mov ah,0ch
mov al,14
mov bh,0
mov cx,col
mov dx,ren
int 10h
inc colinc ren
cmp col,322
jne pix4

;______________________diagonal2_____________________________

_____

mov col,400
mov ren,240
pix5:mov ah,0ch
mov al,14
movbh,0
mov cx,col
mov dx,ren
int 10h
inc col
dec ren
cmp col,500
jne pix5

;_________________________Mastil_____________________________

______mov col,358
pix61:mov ren,140
pix6: mov ah,0ch
mov al,14
mov bh,0
mov cx,col
mov dx,ren
int 10h
dec ren
cmp ren,75
jne pix6
inc...
tracking img