|
-
Reef Shark
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.
-
Reef Shark
Whats is the content of the line(s) of code that the error occurs at?
Reed's sister is sooo hot!
-
a word is 2 bytes, not sure if that helps
-
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
-
Reef Shark
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
-
Forum Rules
|
|