Rev 1648 | Rev 1684 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1648 | Rev 1653 | ||
---|---|---|---|
Line 996... | Line 996... | ||
996 | .coord_end: |
996 | .coord_end: |
997 | popad |
997 | popad |
998 | ret |
998 | ret |
999 | endp |
999 | endp |
Line 1000... | Line 1000... | ||
1000 | 1000 | ||
1001 | ;à¨á®¢ ¨¥ £®à¨§®â «ì®© «¨¨¨, ¯®â®¬ã ¥â ¯ à ¬¥âà coord_y0 |
1001 | ;à¨á®¢ ¨¥ £®à¨§®â «ì®© «¨¨¨, ¯®â®¬ã ¥â ¯ à ¬¥âà coord_y1 |
1002 | align 4 |
1002 | align 4 |
1003 | proc buf_line_h, buf_struc:dword, coord_x0:dword, coord_y0:dword, coord_x1:dword, color:dword |
1003 | proc buf_line_h, buf_struc:dword, coord_x0:dword, coord_y0:dword, coord_x1:dword, color:dword |
1004 | pushad |
1004 | pushad |
Line 1542... | Line 1542... | ||
1542 | push ax bx cx dx |
1542 | push ax bx cx dx |
1543 | mov bx,0x00ff ;---get transparent--- |
1543 | mov bx,0x00ff ;---get transparent--- |
1544 | mov cl,byte[esi+3] ;pro |
1544 | mov cl,byte[esi+3] ;pro |
1545 | xor ch,ch |
1545 | xor ch,ch |
1546 | sub bx,cx ;256-pro |
1546 | sub bx,cx ;256-pro |
1547 | ;---red--- |
1547 | ;---blye--- |
1548 | xor ah,ah |
1548 | xor ah,ah |
1549 | mov al,byte[esi+2] |
1549 | mov al,byte[esi] |
1550 | imul ax,bx |
1550 | imul ax,bx |
1551 | xor dh,dh |
1551 | xor dh,dh |
1552 | mov dl,byte[edi+2] |
1552 | mov dl,byte[edi] |
1553 | imul dx,cx |
1553 | imul dx,cx |
1554 | add ax,dx |
1554 | add ax,dx |
1555 | mov byte[edi+2],ah |
1555 | mov byte[edi],ah |
1556 | ;---green--- |
1556 | ;---green--- |
1557 | xor ah,ah |
1557 | xor ah,ah |
1558 | mov al,byte[esi+1] |
1558 | mov al,byte[esi+1] |
1559 | imul ax,bx |
1559 | imul ax,bx |
1560 | xor dh,dh |
1560 | xor dh,dh |
1561 | mov dl,byte[edi+1] |
1561 | mov dl,byte[edi+1] |
1562 | imul dx,cx |
1562 | imul dx,cx |
1563 | add ax,dx |
1563 | add ax,dx |
1564 | mov byte[edi+1],ah |
1564 | mov byte[edi+1],ah |
1565 | ;---blye--- |
1565 | ;---red--- |
1566 | xor ah,ah |
1566 | xor ah,ah |
1567 | mov al,byte[esi] |
1567 | mov al,byte[esi+2] |
1568 | imul ax,bx |
1568 | imul ax,bx |
1569 | xor dh,dh |
1569 | xor dh,dh |
1570 | mov dl,byte[edi] |
1570 | mov dl,byte[edi+2] |
1571 | imul dx,cx |
1571 | imul dx,cx |
1572 | add ax,dx |
1572 | add ax,dx |
1573 | mov byte[edi],ah |
1573 | mov byte[edi+2],ah |
Line 1574... | Line 1574... | ||
1574 | 1574 | ||
1575 | pop dx cx bx ax |
1575 | pop dx cx bx ax |
Line 1576... | Line 1576... | ||
1576 | ret |
1576 | ret |
Line 1678... | Line 1678... | ||
1678 | mov al,bl |
1678 | mov al,bl |
1679 | xor ah,ah |
1679 | xor ah,ah |
1680 | shr ebx,8 |
1680 | shr ebx,8 |
1681 | imul ax,si |
1681 | imul ax,si |
1682 | xor dh,dh |
1682 | xor dh,dh |
1683 | mov dl,byte[edi+2] |
1683 | mov dl,byte[edi] |
1684 | imul dx,cx |
1684 | imul dx,cx |
1685 | add ax,dx |
1685 | add ax,dx |
1686 | mov byte[edi+2],ah |
1686 | mov byte[edi],ah |
1687 | ;---green--- |
1687 | ;---green--- |
1688 | mov al,bl |
1688 | mov al,bl |
1689 | xor ah,ah |
1689 | xor ah,ah |
1690 | shr ebx,8 |
1690 | shr ebx,8 |
1691 | imul ax,si |
1691 | imul ax,si |
Line 1697... | Line 1697... | ||
1697 | ;---red--- |
1697 | ;---red--- |
1698 | mov al,bl |
1698 | mov al,bl |
1699 | xor ah,ah |
1699 | xor ah,ah |
1700 | imul ax,si |
1700 | imul ax,si |
1701 | xor dh,dh |
1701 | xor dh,dh |
1702 | mov dl,byte[edi] |
1702 | mov dl,byte[edi+2] |
1703 | imul dx,cx |
1703 | imul dx,cx |
1704 | add ax,dx |
1704 | add ax,dx |
1705 | mov byte[edi],ah |
1705 | mov byte[edi+2],ah |
Line 1706... | Line 1706... | ||
1706 | 1706 | ||
1707 | pop si dx cx ebx ax |
1707 | pop si dx cx ebx ax |
Line 1708... | Line 1708... | ||
1708 | ret |
1708 | ret |