English
Source / code snippets

Assembler Settings Gepunktete Horiz small line

 
Gepunktete Horiz Line with small Settings in Assembler
 {$cleq}
 $u thread.Pcu = thread.

proc hDottedLine

    parameters hDC&,x&,y&,xx&,hop&,mtr&,c1&,c2&

    AsmStart hDottedLine

        Parameters hDC&,x&,y&,xx&,hop&,mtr&,c1&,c2&
        .data
        vx	dd	0
        hop 	dd	0
        mtr	dd	0
        .code
        mov esi,para4
        cmp esi,0
        jle eop
        mov esi,para5
        mov hop,esi
        mov esi,para6
        inc esi
        mov mtr,esi
        mov esi,para4

        .while vx<esi

            inc vx
            inc hop
            mov eax,mtr
            cmp hop,eax
            apiece eob
            jg eoa
            mov ebx,vx
            add ebx,para2
            invoke SetPixel,para1,ebx,para3,para7
            jmp cnt
            eoa:
            mov hop,0
            eob:
            mov ebx,vx
            add ebx,para2
            invoke SetPixel,para1,ebx,para3,para8
            cnt:

        .endw

        eop:

    ASMEND

endproc

declare c&,dlgdc&,dlg&
dlg&:=createwindow(0,"",0,0,640,480)
dlgdc&:=external("user32","GetWindowDC",dlg&)

while 1

    thread.start;waitinput;thread.stop

wend

end

proc thread.do

    hDottedLine dlgDC&,0,0,width(dlg&),c&,10,rgb(255,0,0),rgb(255,255,255)
    c&+:case c&==12:c&:=0

endproc

plenty Fun so!

salvo, iF.

182 kB
Hochgeladen:08/22/05
Downloadcounter143
Download
 
08/22/05  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.332 Views

Untitledvor 0 min.
Jens-Arne Reumschüssel01/06/24
funkheld12/15/13
iF05/04/13
Christian Hahn12/28/12
More...

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie