CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Posts
    2

    Post Assembly code output

    R1,R2,R3 are registers

    START : POP R1
    POP R2
    COMPARE R2,0
    JUMP_EQ DONE_Z
    PUSH R2
    PUSH R1
    SUBTRACT R2,1
    PUSH R2
    CALL START
    POP R3
    POP R1
    POP R2
    MULTIPLY R3,R2
    JUMP DONE
    DONE_Z:MOVE R3,1
    DONE:PUSH R3
    PUSH R1
    RETURN

  2. #2
    Join Date
    May 2012
    Posts
    2

    Re: Assembly code output

    What can be the result of this code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured