×

Announcing: Slashdot Deals - Explore geek apps, games, gadgets and more. (what is this?)

Thank you!

We are sorry to see you leave - Beta is different and we value the time you took to try it out. Before you decide to go, please take a look at some value-adds for Beta and learn more about it. Thank you for reading Slashdot, and for making the site better!

Comments

top

Simpler "Hello World" Demonstrated In C

bendelo 6 bytes ! Beat that !!! (582 comments)

Yours does more than the article did. Yours actually prints hello world. Hers just returned 42. So I am sure you can do even better...

If it just has to return 42...

C:\>debug
-a 0100
0D3D:0100 MOV AH,4C
0D3D:0102 MOV AL,2A
0D3D:0104 INT 21
0D3D:0106
-rcx
CX 0000
:6
-n ben.com
-w
Writing 00006 bytes

-q

C:\>BEN.COM

C:\>echo %ERRORLEVEL%
42

more than 4 years ago
top

Simpler "Hello World" Demonstrated In C

bendelo Re:How about 28 bytes?! (582 comments)

How about 22 bytes?

C:\>debug
-a 0100
0D39:0100 MOV AH,09
0D39:0102 MOV DX,0109
0D39:0105 INT 21
0D39:0107 INT 20
0D39:0109
-e 0109 'Hello world!$'
-r cx
CX 0000
:16
-n hello.com
-w
Writing 00016 bytes
-q

C:\>HELLO.COM
Hello world!
C:\>dir hello.com
26/08/2009 10:48 22 HELLO.COM

more than 4 years ago
top

Unpatched IE Flaw Extremely Critical

bendelo Re:is IE the sound that .... (277 comments)

So is "Firefox" the shortened version of "For fucks [sake]".

about 9 years ago

Submissions

bendelo hasn't submitted any stories.

Journals

bendelo has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?