March 28, 2024, 04:59:10 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Decypher me!

Started by WayneA, June 14, 2010, 02:22:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WayneA

A signature program I wrote.. Can you figure out what it does?

sub main(){unsigned int f=openfile(getargstring(1),
MODE_CREATE|MODE_WRITE);string s=getargstring(2);if
(f){  print(write(f,"; ,]P^0Dw0Dy5{!P/5e PZX5'(n!`"
+s+"$",30+Len(s)));closefile(f);}return;}
99 little bugs in the code,
99 bugs in the code,
Fix one bug,
Compile again,
104 little bugs in the code...

All code I post is in the public domain.

WayneA

heh, no ones interested or its harder than I anticipated?
99 little bugs in the code,
99 bugs in the code,
Fix one bug,
Compile again,
104 little bugs in the code...

All code I post is in the public domain.

WayneA

Alright, not as big a hit as I hoped.

Compile this as console, named something like "text2com.exe"

It needs to be called from the command line like so:
text2com test.com "Hello World!"

It will produce a .com file that displays whatever text you passed as the second argument.
99 little bugs in the code,
99 bugs in the code,
Fix one bug,
Compile again,
104 little bugs in the code...

All code I post is in the public domain.