Re: GNU Assembler #2

2002-07-31 Thread Muli Ben-Yehuda
On Wed, Jul 31, 2002 at 05:08:05PM +0300, Alexander V. Karelin wrote: > Hmm. Hmmm > > Well, the problem with the first idea is that pushing stuff into stack > directly from C code is not really worthy because a simple call to "while" > may cause things to be pushed and popped around,

Re: GNU Assembler #2

2002-07-31 Thread Muli Ben-Yehuda
On Wed, Jul 31, 2002 at 04:56:37PM +0300, Nadav Har'El wrote: > On Wed, Jul 31, 2002, Muli Ben-Yehuda wrote about "Re: GNU Assembler #2": > > many arguments, through a function pointer. Here's code that does it, > > doing in asm only the required bits: >

Re: GNU Assembler #2

2002-07-31 Thread Nadav Har'El
On Wed, Jul 31, 2002, Muli Ben-Yehuda wrote about "Re: GNU Assembler #2": > many arguments, through a function pointer. Here's code that does it, > doing in asm only the required bits: > > #include > > typedef void (*pfunc)(void); > > void caller2(voi

Re: GNU Assembler #2

2002-07-31 Thread Muli Ben-Yehuda
On Wed, Jul 31, 2002 at 02:42:43PM +0300, Nadav Har'El wrote: > On Wed, Jul 31, 2002, Alexander V. Karelin wrote about "GNU Assembler #2": > >... > > asm(" > > # Set the counter to zero > > movl$0,%edx > > # Sav

Re: GNU Assembler #2

2002-07-31 Thread Nadav Har'El
On Wed, Jul 31, 2002, Alexander V. Karelin wrote about "GNU Assembler #2": >... > asm(" > # Set the counter to zero > movl$0,%edx > # Save the starting point from the params > movl12(%ebp), %ecx >... Maybe I'm

GNU Assembler #2

2002-07-31 Thread Alexander V. Karelin
Dear list, As per the earlier message, sent yesterday, here is some sort of solution I've gathered by reading fifty thousand assembler manuals that are mostly written by people who're so proud of their knowledge, they are sharing it in a manner that requires enigma decoding team to understand it: