Ping: Ray Lopez- Assembler source - Page 3

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: Ping: Ray Lopez- Assembler source

+ User FidoNet address: 1:3634/12.71
On Mon, 03 Feb 2014, King Felix wrote to All:


 KF> On Sun, 03 Feb 2014 11:07:42, mark lewis wrote:

Quoted text here. Click to load it

 KF> Even your posting date is wrong. Today is not Sunday.

it did not leave here saying sunday... again, learn how things really work
before jumping on someone, ok? there are at least two systems between mine and
this newsgroup... possibly three or four systems... at least one of those
systems is a gateway system between the newsgroup and this particular FTN known
as fidonet... you do know what store-and-forward networking is, don't you?

Quoted text here. Click to load it

 KF> My fact are straight.

no they're not... you are being shortsighted and assuming things not in
evidence...

Quoted text here. Click to load it

 KF> This is not an FTN network. This is Usenet.

THIS side of the *gateway* /IS/ FTN!

 KF> (which means that the rest of your post is meaningless.)

right backatcha! ;)

)\/(ark

One of the great tragedies of life is the murder of a beautiful theory by a
gang of brutal facts. --Benjamin Franklin
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ The FidoNet News Gate (Huntsville, AL - USA)        +
+ The views of this user are strictly his or her own. +
+ All data is scanned for malware by Avast! Antivirus +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com


Re: Ping: Ray Lopez- Assembler source

+ User FidoNet address: 1:3634/12.71
On Tue, 04 Feb 2014, ~BD~ wrote to All:


 ~BD~> Jax wrote:
Quoted text here. Click to load it
[...]
Quoted text here. Click to load it


 ~BD~> Pooh was talking to Dustin, not to you, Dopey!!!

pooh said that jax was doing the leading... jax asked that could be since they
are "only an ingenue" ;)

)\/(ark

One of the great tragedies of life is the murder of a beautiful theory by a
gang of brutal facts. --Benjamin Franklin
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ The FidoNet News Gate (Huntsville, AL - USA)        +
+ The views of this user are strictly his or her own. +
+ All data is scanned for malware by Avast! Antivirus +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com


Re: Ping: Ray Lopez- Assembler source


Quoted text here. Click to load it

Yep. It was. The original source code posted tho that I asked Ray to explain  
does write the bytes into the text file. :)


--  
I called the help line. It was outsourced to Pakistan.
"What's the matter?"  
"I'm depressed."
"Can you drive a truck?"


Re: Ping: Ray Lopez- Assembler source


Quoted text here. Click to load it

The phrase was supposed to be written, but due to the brackets and the dw  
designation for amount of bytes to be written; variable vs pointer to a  
variable, it wasn't in that source sample. The original posting shared with  
Ray last year was right and did both functions succesfully.  

Quoted text here. Click to load it

nasm claims to support tasm syntax with the t switch, but I really don't  
remember having to use pointers as I did in nasm.... It's been awhile. Most  
of my time is in the win32/64 asm world. Just don't see much old stuff to  
take apart anymore.




--  
I called the help line. It was outsourced to Pakistan.
"What's the matter?"  
"I'm depressed."
"Can you drive a truck?"


Re: Ping: Ray Lopez- Assembler source

Dustin has brought this to us :
Quoted text here. Click to load it

[...]

Quoted text here. Click to load it

What bug? It's an unintended secret steganographic feature.



Re: Ping: Ray Lopez- Assembler source


Quoted text here. Click to load it

Rafters we used to call them undocumented features.

Thinking of documentation..... anyone writing undocumented code like  
Dustin's would get his programs rejected during acceptance testing. Guess  
that's the difference between the way a solo operator and a pro department  
works. Just saying.  

--  
Jax

Re: Ping: Ray Lopez- Assembler source

Jax explained :
Quoted text here. Click to load it

Documenting or annotating/remarking the code would be counterproductive  
in the case of testing Ray's ability to understanding what the program  
does. What good would it be as a test if the answers for the test were  
right there in plain sight?



Re: Ping: Ray Lopez- Assembler source

On Sun, 02 Feb 2014 15:36:35 -0500, FromTheRafters wrote:

Quoted text here. Click to load it

For something as speshul as the troll, during its edyukayshun all its  
tests had the answers on a separate sheet close by. It probably thinks  
even those of us who weren't as speshul got the same 'advantage'.



--  
None are so hopelessly enslaved, as those who falsely believe they  
are free. The truth has been kept from the depth of their minds by  
masters who rule them with lies.  
-Johann von Goethe  

Re: Ping: Ray Lopez- Assembler source


Quoted text here. Click to load it

I wouldn't submit this program for acceptance testing. It serves no  
practical purpose, outside of a teaching sample.

Quoted text here. Click to load it

You say much; it doesn't make any sense in context tho. You should work on  
that.




--  
I called the help line. It was outsourced to Pakistan.
"What's the matter?"  
"I'm depressed."
"Can you drive a truck?"


