Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 4, 2012, 4:16 am
rate this thread
didn't find the hello world, or irok. Hello world isn't very original
tho.. doesn't really show you anything. Not "custom".
This OTH, I wrote this tonight, just for you. It's custom. A little
beyond "Hello world" but not too much. [g]
It'll create a 38byte text file, called Ray.txt and print
"Hi! Ray How did I get created Today?" on the screen and inside the text
file. The text file will also have a control/line feed, but the dollar
sign will not be present. [g]
Again, this is designed to become an .exe file, as it's in segments. It
can be converted for assembly via debug or straight up .com file with
If you understood what Ant did in reference to my hello world program,
you can convert this one to debug too and get the same result as above.
You can also assemble it using nasm and a linker (nasm doesn't come with
a linker, you'll have to go leech one).
If you make a few modifications to my code below, you can have nasm
assemble it as a .com file instead and you won't need the linker then.
I won't do that for you, YOU can do that part yourself. I already know
this stuff. You won't learn it if I don't make you atleast try.
And no, belittling me isn't going to produce the results you want. I
just post code you don't understand and leave it uncommented. ;p
This time, you comment it for me! You comment with what you think is
going on. I wanna see if you understand this stuff at all, or if you
understand some of it... or what your level of understanding is.
use command line:
nasm -f obj ray.asm
(if using ms link v3.69 (a relic from my teenage years. Still works
link ray <enter>
You'll have a very small ray.obj and ray.exe file
When you run the ray.exe file, it'll create a ray.txt file in current
directory with the text as shown on the screen. This program will not
pause to press a key before it exits, so run it from cli if you want to
see the message on the screen.
It's pure asm, although 16bit, it's fast as lightning on systems that
can execute it.
It has no error handling, so will do nothing if it can't create the
ray.txt. It'll still print on screen regardless.
mov bx, [filehnd]
hello: db 'Hi! Ray How did I get created Today?',13,10,'$'
files db 'ray.txt', 0
filehnd dw 1
msglength dw 38
segment stack stack
Things look bad from over here. Too much confusion and no solution.
Everyone here knows your fear. Your out of touch and you try too much.
Yesterdays glory will help us today. You wanna retire? Get outta the
way. I ain't got much time. Young ones close behind. I can't wait in
Re: Ping Ray - RAY.ASM
He's running wild with Google searches and searching old shit for
something to convince everyone he is not merely a 'programmer' in
Ha! You can see how timid and insecure this shit is as he tries so
desperately to convince everyone he isn't the DUMB SHIT we ALL know
him to be.
What a LUSER!!
KEEP DANCING, DUCKSHIT, YOU LUSER!!
-----BEGIN PGP SIGNATURE-----
Version: RAID [SLAM] Ver. 0.4.6 (RAID'S True I.Q.)
Comment: RAID [SLAM] Is a Dangerous Sociopathic Monster
Comment: KeyID: 0x2D53F7F5
Comment: Fingerprint: 869B 753C F27C EC0F C9ED 27C5 BE60 5370 2D53 F7F5
-----END PGP SIGNATURE-----
- » A Letter: "I am a sociopath" - Read it. Remind you of someone?
- — Next thread in » Anti-Virus Software