256字节大赛__ARGON
debug吧
全部回复
仅看楼主
level 7
ARGON
2008年05月01日 13点05分 1
level 7
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪; 苘苘苘苘? ?苘苘圹圹?; 苘苘苒圹?圹圹哌 圹圹圹? 苘苘苘苘 苘苘苘 圹圹圮苘?; 苘苒圹? 圹圹蒇圹圯 捋圹圮圹圹? 圹圹?苘圹? 圹圹?圹圹? 圹圹苘?; 圹圹圹? 捋圹咿圹圻 圹圹圹 捋圹咣圹圹 圹圹蒉圹圻 圹圹圹?;圹圹圹草 a 圹圹蒇圹圹 r 捋圹鄄? g 圹圹圹圹草 o 捋圹圹圹圯 n 槽圹圹?; 圹圹圹? 捋圹 捋圹 圹圹圹 捋圹蒇圹圹 圹圹坜圹? 圹圹圹?; 圹圹圹? 圹圹蒇圹圯 咣圹圹? 圹圹?圹圹? 圹圹?圹圹? 圹圹圹?; 哌哌?圹圹哌哌? 边哌哌圹圹? 哌哌哌哌? 哌哌 哌哌哌; ? 苒圹圹哌哌哌哌
; 策哌哌;; FULL SOURCE-CODE TO THE 128-BYTE DEMO哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪; Copyright (C) 1997 Matrix Software哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪; code .Insomniac哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪; Read MATRIX.NFO for further info about the demo+source.哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪codeSEGMENTASSUMEcs:code.386ORG100hStart:moval,13h; enter world of graphics!int10h哪哪哪哪哪哪哪哪哪哪; CALCULATE SINE/COS - VALUES (Wally/Rage)哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪movcx,783Fh; don't ask me, I just use it..xorsi,siplc1:movax,65497imulcxaddsi,dxaddcx,simov[bx],chsarbyte ptr [bx],1decbxcmpbx,16383jneplc1incbx; BX points to the sine/cos-valuespush0a000h; play around with the segmentspopespushespopds哪哪哪哪哪哪哪哪哪哪; DRAW THE PLASMA-CURVES (Blue,Red)哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪xordi,di; the beginning is a good place to start ;)xorcx,cxplc2:mov[di],chmov[di
+3
80],chmovsi,381subsi,dimov[si],chmov[si+380],chadddi,3incchcmpch,64; are we crossing eachother?jnzplc2xorsi,si; set a nice palettemovdx,3c8houtdx,alincdxmovcx,256*3; R,G,B - valuesrepouts
bp
ushcs; could be usefull..popdsplc3:incdxmovcl,200; yes Max-Y = 200..xordi,diplc4:movbl,claddbl,dlmovdh,[bx]xorch,chmovbl,dhplc5:moval,[bx]subal,cl;movah,alcbwaddah,dhsubax,cxtestcl,1jzplc6xchgah,alplc6:stosw; Use this since we have overlappingincblincchcmpch,160; since we use STOSW, we only need 320/2jcplc5deccljnzplc4;inal,60h; cheap isn't it! But I couln't;decal; afford having these 11 bytes :(jmpplc3;movax,3;int10h;int20hcodeENDSENDStart
2008年05月01日 13点05分 2
1