flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Heap > Just for fun, try your hand at FASM one-liners

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15818
Location: Misner space

Just for fun, try your hand at FASM one-liners

Here is the beer song written in one line of "assembly". Sorry, but I can't tag it as code because the browser wraps the text and destroys it, so download it and assemble it.

Let's see your one-liners here.


Description: 100 Bottles of beer song
Download
Filename: 100BOB.asm
Filesize: 379 Bytes
Downloaded: 434 Time(s)



Last edited by revolution on 16 Jun 2009, 14:48; edited 1 time in total
Post 12 Jun 2006, 15:55
View user's profile Send private message Visit poster's website Reply with quote
flaith



Joined: 07 Feb 2005
Posts: 122
Location: $300:20 58 FC 60 N 300G => Vietnam

Very Happy excellent !

_________________
Je suis sur de 'rien', mais je ne suis pas sur du 'tout'.
Post 12 Jun 2006, 16:01
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: 15818
Location: Misner space

Here is another one-liner with a Christmas theme.


Description: !2 Days of Christmas
Download
Filename: 12Days.asm
Filesize: 712 Bytes
Downloaded: 303 Time(s)



Last edited by revolution on 16 Jun 2009, 14:48; edited 1 time in total
Post 10 Sep 2006, 07:58
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2279
Location: Usono (aka, USA)

revolution, are you dreaming about Christmas already?!!

BTW, you should submit the beer one above to http://99-bottles-of-beer.net (N.B. it's very similar in taste to this, though there are at least four true "x86 asm/machine code" versions under "A").
Post 11 Sep 2006, 21:34
View user's profile Send private message Visit poster's website Reply with quote
2



Joined: 26 Sep 2006
Posts: 92

I never knew anything about the bottles of beer on the wall,but it's cool anyway!
Post 26 Mar 2007, 20:41
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4160
Location: 2018

yeah, it's good, but why do you make that? are you sad? it's better to speak about your problems you know.;.

erf
lol
good job guys... Wink
Post 30 Dec 2007, 02:26
View user's profile Send private message Visit poster's website Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad

Edfed, incase you're unaware, in english speaking cultures, there's a famous "song" called 99 bottles of beer. It's usually sung by children to help pass the time.
Post 30 Dec 2007, 04:51
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4160
Location: 2018

99 green bottles....
....
....one green bottle standing on the wall, and if one green bottle is accidentlly fall, there's no green bottle, standing on the wall..
this is the version i learned at school...15 years ago
Post 30 Dec 2007, 05:02
View user's profile Send private message Visit poster's website Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad

Same song, only the original (at least as far as i know) is bottle of beer.
Post 30 Dec 2007, 05:03
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India

Re: Just for fun, try your hand at FASM one-liners


revolution wrote:
Here is the beer song written in one line of "assembly". Sorry, but I can't tag it as code because the browser wraps the text and destroys it, so download it and assemble it.

Let's see your one-liners here.


Sorry it ain't assembly!

_________________

Code:

 o__=-
 )
(\
 /\  


Post 31 Dec 2007, 08:59
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15818
Location: Misner space

Re: Just for fun, try your hand at FASM one-liners


0.1 wrote:
Sorry it ain't assembly!

You are right. I am glad that I said it was "assembly". Razz
Post 31 Dec 2007, 10:30
View user's profile Send private message Visit poster's website Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India

Your code was interpreted by fasm! Can be considered kinda script snippet!
But not assembly!


Later from your other posts I came to know that you can do it in assembly too!

But, I regret, you were still relying on macros Wink

But hey if you write the actual opcode by hand typing straight from keyboard (I use numpad and Alt key) and make your one liner ...
Post 31 Dec 2007, 10:41
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15818
Location: Misner space

db 0x??,0x??,0x??,0x??,0x??,0x??,0x??,0x??,0x??,0x??,0x??,0x??,0x??,...

easy, now I just need the values of the '?'s?
Post 31 Dec 2007, 10:52
View user's profile Send private message Visit poster's website Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India

That sounds great Wink
Congrats ! ! !
Post 31 Dec 2007, 10:54
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15818
Location: Misner space

We should all just use the hex editor and forget about assembling it. Just make it directly in binary and save.
Post 31 Dec 2007, 10:57
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: 15818
Location: Misner space

Worlds smallest one-liner in fasm


Code:
db 205,32

It's a real program. Assemble it to .COM and run.

Okay, I didn't say it was exciting.

Here is an even smaller version. I hope your code page doesn't ruin it.

Code:
db 'Í '



And just for good measure. Another one yet smaller

Code:
db 'Ã'

And another version of the same.

Code:
db 195



But the smallest possible (I think) is ...?

Code:
ret

Post 31 Dec 2007, 14:47
View user's profile Send private message Visit poster's website Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1160

Re: Just for fun, try your hand at FASM one-liners


revolution wrote:
Here is the beer song written in one line of "assembly". Sorry, but I can't tag it as code because the browser wraps the text and destroys it, so download it and assemble it.

Where is it? Sad
Post 10 Jun 2009, 15:18
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
windwakr



Joined: 30 Jun 2004
Posts: 827
Location: Michigan, USA

Alot of the old attachments got wiped, didn't they?
Post 11 Jun 2009, 02:13
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15818
Location: Misner space


windwakr wrote:
Alot of the old attachments got wiped, didn't they?

Yes, around a year ago, during the hacking incident.

I will upload the two files again later when I am back at my desk. Look for them in a few days time.
Post 11 Jun 2009, 02:18
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2468
Location: Bucharest, Romania

Just a question, is this with macros or with asm code?
Post 11 Jun 2009, 03:06
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  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 can attach files in this forum
You can download files in this forum


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.