break, nop, and cop instructions

Started by
1 comment, last by gator76 21 years, 7 months ago
Hey everybody. Can anybody tell me where I might find information on these instructions: break, nop, and cop? I''m guessing that they are some type of assembly functions, though I don''t know for sure. Thank you.
Advertisement
I suspect you''re looking at some MIPS assembly code. Possibly PS1 or PS2...

This is definately NOT beginners stuff!

break = breakpoint. This is a debugging breakpoint which causes a running debugger to stop at that location.

nop = No OPeration. This quite simply "does nothing". However what it does do is use up space and CPU time. So often you''ll see it used near a branch so that it fills the "branch delay slot"

cop = issue CO Processor instruction. (Assuming you are looking at MIPS code). Many computer and console systems have more than just the main CPU, most commonly they have a floating point unit (FPU), and in the case of the PS2 they also have Vector Units (VU). The COP instruction is used to send commands and data between the CPU and these co-processors.

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Thank you very much, Simon. I do believe that is what I was looking for.

This topic is closed to new replies.

Advertisement