flat assembler
Message board for the users of flat assembler.

Index > Main > CHALLENGE: 193 Byte's of 8-bit code and the task is to find

Author
Thread Post new topic Reply to topic
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 12 Jan 2010, 08:38
...

IMPORTANT FIX : If anyone downloaded this before 2011-01-01 please redownload (see post below)

Smile Task: find out what the code is supposed to do Smile

Hints:

1. It DOES work
2. It IS useful
3. It IS copyrighted Laughing
4. I made it easy by decommenting the code partially only Wink

Especially interesting for those who missed or failed my previous challenge t=9016

P.S.: the syntax highlighting on pastebin sucks Sad

EDIT: http://board.flatassembler.net/topic.php?t=15664


Last edited by DOS386 on 10 Aug 2013, 08:29; edited 5 times in total
Post 12 Jan 2010, 08:38
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20298
Location: In your JS exploiting you and your system
revolution 12 Jan 2010, 09:02
Temperature conversion?
Post 12 Jan 2010, 09:02
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 12 Jan 2010, 09:30
revolution wrote:
Temperature conversion?


NO. Ways more useful and spectacular Smile
Post 12 Jan 2010, 09:30
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 12 Jan 2010, 09:36
Why'd you put it on pastebin anyway, instead of a <code> block here?
Post 12 Jan 2010, 09:36
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20298
Location: In your JS exploiting you and your system
revolution 12 Jan 2010, 09:48
Drawing a bitmap?
Post 12 Jan 2010, 09:48
View user's profile Send private message Visit poster's website Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 518
Location: ( . Y . )
ass0 12 Jan 2010, 10:53
I know, i know!! It generates the serial number to activate the UGM-133 Trident II.

_________________
Image
Nombre: Aquiles Castro.
Location2: about:robots
Post 12 Jan 2010, 10:53
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 12 Jan 2010, 13:16
DOS386,

Does it compile? movntq eax, 0 looks pretty goofy, just as cmpntq ch,0 does. Without ntqs got 204 bytes (use32, naturally).
Post 12 Jan 2010, 13:16
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20298
Location: In your JS exploiting you and your system
revolution 12 Jan 2010, 18:56
bored
Post 12 Jan 2010, 18:56
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 12 Jan 2010, 19:57
baldr wrote:
DOS386,

Does it compile? movntq eax, 0 looks pretty goofy, just as cmpntq ch,0 does. Without ntqs got 204 bytes (use32, naturally).
I was wondering about those as well - what's the story, dosman? Smile

_________________
Image - carpe noctem
Post 12 Jan 2010, 19:57
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 13 Jan 2010, 07:23
baldr wrote:

> Does it compile?

YES (might be marginally incomplete, though).

> movntq eax, 0 looks pretty goofy, just as cmpntq ch,0 does.
> Without ntqs got 204 bytes (use32, naturally).

You now see why they are in Smile

Hint: My NTQ MACRO's might help a bit Idea

revolution wrote:

Quote:
I was bored so ...


You won the challenge Smile ... but only to 83.2% because:

+ Found it out
+ Posted image
- Colours are wrong
- Stole 2 pixles in both dimensions (should be 450 x 450)
- Lost the chessboard in bottom right square
- The bloat of your image is far away from acceptable (should be <=694 Byte's)

Image

Download now: TESTPICT.ZIP (6'914 Byte's)

Primary CHALLENGE IS CLOSED

Follow-up's:

- Optimize the code below 193 Byte's
- Optimize the PNG below 694 Byte's (669 achieved meanwhile)
- Code the remaining parts of the FASM-Photosh** Laughing

EDIT : updated attachments


Last edited by DOS386 on 23 May 2010, 02:46; edited 2 times in total
Post 13 Jan 2010, 07:23
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20298
Location: In your JS exploiting you and your system
revolution 13 Jan 2010, 07:44
And how is this "Ways more useful and spectacular"? Question
Post 13 Jan 2010, 07:44
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4016
Location: vpcmpistri
bitRAKE 13 Jan 2010, 08:44
Just a small improvement in PNG size (669 bytes).
(Thanks go to PNGout really!)

There should be a semi-data driven improvement to the code - I'll give it some thought.''

[Attachment removed due to changes in op post above.]

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup


Last edited by bitRAKE on 26 May 2010, 01:32; edited 1 time in total
Post 13 Jan 2010, 08:44
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 13 Jan 2010, 17:10
revolution wrote:
And how is this "Ways more useful and spectacular"? Question
Gamma calibration?

_________________
Previously known as The_Grey_Beast
Post 13 Jan 2010, 17:10
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 14 Jan 2010, 02:20
revolution wrote:
And how is this "Ways more useful and spectacular"? Question


See above Smile

bitRAKE wrote:

> Just a small improvement in PNG size (669 bytes).

A large improvement Shocked

> (Thanks go to PNGout www . ardfry . com / pngoutwin / really!)

I already have all PNG optimization tools, except, of course, PNGoutWIN Rolling Eyes

http://advsys.net/ken/utils.htm

http://www.jonof.id.au/forum/index.php?topic=1515.0

Obviously Ken Silverman is the King of PNG optimization Smile but he isn't the King of Reliable announcements. He intended to open source PNGOUT some years ago, this didn't happen, instead PNGoutWIN arised, and PNGOUT license was "clarified" (-> more restrictive). Then he wrote that the compression of PNGOUT would egalize PNGoutWIN, just PNGoutWIN would be faster on multi-CPU systems. But as we can see, now PNGOUT is far behind PNGoutWIN Sad The result from PNGOUT sucked compared to OPTIPNG (rare ...) so the 694 Byte's version is from OPTIPNG Neutral

http://optipng.sf.net/ http://sourceforge.net/projects/optipng/

My previous PNG challenge:
http://board.flatassembler.net/topic.php?t=7296

At least, I outperformed PNGoutWIN by factor 3.43 Shocked with my code
Post 14 Jan 2010, 02:20
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.