----- Original Message ----- From: "Marcel Kilgus" <[EMAIL PROTECTED]> To: "ql-users" <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 12:04 PM Subject: Re: [ql-users] Assembly question
Marcel seems to have less problems with sign, though typing is not his biggest forte. > > adda.w elem_size,a1 > This is probably not the code you wanted. It adds the word at memory > address $000000c to a1, i.e. a # is missing. Wow, very strong. This is the kind of features that make writing (and debugging) assembler "interesting". > > Question: what is the value of a1 at the end ? > > Disregarding the bug it's $160 + 5 * $0c + $140 - 4 * $0c > = $160 + $120 + $0c = $28c. That line should read = $160 + $120 +*0c = $2ac Unless there is some magix which changes $140 into $120 that is... Joachim > > Marcel > > >
