Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. assembly

assembly

Scheduled Pinned Locked Moved System Admin
helptutorial
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deeps_cute
    wrote on last edited by
    #1

    how to move a string to register in assembly language. say mov si, msg; where msg = "hello"; pls help me

    Arise Awake Stop Not Till ur Goal is Reached.

    D R 2 Replies Last reply
    0
    • D deeps_cute

      how to move a string to register in assembly language. say mov si, msg; where msg = "hello"; pls help me

      Arise Awake Stop Not Till ur Goal is Reached.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You don't put a string into a register. All you can do is put the address of the string in a register.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • D deeps_cute

        how to move a string to register in assembly language. say mov si, msg; where msg = "hello"; pls help me

        Arise Awake Stop Not Till ur Goal is Reached.

        R Offline
        R Offline
        Rilhas
        wrote on last edited by
        #3

        I assume that you want to load the si register with the address of a string. Please use accurate language, especially when talking about assembly language. In Win32 you should use esi and not si: char* sp_ptr="hello!"; _asm { mov esi,sp_ptr } Rilhas

        D 1 Reply Last reply
        0
        • R Rilhas

          I assume that you want to load the si register with the address of a string. Please use accurate language, especially when talking about assembly language. In Win32 you should use esi and not si: char* sp_ptr="hello!"; _asm { mov esi,sp_ptr } Rilhas

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          How do you he's not doing it on a 286? :laugh:

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          R P 2 Replies Last reply
          0
          • D Dave Kreskowiak

            How do you he's not doing it on a 286? :laugh:

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            R Offline
            R Offline
            Rilhas
            wrote on last edited by
            #5

            You are right, I don't! :-) As you can see from his post if we want to give help right away then we have to make a lot of assumptions! I assumed Win32 (could be LINUX, or any other OS), assembly inside C (could be assembly only, why not?), 386+ code, _asm directive availability, and C-style strings (as oposed to VB strings, for example), and possibly more which I didn't even realize! The alternative would be not to give any help right away. Anyway, my post still stands as I was giving an example for Win32 which is most comonly used with Intel 386+ processors (I don't think there is any Win32 version that can run on a 286). Rilhas :-)

            D 1 Reply Last reply
            0
            • R Rilhas

              You are right, I don't! :-) As you can see from his post if we want to give help right away then we have to make a lot of assumptions! I assumed Win32 (could be LINUX, or any other OS), assembly inside C (could be assembly only, why not?), 386+ code, _asm directive availability, and C-style strings (as oposed to VB strings, for example), and possibly more which I didn't even realize! The alternative would be not to give any help right away. Anyway, my post still stands as I was giving an example for Win32 which is most comonly used with Intel 386+ processors (I don't think there is any Win32 version that can run on a 286). Rilhas :-)

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Oh yeah. I'm not bashing your post at all. It was just a litle jab at what you mentioned here. The mountain of assumptions we all-to-often have to make to answer what they think is a simple question.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                How do you he's not doing it on a 286? :laugh:

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                Dave Kreskowiak wrote:

                How do you he's not doing it on a 286? :laugh:

                :laugh::laugh::laugh:

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups