flat assembler
Message board for the users of flat assembler.
Index
> Main > Modified Compos Goto page 1, 2, 3 Next |
Do you think it is a fair thing to optimize someone's compo, and then add your credit? | |||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
Total Votes : 21 |
Author |
|
fasm9 23 Sep 2004, 21:36
Hi,
what is "compo" or "compos" ? -- |
|||
23 Sep 2004, 21:36 |
|
Matrix 23 Sep 2004, 23:44
|
|||
23 Sep 2004, 23:44 |
|
Matrix 24 Sep 2004, 00:20
I ll post an example too,
this code is one of my favourites: Code: ; code by MathM .model tiny .code .startup mov al,13h int 10h mov dx,321 lds cx,[bx] a: dec cx b: add di,dx jns c neg dx add dx,640 c: xchg [di],bl loop b add bx,di in ax,60h dec ax jne a ret end but i was having a little problem with it: it didn't exit so i decided to make it exit, nothing serious, but i could even make it fit in size: Code: ; code by MathM ; CRACKED BY MATRIX org 256 mov al,13h int 10h mov dx,321 lds cx,[bx] a: ;dec cx b: add di,dx jns c neg dx add dx,640 c: xchg [di],bl loop b add bx,di in al,60h dec al loopnz a ;jnz a ret and i didn't mean to steal the code, you can see what i did. MATRIX |
|||
24 Sep 2004, 00:20 |
|
JohnFound 24 Sep 2004, 01:01
If the distribution license allows changes in the source and if you doesn't violate the authors rights (i.e. to claim that source is your, while it is not) and license agreement, you are free to make changes in the original product and you have authors rights to the parts written by you.
Some license agreements allows changing of the license, some not. Also sometimes you can use some open source code together with another license, even closed source. In all cases, to credit the first author is a matter of good manners. Read carefully documentation and if something is not clear contact the author(s). |
|||
24 Sep 2004, 01:01 |
|
Matrix 24 Sep 2004, 01:02
another code from asmcompo:
Code: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;File: hell.asm; heavily commented hell fire demo using fasm 1.53 ;; ;;Author: AsmDemon asmdemon@cox.net ;; ;;Date: August 8, 2004 ;; ;;Use: Compo #9 modified from compo #8 ;; ;;IRC: #asm Web: http://members.cox.net/asmdemom/ ;; ;;Greetz to kalipara, mov, and others ;; ;;It is better to be on the right side of the devil than in his path.;; ;;R.A.C. 11131983 0x41 0x73 0x6d 0x44 0x65 0x6d 0x6f 0x6e ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;; ;;Code Starts at;; ;; offset 100h ;; ;; using 16-bit ;; ;;;;;;;;;;;;;;;;;; $=0x0100 use16 ;;;;;;;;;;;;;;;;;;; ;;Set Screen mode;; ;;to 320x200x256 ;; ;;;;;;;;;;;;;;;;;;; mov al, 0x13 int 0x10 ;;;;;;;;;;;;;;;;;;;;; ;;Select Buffer for;; ;;output to screen.;; ;;;;;;;;;;;;;;;;;;;;; push 0xa000 pop es ;;;;;;;;;;;;;;;;; ;; Set Color to;; ;; red scale ;; ;;;;;;;;;;;;;;;;; mov dx, 0x03c9 setcolor: out dx, al xchg bx, ax out dx, al out dx, al xchg bx, ax inc ax jnz setcolor ;;;;;;;;;;;;;;;;;;;;; ;;Main Program Loop;; ;;;;;;;;;;;;;;;;;;;;;;; ;;set adc ax, 0x0001 ;; ;;this fixes demo 8 ;; ;;shows what I wanted;; ;;;;;;;;;;;;;;;;;;;;;;; mainloop: adc ax, cx cmc stosb loop mainloop ; minus 1 from cx inc ax jmp mainloop ;;;;;;;;;;;;;;;;;;;;;;; ;;Following added for;; ;; the 32 byte limit ;; ;;;;;;;;;;;;;;;;;;;;;;; db 0x52 db 0x41 db 0x43 db 0x39 but i was having a little problem with it: it didn't exit so i decided to make it exit, nothing serious, but i could even make it fit in size: Code: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;File: hell.asm; heavily commented hell fire demo using fasm 1.53 ;; ;;Author: AsmDemon asmdemon@cox.net ;; ;;Date: August 8, 2004 ;; ;;Use: Compo #9 modified from compo #8 ;; ;;IRC: #asm Web: http://members.cox.net/asmdemom/ ;; ;;Greetz to kalipara, mov, and others ;; ;;It is better to be on the right side of the devil than in his path.;; ;;R.A.C. 11131983 0x41 0x73 0x6d 0x44 0x65 0x6d 0x6f 0x6e ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;CRACKED BY MATRIX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;; ;;Code Starts at;; ;; offset 100h ;; ;; using 16-bit ;; ;;;;;;;;;;;;;;;;;; $=0x0100 use16 ;;;;;;;;;;;;;;;;;;; ;;Set Screen mode;; ;;to 320x200x256 ;; ;;;;;;;;;;;;;;;;;;; mov al, 0x13 int 0x10 ;;;;;;;;;;;;;;;;;;;;; ;;Select Buffer for;; ;;output to screen.;; ;;;;;;;;;;;;;;;;;;;;; push 0xa000 pop es ;;;;;;;;;;;;;;;;; ;; Set Color to;; ;; red scale ;; ;;;;;;;;;;;;;;;;; mov dx, 0x03c9 mainloop: adc ax, cx cmc stosb loop mainloop ; minus 1 from cx inc ax push ax out dx, al xchg bx, ax out dx, al out dx, al xchg bx, ax in al,$60 dec al pop ax jnz mainloop ret ;;;;;;;;;;;;;;;;;;;;;;; ;;Following added for;; ;; the 32 byte limit ;; ;;;;;;;;;;;;;;;;;;;;;;; ;db 0x52 ;db 0x41 ;db 0x43 ;db 0x39 i like it when a program exits ( these 2 codes are 32 bytes ) MATRIX |
|||
24 Sep 2004, 01:02 |
|
JohnFound 24 Sep 2004, 01:38
btw: I don't think this kind of activity can be considered as "cracking". But if you like the word, feel free to use it. It's cool to be cracker, isn't it?
|
|||
24 Sep 2004, 01:38 |
|
Matrix 24 Sep 2004, 09:45
JohnFound wrote: btw: I don't think this kind of activity can be considered as "cracking". But if you like the word, feel free to use it. It's cool to be cracker, isn't it? Hello JohnFound, maeby you're right,but tell me a better word although i only meant cracking on adding exit function, and/or improving a little bit on the code . MATRIX |
|||
24 Sep 2004, 09:45 |
|
Vortex 24 Sep 2004, 10:18
Hi Matrix,
Instead of the word "cracking", you should prefer saying "modifying" _________________ Code it... That's all... |
|||
24 Sep 2004, 10:18 |
|
scientica 24 Sep 2004, 10:56
cracking (usually) means BREAK/DESTROY/etc somethin, as Vortex says, "modifying" is better, or even better are:
improve patch/fix enhance tweak (eg, it works for (s)he who wrote it but not for you, you tweak it a little so it runs for you --- note, not "works as in works for those who got a valid serial" but "works as in starts, does something, exitst") |
|||
24 Sep 2004, 10:56 |
|
ASHLEY4 24 Sep 2004, 16:33
Matrix , How come you only made it exit , but you did not make it smaller ?.
Say 30 bytes, that must be possible for a star field like that. And you do not usually get the code with stuff, you need to crack. \\\\||//// (@@) ASHLEY4. |
|||
24 Sep 2004, 16:33 |
|
Matrix 24 Sep 2004, 18:50
scientica wrote: cracking (usually) means BREAK/DESTROY/etc somethin, as Vortex says, "modifying" is better, or even better are: Ok thanks, i see my topic has changed too MATRIX |
|||
24 Sep 2004, 18:50 |
|
Matrix 24 Sep 2004, 19:04
ASHLEY4 wrote: Matrix , How come you only made it exit , but you did not make it smaller ?. the snow program you were thinking of? well, they are both 32 bytes in size, you can see the problem there, cause dec ax is smaller than dec al therefore it doesn't exit if you don't want it to exit then you can skip the port $60 thing it will be smaller. Code: ; code by MathM ; CRACKED BY MATRIX org 256 mov al,13h int 10h mov dx,321 lds cx,[bx] a: ;dec cx b: add di,dx jns c neg dx add dx,640 c: xchg [di],bl loop b add bx,di loopnz a ;jnz a here you are, ASHLEY4, 27 bytes, for your needs, if you like this better. this will work like an operating system you can add cli and sti at the beginning and at the end to make sure it will not exit on many systems. but i whouldn't recommend these kind of "optimizations" they are making the user to re boot the system each time the use has ended. MATRIX |
|||
24 Sep 2004, 19:04 |
|
Matrix 24 Sep 2004, 19:14
ps.: i'm sure a beginner programmer could put the exit on keypress to the code, however i have seen such cases when it was not seemed to be possible to put the exit code in. then they can't put it there. like if the program is already 31 bytes they can't squeeze in the exit function in 1 bytes .
in this case they should atach a version that can exit and for example cleans the environment, sets the video mode back, its not a big thing. if they can push ds pop es they could also push es push ds pop es code pop es MATRIX |
|||
24 Sep 2004, 19:14 |
|
ASHLEY4 24 Sep 2004, 20:50
Well done, but colored snow. here some star code, see if you can crack this.
Code: ; Matt Wilhelm's Small Starfield; 30 bytes with exit,24 byte with out.model tiny.codeorg 100hstart: mov al,13h int 10h mov bh,0a0hhidden_ret: mov es,bx; dec ch ; for many starsgenstar: in al,40h ; pop ax works (but sucks) ; inc ax works, and looks nice ; (but loses randomness) aaascroll: sbb di,ax stosb loop genstar mov ah,1 ; keycheck int 16h jnz hidden_ret + 1 xor ax,ax ; CBW works on some systems xchg al,es:[di] inc cx jmp scroll ; jmp to scroll - 1 for a different lookend start \\\\||//// (@@) ASHLEY4. |
|||
24 Sep 2004, 20:50 |
|
Matrix 24 Sep 2004, 22:15
ASHLEY4 wrote: Well done, but colored snow... Hello ASHLEY4, seems to me if you'd like white snow, here you are : Code: ; code by MathM ; CRACKED BY MATRIX org 256 mov al,12h int 10h mov dx,321 lds cx,[bx] a: ;dec cx b: add di,dx jns c neg dx add dx,640 c: xchg [di],bl loop b add bx,di loopnz a ;jnz a not a big difference MATRIX |
|||
24 Sep 2004, 22:15 |
|
Matrix 24 Sep 2004, 22:40
ASHLEY4 wrote: Well done, but colored snow. here some star code, see if you can crack this. HERE YOU ARE ASHLEY4: Code: ; Matt Wilhelm's Small Starfield ; 30 bytes with exit,24 byte with out ; CRACKED BY MATRIX, FOR ASHLEY4'S REQUEST ; NOW ITS 29 BYTES ;.model tiny ;.code org 100h start: mov al,13h int 10h mov bh,0a0h hidden_ret: mov es,bx ; dec ch ; for many stars genstar: in al,40h aaa scroll: sbb di,ax stosb loop genstar in al,$60 dec ax jz hidden_ret + 1 xor ax,ax ; CBW works on some systems xchg al,[es:di] inc cx jmp scroll ; jmp to scroll - 1 for a different look ;end start MATRIX Last edited by Matrix on 24 Sep 2004, 23:04; edited 1 time in total |
|||
24 Sep 2004, 22:40 |
|
asmdemon 24 Sep 2004, 23:04
Well, here is a change i did, after seeing optimizations others did in there compo. As far as changing/using my compo, fell free to do so. Many people i have shown this to said that i should have submitted this instead.
_________________ It is better to be on the right side of the devil than in his path. |
|||||||||||
24 Sep 2004, 23:04 |
|
Matrix 24 Sep 2004, 23:08
asmdemon wrote: Well, here is a change i did, after seeing optimizations others did in there compo. As far as changing/using my compo, fell free to do so. Many people i have shown this to said that i should have submitted this instead. its nice too, but its not hell anymore, its another effect. but take care with the exit, cause' ret is still missing MATRIX |
|||
24 Sep 2004, 23:08 |
|
Matrix 24 Sep 2004, 23:13
ASHLEY4,
it has mutated from starfield to something (it doesn't exit anymore, but it is drawing the button you pressed on sreen EVOLUTION ! Code: ; Matt Wilhelm's Small Starfield ; 30 bytes with exit,24 byte with out ; CRACKED BY MATRIX, FOR ASHLEY4'S REQUEST ; oh its evolution ! press a key like shift alt ctrl ! ; NOW ITS 27 BYTES org 100h mov al,13h int 10h mov bh,0a0h hidden_ret: mov es,bx genstar: in al,40h aaa scroll: sbb di,ax stosb loop genstar in al,$60 dec ax jz hidden_ret + 1 ;xor ax,ax ; CBW works on some systems xchg al,[es:di] inc cx jmp scroll ( it is not starfield anymore ) MATRIX |
|||
24 Sep 2004, 23:13 |
|
Goto page 1, 2, 3 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.