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. Other Discussions
  3. IT & Infrastructure
  4. pointers and processors

pointers and processors

Scheduled Pinned Locked Moved IT & Infrastructure
windows-adminquestion
2 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    hi, I was wondering if the pointers in programming languages come about only because of the HL registry pair in Intel 8085.If such a register didnot exist, would we be using pointers today? Cheers

    RaviBeeR 1 Reply Last reply
    0
    • L Lost User

      hi, I was wondering if the pointers in programming languages come about only because of the HL registry pair in Intel 8085.If such a register didnot exist, would we be using pointers today? Cheers

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      Pointers are made possible by indirect addressing in processors and predate the 8085. So, the instructions:

      SET x, 1
      SET y, 2
      ADDI x, y

      will set "x" to (x + *y), which happens to be 1 plus the value sitting in memory location 2. This will set "x" to 3 (1 + 2):

      SET x, 1
      SET y, 2
      ADD x, y

      In the 1970's, there were 3 addressing modes: direct, indirect and indexed. No doubt, newer technology may have given rise to other schemes. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

      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