CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: AKRichard

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    626

    Re: Problem output of function

    not to sound like a smart a$$ but thats what your code should do with the way you have it coded. One way to get it to do what you want it to do would be to have a variable in the second for loop...
  2. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    btw, as to the original purpose of this post, Im giving up on the error handling for the time being. There is something I am just not getting about the stack frame. I have spent quite some time on...
  3. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    I allways have that option turned on just so I can browse through it once in a while.





    I havent seen any of the examples initialize ax or bx.
  4. Re: Consider the following code (help please)

    return values are generally returned in eax. though I think the *dest is being used as a return value also.

    To extend the code is relatively easy, youre just turning a two dimensional array into a...
  5. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    just an observation, you should try to limit your jumps. make your code a seqential as possible. the code you have:



    MOV AX,
    MOV BX,
    DEC BX
    CMP AX,BX
    JC NEXT...
  6. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    as others suggested, if youd throw it in visual studio and compile the code it would give you the disassembly. Ill tell you how to do it.

    1. Start a new project in whatever editor you use.
    2....
  7. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    I saw this post the other day, and I have to agree with both responses you got. First off this piece of code doesnt look like it would acomplish anything meaningfull. If it is homework, show what...
  8. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    Now Im getting frustrated, there is something seriously wrong with how I am understanding the stack frame setup. Id like to share 2 examples so that, hopefully, someone can point out what I am doing...
  9. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    in reference to the first link you posted http://www.altdevblogaday.com/2012/0...-stack-frames/. Looking at the diagram of the stack frame at the beggining of the article, you notice 2 orange blocks...
  10. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    So, I am getting closer to having the exception handling set up, but Ive run into a different problem now. I have the following text equate:



    _totalsub equ<qword ptr[rbp]> ;this is where the...
  11. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    by the way, any suggestions on books on modern assembly programming? everything Ive been finding is at least 4 or 5 years old. I am looking for something on general programming. I wouldnt say a...
  12. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    Youre right about that OReubens, especially for x64, I have found some info about setting up the stack framesomething along the lines of:




    Func PROC FRAME

    push r10
    .pushreg r10...
  13. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    I actually use these settings quite a bit while debugging now, unfortunately they only take me so far at times.



    What I actually was talking about there, I would like to either fix the problem...
  14. Replies
    26
    Views
    831

    Re: A few questions about exception handling

    Hello Eri523, How you been doing?



    SEH was the direction I was thinking of going in. I was wondering how much trouble it would be to implement at the assembly level. In all honesty, the main...
  15. Replies
    26
    Views
    831

    A few questions about exception handling

    I have a few questions about exception handling in assembly language, Ive been reading up on the subject but have not been able to successfully implement my own handler yet.

    First off, I would...
  16. Re: Modular reduction of non-integer numbers

    Thats the conclusion Ive been slowly coming to. I am trying to find some way around it, the beauty of modular exponentiation is that it keeps the variables (relatively) small, thereby speeding it...
  17. Re: Modular reduction of non-integer numbers

    yes, only in my algorithm I start the return value = to the base, decrement the bit counter by one, and I do the squaring first. But yes, it does give correct results for integers. Ive got a...
  18. Modular reduction of non-integer numbers

    Hello all,

    I am working on a big number library, and noticed that when the modulus isnt a whole number and I run it through the modular expnentiation routine it doesnt give the same result as...
  19. Thread: Compilers

    by AKRichard
    Replies
    3
    Views
    326

    Re: Compilers

    mustve been a rather boring day yesterday
  20. Re: A question about deleting a native pointer

    Yes, I made all the Create and the one Destroy methods static.



    I dont think that it is slowing my code at all, just mentioned it because I really didnt understand what it was doing, the rest...
  21. Re: A question about deleting a native pointer

    there is no delete this;, but the destroy method takes an instance of the class as a parameter and there is a delete _val; which is working as expected.



    When working on figuring out how to...
  22. Re: A question about deleting a native pointer

    I just so happen to be working on this very approach right now, fell asleep at the computer last night in the middle of it. I started thinking I could make a Create and a Destroy functions to be...
  23. Re: A question about deleting a native pointer

    in this particular instance I found out the only way this piece of code ever gets hit is if the object being deleted was created in the assembly routine. The reason why you never saw the allocation...
  24. Re: A question about deleting a native pointer

    I have checked to make sure the actual value of the pointer didnt change, and I know that the pointer hasnt been deleted yet, but I am not sure how to narrow the search for where the heap would...
  25. A question about deleting a native pointer

    Hello all,

    I have an interop class that wraps a native class. Everything works great except in one function in the native class:




    public MyNativeClass{

    void...
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width