Re: Ping: Ray Lopez- Assembler source


Quoted text here. Click to load it

Oh? Want to share? I'm always interested in looking at other source files.

Do you have anything neat in nasm that you wouldn't get in trouble for  
sharing openly? I don't want you to post any source to any cracks or anything  
like that. Some people following along can't keep up with a hello world  
demonstration.

nasm is one hell of an assembler, so I guess it gets a pass for being anal  
retentive about it's syntax with me. Not the easiest thing to write an  
assembler that understands dos/windows/linux environments and is able to  
write object files from your assembler as a result.

I really need to look into asm projects for linux.. I'm very curious about  
them. I know the structure of an elf binary, but i'd like to see assembler  
source for creating one. You can only see so much from a disassembler;  
especially if said disassembler was intended for dos/windows apps. It tries  
with the elfs, but... it's far from perfect.



--  
I called the help line. It was outsourced to Pakistan.
"What's the matter?"  
"I'm depressed."
"Can you drive a truck?"


Re: Ping: Ray Lopez- Assembler source

wrote:

Quoted text here. Click to load it

    I can post a very primitive one from the 90's. I just
recompiled it. Wow, 303 bytes, with all the blah included .....
    I will strip it of any notes or ID.
    Choose a binary group, I'll post it.
    []'s

    I started with tasm, went over to nasm, dithered a bit in C,
back to nasm then gave up writing keygens altogether. That was > 14
years ago.
The one above still works .... it compiles as a .com, so does not need
an external linker. (I used to use Alink for my exe's)
--  
Don't be evil - Google 2004
We have a new policy  - Google 2012

Re: Ping: Ray Lopez- Assembler source

Dustin formulated on Sunday :
Quoted text here. Click to load it

[...]

Quoted text here. Click to load it

It's still Ralf.

Quoted text here. Click to load it

He's thinking movies and integers no doubt. I can hardly wait for the  
next boneheaded remark he offers.

[...]



Re: Ping: Ray Lopez- Assembler source

@speranza.aioe.org:

Quoted text here. Click to load it

my bad. :)
  
Quoted text here. Click to load it

Well, you've got me there. the int means integer was funny. Could you imagine  
the broken software out there right now if that somehow became true? :)


--  
I called the help line. It was outsourced to Pakistan.
"What's the matter?"  
"I'm depressed."
"Can you drive a truck?"


Re: Ping: Ray Lopez- Assembler source


Quoted text here. Click to load it

Command line syntax to assemble this with nasm. Be sure you fix my fuckup  
above and put filehnd in brackets, above [msglength] or the file ray.txt  
will be zero bytes in size.

nasm ray2.asm -t -o ray2.obj -f OBJ

you'll need an msdos linker to take the obj file and turn it into an exe.  
Nasm can't do that for you.

I've got various linkers myself. I use msdos link v3.69. You type  

link ray2.asm press enter
continue pressing enter at each question; accepting defaults. You'll have a  
tiny executable when it's done. Mine is 623 bytes.

Here's another way of doing the same thing, but this results in a slightly  
smaller executable. 618 bytes. The difference between the two is in the  
segment data area. It's the way in which I allocate memory to store  
information. :) This version also doesn't write the carriage return  
linefeed, as it's not present. It's also being told how many bytes to write  
(36) in a slightly different way. I actually wrote this version first, then  
modded it a little bit to present the one I originally posted. As I made a  
couple of changes to the data segment, I didn't use proper nasm syntax and  
fucked it up a little bit.

I should have copy pasted it instead of rewriting.  


segment code

start:
mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,stacktop

mov dx,hello
mov ah,9
int 0x21

mov ah,0x3c
mov cx,0
mov dx,files
int 0x21

mov [filehnd],ax

mov ah,0x40
mov bx, [filehnd]
mov cx,msglength
mov dx,hello
int 0x21

mov ah,0x3e
mov bx,[filehnd]
int 0x21

mov ax,0x4c00
int 0x21

segment data

hello db 'Hi! Ray How did I get created Today?','$'
files db 'ray.txt', 0
filehnd db 2
msglength equ 0x24


segment stack stack
resb 64
stacktop:




--  
I called the help line. It was outsourced to Pakistan.
"What's the matter?"  
"I'm depressed."
"Can you drive a truck?"


Re: Ping: Ray Lopez- Assembler source

Dustin wrote :

[...]
mov ah,0x40
mov bx, [filehnd]
mov cx,msglength
mov dx,hello
int 0x21

This time, 'msglength' has no square brackets. Last time it did.



Re: Ping: Ray Lopez- Assembler source

@speranza.aioe.org:

Quoted text here. Click to load it

yep. See the segment data? msglength was dw 38, now it's equ 36 [g]


--  
I called the help line. It was outsourced to Pakistan.
"What's the matter?"  
"I'm depressed."
"Can you drive a truck?"


Site Timeline