Assembler coding error

Sharky Forums


Results 1 to 5 of 5

Thread: Assembler coding error

  1. #1
    Reef Shark darnimsexy's Avatar
    Join Date
    Jun 2003
    Location
    ummm...good question
    Posts
    393

    Assembler coding error

    If any of you know what the error:
    "location counter not on word boundary"
    means, it would be a great help if you could let me know.

  2. #2
    Reef Shark bocybo's Avatar
    Join Date
    Sep 2002
    Location
    Texas
    Posts
    280
    Whats is the content of the line(s) of code that the error occurs at?
    Reed's sister is sooo hot!

  3. #3
    Sleeps with the Fishes
    Join Date
    Feb 2004
    Posts
    105
    a word is 2 bytes, not sure if that helps

  4. #4
    Tiger Shark
    Join Date
    Oct 2000
    Location
    Erie, PA, USA
    Posts
    693
    A word is four bytes on most modern computers. It might be 2 or 8 depending on what processor you're using. Your error probably means you are trying to access a memory address which is not on a word boundary (meaning it is not a multiple of the processor's word size).

    For instance, pseudo-code:

    load $s1, 0x0813 // it's been a long time since i looked at assembly
    // i don't remember the actual names of instructions

    0x0813 is not a multiple of 4, so it is not a valid memory address, and thus you get an error from the assembler.
    AMD AthlonXP 2600+ Thoroughbred B @ 200x10.5
    Shuttle AN35N nForce2 Ultra 400
    2x512MB Kingston PC3200 (3-3-3)
    ATI Radeon 9600 Pro
    40GB WD ATA-100 8MB cache
    Creative 12X DVD Drive
    Memorex 52X CD-RW
    Running Windows XP Pro

  5. #5
    Reef Shark bocybo's Avatar
    Join Date
    Sep 2002
    Location
    Texas
    Posts
    280
    Well, if your using x86 assembly, then a word is 2 bytes, and a DOUBLE WORD is 4 bytes.
    Reed's sister is sooo hot!

Posting Permissions

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