home *** CD-ROM | disk | FTP | other *** search
- 5 step"@:setpoint.obj,p,w"
- 10 +$c000
- 20 tobal=$f9
- 30 tobah=$fa
- 40 toywert=$fb
- 50 toxwertl=$14
- 60 toxwerth=$15
- 70 tochkcom=$aefd
- 80 togetpar=$b7eb
- 90 (NULL)chkcom
- 100 (NULL)getpar; xund y holen
- 110 (NULL)ywert
- 120 set mid$#$00; bal loeschen
- 130 (NULL)bal
- 140 mid$ywert; y
- 150 (NULL);[y/8]
- 160 (NULL)
- 170 (NULL)
- 180 (NULL)bah;a([y/8])*5 = a*4+a
- 190 (NULL)
- 200 (NULL)
- 210 valbah
- 220 (NULL); a(5*[y/8])*64=a*256/4
- 230 (NULL)bal; =>msb mit lsb vertauschen
- 240 (NULL); 16-bit-division mit 4
- 250 (NULL)bal
- 260 val#$20; bitmap addieren
- 270 (NULL)bah;a(320*[y/8]+$e000)
- 280 mid$xwertl;lsb(x)
- 290 asc#$f8;[x/8]*8
- 300 valbal;a([x/8]*8)+ba
- 310 (NULL)bal
- 320 mid$xwerth
- 330 valbah
- 340 (NULL)bah
- 350 mid$ywert;y-[y/8]*8,rest der division
- 360 asc#$07
- 370 (NULL);index
- 380 mid$xwertl;lsb(x)
- 390 asc#$07;x-[x/8]*8,erbibt bit/nummer
- 400 (NULL);index
- 410 mid$pot,x;punkt setzen
- 420 (NULL)(bal),y
- 430 (NULL)(bal),y
- 440 (NULL)
- 450 pot fn$80,$40,$20,$10
- 460 fn$08,$04,$02,$01
-