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. General Programming
  3. C / C++ / MFC
  4. Inline Assembly

Inline Assembly

Scheduled Pinned Locked Moved C / C++ / MFC
helpdata-structuresquestion
4 Posts 2 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.
  • H Offline
    H Offline
    hph
    wrote on last edited by
    #1

    hello together, i have a strange problem with the following asm command; __asm call 0h This command should jump to the next instruction and put the value of the position where the last call was made onto the stack! Well, it should, but i only get this message: error C2415: improper operand type Any ideas? Thanks in advance!

    D 1 Reply Last reply
    0
    • H hph

      hello together, i have a strange problem with the following asm command; __asm call 0h This command should jump to the next instruction and put the value of the position where the last call was made onto the stack! Well, it should, but i only get this message: error C2415: improper operand type Any ideas? Thanks in advance!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      How about:

      __asm
      {
      call 0h
      }


      A rich person is not the one who has the most, but the one that needs the least.

      H 1 Reply Last reply
      0
      • D David Crow

        How about:

        __asm
        {
        call 0h
        }


        A rich person is not the one who has the most, but the one that needs the least.

        H Offline
        H Offline
        hph
        wrote on last edited by
        #3

        that's just the same!

        D 1 Reply Last reply
        0
        • H hph

          that's just the same!

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Indeed. It used to be that you had to do it that way (whether that was with Borland's compiler or Microsoft's compiler, I forget), but I've not done inline assembly in nearly a decade. Are you sure that is a valid statement (for an Intel platform)?


          A rich person is not the one who has the most, but the one that needs the least.

          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