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?
Yes, if you don't change the docs
4%
 4%  [ 1 ]
Yes, if you don't change the docs, and respect the author ( no words like shit, sux ... )
52%
 52%  [ 11 ]
Yes, but only if you don't post it anywhere (internal use)
14%
 14%  [ 3 ]
No, it is not fair to add your name to someone's compo, even if it whould fit in after the optimization
9%
 9%  [ 2 ]
No, compo's are made by the author and are as is, and no subject to change, they're the way they meant to be implemented
19%
 19%  [ 4 ]
Total Votes : 21

Author
Thread Post new topic Reply to topic
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
Should i post cracked compos here?

Is anyone interested in?

Another question :
What do you think of getting someone's idea about something and with its use, posting new program to a compo?
this is a question, cause' it was only an idea, for example if the code is very different too.

and what do you think about optimizing other's compo, and then adding your credit to it ( it is only partially pirating if you take it that way )
but in other aspects, compo's are made for size optimization no?
if you look at this side, people could learn more from the modified compo's, like even more optimizations.

MATRIX
Post 23 Sep 2004, 21:25
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9
Hi,

what is "compo" or "compos" ?

--
Post 23 Sep 2004, 21:36
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
I meant asm compo
you know like @ http://asmcompo.org

MATRIX
Post 23 Sep 2004, 23:44
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
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 Sad

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
Post 24 Sep 2004, 00:20
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
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. Smile
Read carefully documentation and if something is not clear contact the author(s).
Post 24 Sep 2004, 01:01
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
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 Sad

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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;        Smile       ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;
;;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 Smile
( these 2 codes are 32 bytes )

MATRIX
Post 24 Sep 2004, 01:02
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
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? Very HappyVery HappyVery Happy
Post 24 Sep 2004, 01:38
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
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? Very HappyVery HappyVery Happy


Hello JohnFound,
maeby you're right,but tell me a better word Smile
although i only meant cracking on adding exit function, and/or improving a little bit on the code Smile .

MATRIX
Post 24 Sep 2004, 09:45
View user's profile Send private message Visit poster's website Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex
Hi Matrix,

Instead of the word "cracking", you should prefer saying "modifying" Smile

_________________
Code it... That's all...
Post 24 Sep 2004, 10:18
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
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")
Post 24 Sep 2004, 10:56
View user's profile Send private message Visit poster's website Reply with quote
ASHLEY4



Joined: 28 Apr 2004
Posts: 376
Location: UK
ASHLEY4
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.
Post 24 Sep 2004, 16:33
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
scientica wrote:
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")


Ok thanks, i see my topic has changed too Smile

MATRIX
Post 24 Sep 2004, 18:50
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
ASHLEY4 wrote:
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.


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. Smile

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
Post 24 Sep 2004, 19:04
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
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 Smile .
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
Post 24 Sep 2004, 19:14
View user's profile Send private message Visit poster's website Reply with quote
ASHLEY4



Joined: 28 Apr 2004
Posts: 376
Location: UK
ASHLEY4
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.
Post 24 Sep 2004, 20:50
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
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 Smile

MATRIX
Post 24 Sep 2004, 22:15
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
ASHLEY4 wrote:
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

.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          ; pop ax works (but sucks)
                                ; inc ax works, and looks nice
                                ; (but loses randomness)
        aaa

scroll:
        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 look
end start


    


\\\\||////
(@@)
ASHLEY4.


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
Post 24 Sep 2004, 22:40
View user's profile Send private message Visit poster's website Reply with quote
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon
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.


Description: Hell.com modified to be a rain like demo, under 32b.
Download
Filename: hell2.zip
Filesize: 868 Bytes
Downloaded: 233 Time(s)


_________________
It is better to be on the right side of the devil than in his path.
Post 24 Sep 2004, 23:04
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
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
Post 24 Sep 2004, 23:08
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
ASHLEY4,
it has mutated from starfield to something (it doesn't exit anymore, but it is drawing the button you pressed on sreen Smile

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
Post 24 Sep 2004, 23:13
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2, 3  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.