Forum Settings
       
1 2 3 Next »
Reply To Thread

Break meFollow

#53 Mar 24 2006 at 10:57 PM Rating: Excellent
Avatar
******
29,919 posts
Cool thingy!
____________________________
Arch Duke Kaolian Drachensborn, lvl 95 Ranger, Unrest Server
Tech support forum | FAQ (Support) | Mobile Zam: http://m.zam.com (Premium only)
Forum Rules
#54 Mar 25 2006 at 12:06 AM Rating: Good
Tracer Bullet
*****
12,636 posts

Nerd thread.

#55 Mar 25 2006 at 11:14 AM Rating: Decent
***
1,254 posts
Quote:

extern getchar,putchar
global main
main:
call getchar
cmp eax,-1
jz done
cmp eax,0xA
jz main
push eax
call putchar
pop eax
jmp main
done:
ret

I'm not big on files and such... but won't leaving the CR's in the file cause problems? I know that leaving the LF's in does because string.replace('\n',' ') did not behave properly. It did remove all the cr's though, near as I could tell. I probably wanted a "replaceAll()" there as well. There was the problem with my string.replaceAll("\\u000D\\u000A",""). I'm not sure that the expression catches and replaces what I want it to. I'm guessing that the line feeds are really the important part as most built in printers will not actually CR to the begining of the line during the print phase.

Anway, /nerdspeak off

Thanks for the perl though.
1 2 3 Next »
Reply To Thread

Colors Smileys Quote OriginalQuote Checked Help

 

Recent Visitors: 192 All times are in CST
Anonymous Guests (192)