Recent Posts

Pages: [1] 2 3 ... 10
1
The Campus / Re: Odd issue
« Last post by Lonewolff on Today at 08:16:22 PM »
Since newbies, no offense of course, usually commit newbie mistakes it is advisable that they post the whole code .

None taken  :biggrin:

I'll take out the excess guff and see if I can post something minimal to replicate.  :t

FWIW - OllyDebug showed this

Quote
   mov edx,[eax+16]      ; EDX 41A80000
   mov ecx,[eax+4]      ; ECX 41400000
   mov [eax+16],ecx      
   mov [eax+4],edx
2
The Campus / Re: Odd issue
« Last post by aw27 on Today at 08:09:31 PM »
Since newbies, no offense of course, usually commit newbie mistakes it is advisable that they post the whole code .
3
The Campus / Re: Odd issue
« Last post by RussG on Today at 08:04:25 PM »
gotta leave for work now, I'll check back later
4
The Campus / Re: Odd issue
« Last post by RussG on Today at 08:02:10 PM »
Hmmm. Trying to make sense of OllyDebug, but the code I am looking at looks nothing like what I have typed in. Not even remotely similar.

[edit]
I wrapped the code with a bunch of NOP's so I could find the bit in question.

Just trying to figure out how to read these registers.

Ok so when you do find it, set a breakpoint just before the code in qyestion.
or place an int3 (0xCC byte) instruction there within your code the debugger will stop there,  so you can continue by stepping the code.
5
The Campus / Re: Odd issue
« Last post by RussG on Today at 07:58:05 PM »
Ok, leave learning olly for later. As I don't have a computer yet, I can't really help much further.   :(  sorry

You should really get to learn olly though, it saves a lot of time when tracking down errors in buggy code. I am a very proficient bug writer myself.  :P
6
The Campus / Re: Odd issue
« Last post by Lonewolff on Today at 07:53:48 PM »
Hmmm. Trying to make sense of OllyDebug, but the code I am looking at looks nothing like what I have typed in. Not even remotely similar.

[edit]
I wrapped the code with a bunch of NOP's so I could find the bit in question.

Just trying to figure out how to read these registers.
7
The Campus / Re: Odd issue
« Last post by RussG on Today at 07:46:29 PM »
Step through the code and watch the data window, while stepping through the relevent code. And watch the relevent registers as well....
8
The Campus / Re: Odd issue
« Last post by Lonewolff on Today at 07:44:36 PM »
Have you tried looking at it in ollydbg, or other???

Not real familiar with it, but I will give it a go.
9
The Campus / Re: Odd issue
« Last post by RussG on Today at 07:43:54 PM »
Have you tried looking at it in ollydbg, or other???
10
The Campus / Re: Odd issue
« Last post by Lonewolff on Today at 07:41:11 PM »
Russ, nope nothing in between that's the actual flow of the code. And this is the only call to this location.

Code: [Select]
; The WIP proc
MatrixTranspose PROC matrix:DWORD
mov eax, matrix ; Store the address of 'matrix' in eax

mov edx,[eax+16] ; _21
mov ecx,[eax+4] ; _12
mov [eax+16],ecx
mov [eax+4],edx

ret
MatrixTranspose ENDP


;Initialising a 4x4 matrix like this.

testMat real4 11.0,12.0,13.0,14.0,21.0,22.0,23.0,24.0,31.0,32.0,33.0,34.0,41.0,42.0,43.0,44.0


;Calling the proc like this

invoke MatrixTranspose, addr testMat

Got me bewildered.  :dazzled:
Pages: [1] 2 3 ... 10