Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


break, nop and cop processor instructions?

This topic is 5825 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Please help! I am trying to find out about the common uses for the break, nop and cop processor instructions found on many of the current processors.

Share this post

Link to post
Share on other sites
Dunno what break and cop do, but nop is a no operation instruction and is sometimes placed after a branch instruction automatically by the assembler.

This is because the processor doesn't know if the branch will be taken or not (although prediction is used) so it will automatically execute insturction(s) after the branch statement (otherwise it would just stall, and that is never good). The instruction(s) after branch instruction can't have any side effects if the branch IS taken, so if the assembler can't find a useful instruction that has no side effects, it will place a nop instruction there.

[edited by - civguy on December 8, 2002 6:20:22 AM]

Share this post

Link to post
Share on other sites
j2: You''re talking about MIPS assembly language found on MIPS CPUs.

get the docs here

NOP = No OPeration
COP = CO Processor instruction

I''m sure you asked the same question about the same 3 instructions about four months ago...

Simon O''Connor
Creative Asylum Ltd

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!