Path: chuka.playstation.co.uk!chuka.playstation.co.uk!news From: Majik Newsgroups: scee.yaroze.programming.gnu_compiler Subject: MIPS assembly queries.. Date: Thu, 02 Oct 1997 12:19:43 +0100 Organization: Sinclair MicroComputer Museum Lines: 35 Message-ID: <3433834F.3248@127.0.0.1> Reply-To: majik@127.0.0.1 NNTP-Posting-Host: 194.202.250.27 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (WinNT; I) Hello first off I should say that it may be a good idea to have a s.y.p.assembly newsgroup... anyway, Having now hand coded a routine in assembly I just want to clarify a few queries, well actually there all to do with the pipeline, and internal architecture of the R3000 for instance the sequence subu $9,$9,1 bne $9,$0,end li $8,32 will always load register 8 with 32 whether the branch is taken or not or at least this is my finding.. am I wrong, btw I know that preceding the 'li' with a nop cures the problem... or lw $9, data_item sub $9,$9,1 produces strangeness... it needs a nop also... not a problem as such, just a curiosity of the architecture... ttfn -- -- Majik - Owner/Curator of the Sinclair Microcomputer Museum -- Spod in a suitcase - ' Have Compiler, will travel ' -- http://mudhole.spodnet.uk.com/~majik/ --