Click to See Complete Forum and Search --> : Assembler coding error
darnimsexy
03-09-2004, 10:02 PM
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.
bocybo
03-09-2004, 11:49 PM
Whats is the content of the line(s) of code that the error occurs at?
a word is 2 bytes, not sure if that helps
Malone
03-10-2004, 01:52 PM
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.
bocybo
03-10-2004, 03:35 PM
Well, if your using x86 assembly, then a word is 2 bytes, and a DOUBLE WORD is 4 bytes.