CINXE.COM

NOP (code) - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>NOP (code) - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"c446f431-80b3-4e2f-b239-988f80e1de09","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"NOP_(code)","wgTitle":"NOP (code)","wgCurRevisionId":1283418924,"wgRevisionId":1283418924,"wgArticleId":390580,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Articles with short description","Short description is different from Wikidata","Machine code","Computing acronyms","X86 instructions"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"NOP_(code)","wgRelevantArticleId":390580,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":30000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q1791410","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGELevelingUpEnabledForUser":false}; RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.quicksurveys.init","ext.growthExperiments.SuggestedEditSession"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.pygments%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.22"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="NOP (code) - Wikipedia"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/NOP_(code)"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=NOP_(code)&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/NOP_(code)"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="auth.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-NOP_code rootpage-NOP_code skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" title="Main menu" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li><li id="n-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages"><span>Special pages</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=NOP+%28code%29" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=NOP+%28code%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=NOP+%28code%29" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=NOP+%28code%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Machine_language_instructions" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Machine_language_instructions"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Machine language instructions</span> </div> </a> <ul id="toc-Machine_language_instructions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Code" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Code"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Code</span> </div> </a> <button aria-controls="toc-Code-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Code subsection</span> </button> <ul id="toc-Code-sublist" class="vector-toc-list"> <li id="toc-Ada" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Ada"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Ada</span> </div> </a> <ul id="toc-Ada-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-C_and_derivatives" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#C_and_derivatives"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>C and derivatives</span> </div> </a> <ul id="toc-C_and_derivatives-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Fortran" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Fortran"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Fortran</span> </div> </a> <ul id="toc-Fortran-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-JavaScript" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#JavaScript"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>JavaScript</span> </div> </a> <ul id="toc-JavaScript-sublist" class="vector-toc-list"> <li id="toc-AngularJS" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#AngularJS"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.1</span> <span>AngularJS</span> </div> </a> <ul id="toc-AngularJS-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-jQuery" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#jQuery"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.2</span> <span>jQuery</span> </div> </a> <ul id="toc-jQuery-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Lodash" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Lodash"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.3</span> <span>Lodash</span> </div> </a> <ul id="toc-Lodash-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Pascal" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Pascal"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Pascal</span> </div> </a> <ul id="toc-Pascal-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Python" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Python"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Python</span> </div> </a> <ul id="toc-Python-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Shell_scripting_(bash,_zsh,_etc.)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Shell_scripting_(bash,_zsh,_etc.)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7</span> <span>Shell scripting (bash, zsh, etc.)</span> </div> </a> <ul id="toc-Shell_scripting_(bash,_zsh,_etc.)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-TeX_macro_language_(ConTeXt,_LaTeX,_etc.)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#TeX_macro_language_(ConTeXt,_LaTeX,_etc.)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.8</span> <span>TeX macro language (ConTeXt, LaTeX, etc.)</span> </div> </a> <ul id="toc-TeX_macro_language_(ConTeXt,_LaTeX,_etc.)-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-NOP_protocol_commands" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#NOP_protocol_commands"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>NOP protocol commands</span> </div> </a> <ul id="toc-NOP_protocol_commands-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Cracking" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Cracking"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Cracking</span> </div> </a> <ul id="toc-Cracking-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Security_exploits" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Security_exploits"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Security exploits</span> </div> </a> <ul id="toc-Security_exploits-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" title="Table of Contents" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">NOP (code)</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 17 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-17" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">17 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%84%D8%A7_%D8%B9%D9%85%D9%84%D9%8A%D8%A9_(%D8%A8%D8%B1%D9%85%D8%AC%D8%A9)" title="لا عملية (برمجة) – Arabic" lang="ar" hreflang="ar" data-title="لا عملية (برمجة)" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/NOP_(codi)" title="NOP (codi) – Catalan" lang="ca" hreflang="ca" data-title="NOP (codi)" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Nulov%C3%A1_operace" title="Nulová operace – Czech" lang="cs" hreflang="cs" data-title="Nulová operace" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Nulloperation" title="Nulloperation – German" lang="de" hreflang="de" data-title="Nulloperation" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/NOP" title="NOP – Spanish" lang="es" hreflang="es" data-title="NOP" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/NOP_(%DA%A9%D8%AF)" title="NOP (کد) – Persian" lang="fa" hreflang="fa" data-title="NOP (کد)" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Instruction_nulle" title="Instruction nulle – French" lang="fr" hreflang="fr" data-title="Instruction nulle" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/NOP_(%EC%BD%94%EB%93%9C)" title="NOP (코드) – Korean" lang="ko" hreflang="ko" data-title="NOP (코드)" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/NOP_(informatica)" title="NOP (informatica) – Italian" lang="it" hreflang="it" data-title="NOP (informatica)" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/NOP_(mnemonische_computerinstructie)" title="NOP (mnemonische computerinstructie) – Dutch" lang="nl" hreflang="nl" data-title="NOP (mnemonische computerinstructie)" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/NOP" title="NOP – Japanese" lang="ja" hreflang="ja" data-title="NOP" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Instrukcja_pusta" title="Instrukcja pusta – Polish" lang="pl" hreflang="pl" data-title="Instrukcja pusta" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/NOP" title="NOP – Portuguese" lang="pt" hreflang="pt" data-title="NOP" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/NOP" title="NOP – Russian" lang="ru" hreflang="ru" data-title="NOP" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/NOP" title="NOP – Ukrainian" lang="uk" hreflang="uk" data-title="NOP" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/NOP" title="NOP – Cantonese" lang="yue" hreflang="yue" data-title="NOP" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/NOP" title="NOP – Chinese" lang="zh" hreflang="zh" data-title="NOP" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1791410#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/NOP_(code)" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:NOP_(code)" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/NOP_(code)"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=NOP_(code)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=NOP_(code)&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/NOP_(code)"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=NOP_(code)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=NOP_(code)&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/NOP_(code)" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/NOP_(code)" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=NOP_(code)&amp;oldid=1283418924" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=NOP_(code)&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=NOP_%28code%29&amp;id=1283418924&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FNOP_%28code%29"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FNOP_%28code%29"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=NOP_%28code%29&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=NOP_(code)&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1791410" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Machine instruction that indicates to a computer to do nothing</div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">This article is about the "No Operation" computer instruction. For Null statement, see <a href="/wiki/Null_function" title="Null function">Null function</a>. For Do nothing instruction, see <a href="/wiki/Do_Nothing_(disambiguation)" class="mw-redirect mw-disambig" title="Do Nothing (disambiguation)">Do Nothing (disambiguation)</a>. For other uses, see <a href="/wiki/NOOP_(disambiguation)" class="mw-redirect mw-disambig" title="NOOP (disambiguation)">NOOP (disambiguation)</a> and <a href="/wiki/NOP_(disambiguation)" class="mw-redirect mw-disambig" title="NOP (disambiguation)">NOP (disambiguation)</a>.</div> <style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1246091330">.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}</style><table class="sidebar nomobile nowraplinks" style="margin-top: 0.5em;"><tbody><tr><th class="sidebar-title" style="background-color: rgba(51, 153, 255, 0.15);"><a href="/wiki/Machine_code" title="Machine code">Machine code</a></th></tr><tr><th class="sidebar-heading" style="background-color: rgba(51, 153, 255, 0.15);"> General concepts</th></tr><tr><td class="sidebar-content" style="text-align: left;"> <ul><li><a href="/wiki/Instruction_set_architecture" title="Instruction set architecture">Instruction set</a></li> <li><a href="/wiki/Opcode" title="Opcode">Opcode</a> <ul><li><a href="/wiki/Illegal_opcode" title="Illegal opcode">Illegal opcode</a></li> <li><a href="/wiki/Opcode_table" title="Opcode table">Opcode table</a></li></ul></li> <li><a href="/wiki/Operand#Computer_science" title="Operand">Operand</a></li></ul></td> </tr><tr><th class="sidebar-heading" style="background-color: rgba(51, 153, 255, 0.15);"> Instructions</th></tr><tr><td class="sidebar-content" style="text-align: left;"> <ul><li><a class="mw-selflink selflink">NOP</a></li> <li><a href="/wiki/Branch_(computer_science)" title="Branch (computer science)">Branch</a> <ul><li><a href="/wiki/Indirect_branch" title="Indirect branch">Indirect branch</a></li></ul></li> <li><a href="/wiki/Repeat_instruction" title="Repeat instruction">Repeat instruction</a></li> <li><a href="/wiki/Execute_instruction" title="Execute instruction">Execute instruction</a></li></ul></td> </tr><tr><td class="sidebar-navbar"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Machine_code" title="Template:Machine code"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Machine_code" title="Template talk:Machine code"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Machine_code" title="Special:EditPage/Template:Machine code"><abbr title="Edit this template">e</abbr></a></li></ul></div></td></tr></tbody></table> <p>In <a href="/wiki/Computer_science" title="Computer science">computer science</a>, a <b>NOP</b>, <b>no-op</b>, or <b>NOOP</b> (pronounced "no op"; short for <b>no operation</b>) is a <a href="/wiki/Machine_code" title="Machine code">machine language</a> instruction and its <a href="/wiki/Assembly_language" title="Assembly language">assembly language</a> mnemonic, <a href="/wiki/Programming_language" title="Programming language">programming language</a> statement, or <a href="/wiki/Protocol_(computing)" class="mw-redirect" title="Protocol (computing)">computer protocol</a> command that does nothing. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Machine_language_instructions">Machine language instructions</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=1" title="Edit section: Machine language instructions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Some computer <a href="/wiki/Instruction_set" class="mw-redirect" title="Instruction set">instruction sets</a> include an instruction whose explicit purpose is to not change the state of any of the programmer-accessible <a href="/wiki/Processor_register" title="Processor register">registers</a>, <a href="/wiki/Process_states" class="mw-redirect" title="Process states">status flags</a>, or <a href="/wiki/Main_memory" class="mw-redirect" title="Main memory">memory</a>. It often takes a well-defined number of <a href="/wiki/Clock_cycles" class="mw-redirect" title="Clock cycles">clock cycles</a> to execute. In other instruction sets, there is no explicit NOP instruction, but the assembly language mnemonic NOP represents an instruction which acts as a NOP; e.g., on the <a href="/wiki/SPARC" title="SPARC">SPARC</a>, <code>sethi 0, %g0</code>. </p><p>A NOP must not access memory, as that could cause a <a href="/wiki/Memory_fault" class="mw-redirect" title="Memory fault">memory fault</a> or <a href="/wiki/Page_fault" title="Page fault">page fault</a>. </p><p>A NOP is most commonly used for timing purposes, to force <a href="/wiki/Data_structure_alignment" title="Data structure alignment">memory alignment</a>, to prevent <a href="/wiki/Hazard_(computer_architecture)" title="Hazard (computer architecture)">hazards</a>, to occupy a <a href="/wiki/Branch_delay_slot" class="mw-redirect" title="Branch delay slot">branch delay slot</a>, to render void an existing instruction such as a jump, as a target of an <a href="/wiki/Execute_instruction" title="Execute instruction">execute instruction</a>, or as a place-holder to be replaced by active instructions later on in program development (or to replace removed instructions when reorganizing would be problematic or time-consuming). In some cases, a NOP can have minor side effects; for example, on the <a href="/wiki/Motorola_68000" title="Motorola 68000">Motorola 68000</a> series of processors, the NOP opcode causes a synchronization of the <a href="/wiki/Pipeline_(computing)" title="Pipeline (computing)">pipeline</a>.<sup id="cite_ref-m68ref_1-0" class="reference"><a href="#cite_note-m68ref-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> </p><p>Listed below are the NOP instruction for some CPU architectures: </p> <style data-mw-deduplicate="TemplateStyles:r1281342579">@media screen{.mw-parser-output .sticky-header>thead>tr:first-child,.mw-parser-output .sticky-header>caption+tbody>tr:first-child,.mw-parser-output .sticky-header>tbody:first-child>tr:first-child,.mw-parser-output .sticky-header-multi>thead{position:sticky;top:0;z-index:10}.mw-parser-output .sticky-header:not(.wikitable),.mw-parser-output .sticky-header-multi:not(.wikitable){background-color:white}.mw-parser-output .sticky-header:not(.wikitable)>*,.mw-parser-output .sticky-header:not(.wikitable)>thead>tr:first-child,.mw-parser-output .sticky-header:not(.wikitable)>caption+tbody>tr:first-child,.mw-parser-output .sticky-header:not(.wikitable)>tbody:first-child>tr:first-child,.mw-parser-output .sticky-header-multi:not(.wikitable)>thead,.mw-parser-output .sticky-header-multi>thead{background-color:inherit}.mw-parser-output .sticky-header.wikitable,.mw-parser-output .sticky-header-multi.wikitable{border-collapse:separate;border-spacing:0;border-width:0 1px 1px 0}.mw-parser-output .sticky-header.wikitable td,.mw-parser-output .sticky-header.wikitable th,.mw-parser-output .sticky-header-multi.wikitable td,.mw-parser-output .sticky-header-multi.wikitable th{border-width:1px 0 0 1px}body.skin-timeless .mw-parser-output .sticky-header.wikitable,body.skin-timeless .mw-parser-output .sticky-header-multi.wikitable{border-bottom-width:0.2em;padding:0}.mw-parser-output .sticky-header.static-row-numbers.wikitable tr::before,.mw-parser-output .sticky-header-multi.static-row-numbers.wikitable tr::before{border-left-width:1px}.mw-parser-output .sticky-header.static-row-numbers.wikitable>thead>tr:first-child::before,.mw-parser-output .sticky-header.static-row-numbers.wikitable>caption+tbody>tr:first-child::before,.mw-parser-output .sticky-header.static-row-numbers.wikitable>tbody:first-child>tr:first-child::before,.mw-parser-output .sticky-header-multi.static-row-numbers.wikitable>thead>tr:first-child::before,.mw-parser-output .sticky-header-multi.static-row-numbers.wikitable>caption+tbody>tr:first-child::before,.mw-parser-output .sticky-header-multi.static-row-numbers.wikitable>tbody:first-child>tr:first-child::before,.mw-parser-output .sticky-header.static-row-numbers.wikitable .sortbottom::before,.mw-parser-output .sticky-header-multi.static-row-numbers.wikitable .sortbottom::before{border-top-width:1px}.mw-parser-output .sticky-header.static-row-numbers.wikitable .sortbottom~.sortbottom::before,.mw-parser-output .sticky-header-multi.static-row-numbers.wikitable .sortbottom~.sortbottom::before{border-top-width:0}.mw-parser-output .sticky-header.static-row-numbers.wikitable>tbody>tr:not(.static-row-header)::before,.mw-parser-output .sticky-header-multi.static-row-numbers.wikitable>tbody>tr:not(.static-row-header)::before{border-bottom-width:0!important;border-right-width:0!important}body.skin-timeless .mw-parser-output .content-table-scrollbar,body.skin-timeless .mw-parser-output .overflowed,body.skin-timeless .mw-parser-output .overflowed .content-table{overflow:visible}body.skin-timeless .mw-parser-output .scroll-right.overflowed .content-table-right{box-shadow:none;border-left:none}}@media screen and (min-width:1120px){body.vector-sticky-header-visible .mw-parser-output .sticky-header>thead>tr:first-child,body.vector-sticky-header-visible .mw-parser-output .sticky-header>caption+tbody>tr:first-child,body.vector-sticky-header-visible .mw-parser-output .sticky-header>tbody:first-child>tr:first-child,body.vector-sticky-header-visible .mw-parser-output .sticky-header-multi>thead{top:3.125rem}}@media screen and (min-width:851px){body.skin-timeless .mw-parser-output .sticky-header>thead>tr:first-child,body.skin-timeless .mw-parser-output .sticky-header>caption+tbody>tr:first-child,body.skin-timeless .mw-parser-output .sticky-header>tbody:first-child>tr:first-child,body.skin-timeless .mw-parser-output .sticky-header-multi>thead{top:3.51em}}@media screen and (max-width:639px){body.skin-monobook .mw-parser-output .sticky-header,body.skin-monobook .mw-parser-output .sticky-header-multi,body.skin-vector-legacy .mw-parser-output .sticky-header,body.skin-vector-legacy .mw-parser-output .sticky-header-multi,body.skin-vector-2022 .mw-parser-output .sticky-header,body.skin-vector-2022 .mw-parser-output .sticky-header-multi{display:table}}@media screen{html.skin-theme-clientpref-night body.skin-minerva .mw-parser-output .sticky-header-multi.wikitable{background-color:#101418}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os body.skin-minerva .mw-parser-output .sticky-header-multi.wikitable{background-color:#101418}}</style> <table class="wikitable sticky-header" border="1"> <tbody><tr> <th>CPU architecture </th> <th>Instruction <a href="/wiki/Mnemonic" title="Mnemonic">mnemonic</a> </th> <th><a href="/wiki/Byte" title="Byte">Bytes</a> </th> <th><a href="/wiki/Opcode" title="Opcode">Opcode</a> </th> <th>Notes </th></tr> <tr> <td rowspan="2"><a href="/wiki/Intel" title="Intel">Intel</a> <a href="/wiki/X86" title="X86">x86</a> <a href="/wiki/Central_processing_unit" title="Central processing unit">CPU</a> family </td> <td><code>NOP</code> </td> <td>1 </td> <td>0x90<sup id="cite_ref-x86-instruction-set-intel_2-0" class="reference"><a href="#cite_note-x86-instruction-set-intel-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </td> <td>0x90 is the one-byte encoding for <code>XCHG AX,AX</code> in 16-bit code and <code>XCHG EAX,EAX</code> in 32-bit code. In long mode, <code>XCHG RAX,RAX</code> requires two bytes, as it would begin with an <code>REX.W</code> prefix, making the encoding 0x48 0x90. However, 0x90 is interpreted as a <code>NOP</code> in long mode regardless of whether it is preceded by 0x48.<sup id="cite_ref-x86-instruction-set-intel_2-1" class="reference"><a href="#cite_note-x86-instruction-set-intel-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td>multi-byte <code>NOP</code> </td> <td>2–9 for <a href="/wiki/Pentium_Pro" title="Pentium Pro">Pentium Pro</a> and later Intel processors, and all AMD AMD64 processors </td> <td>0x66 0x90<br /> <p>0x0F 0x1F 0x00<br /> </p><p>0x0F 0x1F 0x40 0x00<br /> </p><p>0x0F 0x1F 0x44 0x00 0x00<br /> </p><p>0x66 0x0F 0x1F 0x44 0x00 0x00<br /> </p><p>0x0F 0x1F 0x80 0x00 0x00 0x00 0x00<br /> </p><p>0x0F 0x1F 0x84 0x00 0x00 0x00 0x00 0x00<br /> </p><p>0x66 0x0F 0x1F 0x84 0x00 0x00 0x00 0x00 0x00<sup id="cite_ref-x86-instruction-set-intel_2-2" class="reference"><a href="#cite_note-x86-instruction-set-intel-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </p> </td> <td>0x66 is the operand-size override prefix. <p>0x0F 0x1F is a two-byte NOP opcode that takes a <a href="/wiki/ModR/M" title="ModR/M">ModR/M</a> operand upon which no operation is performed. Operands added to this are: </p><p>0x00 is <code>[EAX]</code> </p><p>0x40 0x00 is <code>[EAX + 00H]</code> </p><p>0x44 0x00 0x00 is <code>[EAX + EAX*1 + 00H]</code> </p><p>0x80 0x00 0x00 0x00 0x00 is <code>[EAX + 00000000H]</code> </p><p>0x84 0x00 0x00 0x00 0x00 0x00 is <code>[EAX + EAX*1 + 00000000H]</code>.<sup id="cite_ref-x86-instruction-set-intel_2-3" class="reference"><a href="#cite_note-x86-instruction-set-intel-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </p> </td></tr> <tr> <td><a href="/wiki/Intel_8008" title="Intel 8008">Intel 8008</a> </td> <td><code>LAA</code> </td> <td>1 </td> <td>0xC0 </td> <td>Load A from A </td></tr> <tr> <td><a href="/wiki/Intel" title="Intel">Intel</a> <a href="/wiki/8051" class="mw-redirect" title="8051">8051</a> / <a href="/wiki/MCS-51" class="mw-redirect" title="MCS-51">MCS-51</a> family </td> <td><code>NOP</code> </td> <td>1 </td> <td>0x00 </td> <td> </td></tr> <tr> <td><a href="/wiki/Intel_8080" title="Intel 8080">Intel 8080</a>, <a href="/wiki/Intel_8085" title="Intel 8085">Intel 8085</a>, <a href="/wiki/Z80" class="mw-redirect" title="Z80">Z80</a> </td> <td><code>NOP</code> </td> <td>1 </td> <td>0x00 </td> <td> </td></tr> <tr> <td rowspan="2"><a href="/wiki/Intel_i860" title="Intel i860">Intel i860</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0xA0000000 </td> <td>Core no-operation. Opcode for <span class="nowrap"><code>shl r0,r0,r0</code>,</span> an instruction to left-shift the all-0s register by itself.<sup id="cite_ref-i860_3-0" class="reference"><a href="#cite_note-i860-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>FNOP</code> </td> <td>4 </td> <td>0xB0000000 </td> <td>Floating-point no-operation. Opcode for <span class="nowrap"><code>shrd r0,r0,r0</code></span>, a shift-right-double instruction that takes the all-0s register as input and output.<sup id="cite_ref-i860_3-1" class="reference"><a href="#cite_note-i860-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td rowspan="5"><a href="/wiki/Intel" title="Intel">Intel</a> <a href="/wiki/IA-64" title="IA-64">IA-64</a> (<a href="/wiki/Itanium" title="Itanium">Itanium</a>) </td> <td><code>(qp) NOP.b imm21</code> </td> <td>41 bits </td> <td>0x04000000000 </td> <td rowspan="5">On IA-64, the <code>NOP</code> instruction has five forms, each of which can be executed only on a particular execution unit type.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> <p>All five <code>NOP</code> forms include a 6-bit qp field (bits 5:0) and a 21-bit immediate field (bit 36 + bits 25:6). These fields may be set to any value with no effect on the operation of the instruction. (The encodings listed here result from setting these fields to all-0s - which is common but not required). </p><p>The <code>NOP.x</code> form of the instruction additionally consumes a second 41-bit instruction slot - the contents of this slot is considered to be providing 41 additional immediate-bits, for a total immediate-size of 62 bits. </p> </td></tr> <tr> <td><code>(qp) NOP.f imm21</code> </td> <td rowspan="3">41 bits </td> <td rowspan="3">0x00008000000 </td></tr> <tr> <td><code>(qp) NOP.i imm21</code> </td></tr> <tr> <td><code>(qp) NOP.m imm21</code> </td></tr> <tr> <td><span class="nowrap"><code>(qp) NOP.x imm62</code></span> </td> <td>41+41 bits </td> <td>0x00008000000 imm41 </td></tr> <tr> <th colspan="5"> </th></tr> <tr> <td rowspan="4"><a href="/wiki/ARM_architecture" class="mw-redirect" title="ARM architecture">ARM A32</a> </td> <td><code>NOP</code></td> <td>4</td> <td>0x*320F000 </td> <td>Architectural ARM A32 NOP ("true" nop, with no register dependencies). Introduced with ARMv6K (<a href="/wiki/ARM_11" class="mw-redirect" title="ARM 11">ARM 11</a>76, released in 2003), and present in all later ARM A32 processors. (The * indicates a 4-bit field that may take any value other than 0xF.)<sup id="cite_ref-arm_ddi_0406_5-0" class="reference"><a href="#cite_note-arm_ddi_0406-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>MOV r0,r0</code>/<code>NOP</code></td> <td>4</td> <td>0xE1A00000 </td> <td>Recommended A32 no-operation encoding for older 32-bit ARM processors that pre-date ARMv6K. Assemblers for A32 will usually output this opcode when given the "NOP" mnemonic unless they are told to target ARMv6K or later versions of the ARM architecture.<sup id="cite_ref-arm_dui_0041c_6-0" class="reference"><a href="#cite_note-arm_dui_0041c-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-arm_asmref_7-0" class="reference"><a href="#cite_note-arm_asmref-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>ANDEQ r0,r0,r0</code></td> <td>4</td> <td>0x00000000 </td> <td>Bitwise-AND r0 with itself if equal. Commonly used no-op encoding due to the simplicity of its encoding.<sup id="cite_ref-osmith96_8-0" class="reference"><a href="#cite_note-osmith96-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>MOVNV r0,r0</code></td> <td>4</td> <td>0xF1A00000 </td> <td>Move r0 to itself never. Obsolete no-op encoding that used to be recommended for the ARM2/ARM3 processors in older <a href="/wiki/Acorn_Archimedes" title="Acorn Archimedes">Acorn Archimedes</a> computers.<sup id="cite_ref-osmith96_8-1" class="reference"><a href="#cite_note-osmith96-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup> Makes use of the NV ("never") condition code — which has been deprecated since 1993,<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> with support fully removed with ARMv5.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td rowspan="3"><a href="/wiki/ARM_architecture#Thumb-2" class="mw-redirect" title="ARM architecture">ARM T32</a> (Thumb) </td> <td><code>NOP</code></td> <td>2</td> <td>0xBF00 </td> <td rowspan="2">Architectural ARM T32 (Thumb-2) NOPs ("true" nops, with no register dependencies). Introduced with ARMv6T2 (<a href="/wiki/ARM_11" class="mw-redirect" title="ARM 11">ARM 11</a>56, released in 2003), and present in all later ARM T32 processors.<sup id="cite_ref-arm_ddi_0406_5-1" class="reference"><a href="#cite_note-arm_ddi_0406-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>NOP.W</code></td> <td>4</td> <td>0xF3AF8000 </td></tr> <tr> <td><code>MOV r8,r8</code>/<code>NOP</code></td> <td>2</td> <td>0x46C0 </td> <td>Recommended Thumb no-operation encoding for older 32-bit Thumb processors that pre-date ARMv6T2. Assemblers for T32 will usually output this opcode when given the "NOP" mnemonic unless they are told to target ARMv6T2 or later versions of the ARM Thumb architecture.<sup id="cite_ref-arm_dui_0041c_6-1" class="reference"><a href="#cite_note-arm_dui_0041c-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-arm_asmref_7-1" class="reference"><a href="#cite_note-arm_asmref-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/ARM_architecture#ARMv8_and_64-bit" class="mw-redirect" title="ARM architecture">ARM A64</a> (64 bit) </td> <td><code>NOP</code> </td> <td>4 </td> <td>0xD503201F </td> <td>Architectural NOP. </td></tr> <tr> <th colspan="5"> </th></tr> <tr> <td><a href="/wiki/DEC_Alpha" title="DEC Alpha">DEC Alpha</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x47FF041F </td> <td>Opcode for <code>BIS r31,r31,r31</code>, an instruction that bitwise-ORs the always-0 register with itself. </td></tr> <tr> <td><a href="/wiki/AMD_29k" class="mw-redirect" title="AMD 29k">AMD 29k</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x70400101 </td> <td>Opcode for <code>aseq 0x40,gr1,gr1</code>, an instruction that asserts that the <a href="/wiki/Stack_register" title="Stack register">stack register</a> is equal to itself.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/AVR_microcontrollers" title="AVR microcontrollers">AVR</a> </td> <td><code>NOP</code> </td> <td>2 </td> <td>0x0000 </td> <td>one clock cycle </td></tr> <tr> <td rowspan="2"><span class="nowrap"><a href="/wiki/IBM_System/360" title="IBM System/360">IBM System/360</a>,</span> <span class="nowrap"><a href="/wiki/IBM_System/370" title="IBM System/370">IBM System/370</a>,</span> <span class="nowrap"><a href="/wiki/IBM_System/390" title="IBM System/390">IBM System/390</a>,</span> <span class="nowrap"><a href="/wiki/Z/Architecture" title="Z/Architecture">z/Architecture</a>,</span> <span class="nowrap"><a href="/wiki/UNIVAC_Series_90" title="UNIVAC Series 90">UNIVAC Series 90</a></span> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x47000000 or 0x470nnnnn or 0x47n0nnnn where "n" is any 4-bit value. </td> <td rowspan="2">The NOP ("No-Op") and NOPR ("No-Op Register") are a subset of the "Branch on Condition" or "Branch on Condition Register" instructions, respectively; both versions have two options for generating a NO-OP. <p>In the case of both the NOP and NOPR instructions, the first 0 in the second byte is the "mask" value, the condition to test such as equal, not equal, high, low, etc. If the mask is 0, no branch occurs. </p><p>In the case of the NOPR instruction, the second value in the second byte is the register to branch on. If register 0 is chosen, no branch occurs regardless of the mask value. Thus, if either of the two values in the second byte is 0, the branch will not happen. If the first 0 in the second byte is 0, the value of the second value in the second byte is irrelevant on most processors; however, on the <a href="/wiki/IBM_System/360_Model_91" title="IBM System/360 Model 91">IBM System/360 Model 91</a>, if that value refers to register 15, the instruction will wait for all previously-decoded instructions to complete before continuing.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> </p><p>In the case of the NOP instruction, the second value in the second byte is the "base" register of a combined base register, displacement register and offset address. If the base register is also 0, the branch is not taken regardless of the value of the displacement register or displacement address. </p> </td></tr> <tr> <td><code>NOPR</code> </td> <td>2 </td> <td>0x0700 or 0x070n or 0x07n0 where "n" is any 4-bit value. </td></tr> <tr> <td><a href="/wiki/LoongArch" class="mw-redirect" title="LoongArch">LoongArch</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x03400000 </td> <td>Opcode for <code>andi r0,r0,0</code>, an instruction that bitwise-ANDs the always-0 register with zero.<sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/MIPS_architecture" title="MIPS architecture">MIPS</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x00000000 </td> <td>Stands for <code>sll r0,r0,0</code>, meaning: Logically shift register 0 zero bits to the left and store the result in register 0. Writes to register 0 are ignored; it always contains 0. </td></tr> <tr> <td><a href="/wiki/MIPS-X" title="MIPS-X">MIPS-X</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x60000019 </td> <td>(extended opcode for <code>add r0,r0,r0</code>) </td></tr> <tr> <td><a href="/wiki/MIX_(abstract_machine)" title="MIX (abstract machine)">MIX</a> </td> <td><code>NOP</code> </td> <td>1 word </td> <td>± * * * * 0 </td> <td>The * bytes are arbitrary, and can be anything from 0 to the maximum byte (required to be in the range 63-99). MIX uses sign-magnitude representation. </td></tr> <tr> <td><a href="/wiki/MMIX" title="MMIX">MMIX</a> </td> <td><code>SWYM</code> </td> <td>4 </td> <td>0xFD****** </td> <td>SWYM stands for "Sympathize with your machinery". The * digits can be chosen arbitrarily. </td></tr> <tr> <td><a href="/wiki/MOS_Technology_65xx" class="mw-redirect" title="MOS Technology 65xx">MOS Technology 65xx</a> (e.g. <a href="/wiki/6502" class="mw-redirect" title="6502">6502</a>) </td> <td><code>NOP</code> </td> <td>1 </td> <td>0xEA </td> <td><code><b>NOP</b></code> consumes two clock cycles. <a href="/wiki/Illegal_opcode" title="Illegal opcode">Undefined opcodes</a> in the <a href="/wiki/NMOS_logic" title="NMOS logic">NMOS</a> versions of the 65xx family were converted to be NOPs of varying instruction lengths and cycle times in the <a href="/wiki/WDC_65C02" title="WDC 65C02">65C02</a>. </td></tr> <tr> <td><a href="/wiki/Motorola_6800" title="Motorola 6800">Motorola 6800</a> </td> <td><code>NOP</code> </td> <td>1 </td> <td>0x01 </td> <td> </td></tr> <tr> <td rowspan="2"><a href="/wiki/Motorola_68000_family" class="mw-redirect" title="Motorola 68000 family">Motorola 68000 family</a> </td> <td><code>NOP</code> </td> <td>2 </td> <td>0x4E71 </td> <td>This synchronizes the <a href="/wiki/Pipeline_(computing)" title="Pipeline (computing)">pipeline</a> and prevents instruction overlap.<sup id="cite_ref-m68ref_1-1" class="reference"><a href="#cite_note-m68ref-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup><sup class="reference nowrap"><span title="Page: 3-21">&#58;&#8202;3-21&#8202;</span></sup><sup id="cite_ref-m68ref_1-2" class="reference"><a href="#cite_note-m68ref-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup><sup class="reference nowrap"><span title="Page: 4-147">&#58;&#8202;4-147&#8202;</span></sup> </td></tr> <tr> <td><code>TRAPF</code>,<br /><span class="nowrap"><code>TRAPF.W #data</code>,</span><br /><code>TRAPF.L #data</code> </td> <td>2,<br />4,<br />6 </td> <td>0x51FC,<br /><span class="nowrap">0x51FA 0xnnnn,</span><br /><span class="nowrap">0x51FB 0xnnnn 0xnnnn</span> </td> <td>Trap if false. <p>Suggested opcode for <a href="/wiki/Motorola_68020" title="Motorola 68020">68020</a> and later 68k processors if a NOP without pipeline synchronization is desired. ('n' may take any 4-bit value.)<sup id="cite_ref-m68ref_1-3" class="reference"><a href="#cite_note-m68ref-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup><sup class="reference nowrap"><span title="Page: 3-21">&#58;&#8202;3-21&#8202;</span></sup><sup id="cite_ref-m68ref_1-4" class="reference"><a href="#cite_note-m68ref-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup><sup class="reference nowrap"><span title="Page: 4-189">&#58;&#8202;4-189&#8202;</span></sup> </p> </td></tr> <tr> <td><a href="/wiki/Motorola_6809" title="Motorola 6809">Motorola 6809</a> </td> <td><code>NOP</code> </td> <td>1 </td> <td>0x12 </td> <td> </td></tr> <tr> <td><a href="/wiki/MSP430" class="mw-redirect" title="MSP430">MSP430</a> </td> <td><code>NOP</code> </td> <td>2 </td> <td>0x4303 </td> <td>Opcode for <code>mov #0,r3</code> or <code>mov r3,r3</code>, an instruction that performs a move from a "constant generation register" to itself.<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td rowspan="2"><a href="/wiki/PA-RISC" title="PA-RISC">PA-RISC</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x08000240 </td> <td>Opcode for <code>OR 0,0,0</code>.<sup id="cite_ref-parisc_nop_16-0" class="reference"><a href="#cite_note-parisc_nop-16"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>LDI 26,0</code> </td> <td>4 </td> <td>0x34000034 </td> <td>Palindromic NOP - that is, an instruction that executes as NOP regardless of whether byte order is interpreted as <a href="/wiki/Endianness" title="Endianness">little-endian or big-endian</a>. Some PA-RISC system instructions are required to be followed by seven palindromic NOPs.<sup id="cite_ref-parisc_nop_16-1" class="reference"><a href="#cite_note-parisc_nop-16"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/PDP-10" title="PDP-10">PDP-10</a> </td> <td><code>JFCL 0,</code> (conventional)<br /><code>JUMP, SETA, SETAI, CAI, TRN, TLN</code> </td> <td>1 word </td> <td>25500******* (octal) </td> <td>Jump never<br />Jump never, set nothing, skip never </td></tr> <tr> <td><a href="/wiki/PDP-11_architecture" title="PDP-11 architecture">PDP-11</a> </td> <td><code>NOP</code> </td> <td>2 </td> <td>000240 (octal) </td> <td>Clear none of the condition codes </td></tr> <tr> <td><a href="/wiki/PIC_microcontroller" class="mw-redirect" title="PIC microcontroller">PIC microcontroller</a> </td> <td><code>NOP</code> </td> <td>12 bits </td> <td>0b000000000000 </td> <td> </td></tr> <tr> <td><a href="/wiki/IBM_POWER_architecture" title="IBM POWER architecture">POWER</a>, <a href="/wiki/PowerPC" title="PowerPC">PowerPC</a>, <a href="/wiki/Power_ISA" title="Power ISA">Power ISA</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x60000000 </td> <td>Opcode for <code>ori r0,r0,0</code>. <p>Under the Power ISA, many apparent no-op instruction encodings have significant side-effects − therefore, no-op encodings other than <span class="nowrap"><code>ori r0,r0,0</code></span> should be carefully avoided unless these side-effects are specifically intended. For example:<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup> </p> <ul><li><code>ori r31,r31,0</code> is a serializing instruction.</li> <li><code>or rX,rX,rX</code> with X=1,2,3,5,6,7 or 31 sets thread priority based on X.</li> <li><code>or r26,r26,r26</code> is a memory store writeback hint.</li> <li><code>xori r0,r0,0</code> is an explicitly unoptimized no-op for use in timing-loops.</li> <li><code>and rX,rX,rX</code> with X=0,1 are performance-probe no-ops.</li> <li><code>or rX,rX,rX</code> with X=28,29,30,31 will stall instruction dispatch for a fixed number of CPU cycles on IBM <a href="/wiki/Power_Processing_Element" title="Power Processing Element">PPE</a> based processors.<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup></li> <li><code> ori rX,rX,0</code> with X=1,2 are "group ending NOP"s in some <a href="/wiki/IBM_Power_microprocessors" title="IBM Power microprocessors">POWER CPUs</a><sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup></li></ul> </td></tr> <tr> <td rowspan="2"><a href="/wiki/RISC-V" title="RISC-V">RISC-V</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x00000013 </td> <td><code>ADDI x0, x0, 0</code> </td></tr> <tr> <td><code>C.NOP</code> </td> <td>2 </td> <td>0x0001 </td> <td><code>C.ADDI x0, 0</code>. Only available on RISC-V CPUs that support the "C" (compressed instructions) extension.<sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/Signetics_8X300" title="Signetics 8X300">Signetics 8X300</a> </td> <td><code>MOV AUX, AUX</code> </td> <td>16 bits </td> <td>0x0000 </td> <td>Move AUX to AUX with no rotate </td></tr> <tr> <td><a href="/wiki/SPARC" title="SPARC">SPARC</a> </td> <td><code>NOP</code> </td> <td>4 </td> <td>0x01000000 </td> <td>Stands for <code>sethi 0, %g0</code> which zeroes the hardwired-to-zero <code>%g0</code> register<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td rowspan="2"><a href="/wiki/SuperH" title="SuperH">SuperH</a> </td> <td><code>NOP</code> </td> <td>2 </td> <td>0x0009 </td> <td><sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>NOP</code> </td> <td>4 </td> <td>0x6FF0FFF0 </td> <td>32-bit NOP, present on SH-5 only.<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">&#91;</span>24<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td rowspan="2"><a href="/wiki/Tensilica" title="Tensilica">Tensilica</a> Xtensa </td> <td><code>NOP</code>, <code>_NOP</code> </td> <td>3 </td> <td>0x0020F0 </td> <td>Assemblers may convert "NOP" to "NOP.N" - the "_NOP" mnemonic (with a leading underscore) can be used to prevent such conversion.<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><code>NOP.N</code> </td> <td>2 </td> <td>0xF03D </td> <td> </td></tr> <tr> <td><a href="/wiki/VAX" title="VAX">VAX</a> </td> <td><code>NOP</code> </td> <td>1 </td> <td>0x01 </td> <td>Delay is dependent on processor type </td></tr> <tr> <td><a href="/wiki/WD16" title="WD16">WD16</a> </td> <td><code>NOP</code> </td> <td>2 </td> <td>0x0000 </td> <td> </td></tr></tbody></table> <p>From a hardware design point of view, unmapped areas of a bus are often designed to return zeroes; since the <a href="/wiki/NOP_slide" title="NOP slide">NOP slide</a> behavior is often desirable, it gives a bias to coding it with the all-zeroes opcode. </p> <div class="mw-heading mw-heading2"><h2 id="Code">Code</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=2" title="Edit section: Code"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A function or a sequence of programming language statements is a NOP or null statement if it has no effect. Null statements may be required by the <a href="/wiki/Programming_language_syntax" class="mw-redirect" title="Programming language syntax">syntax</a> of some languages in certain contexts. </p> <div class="mw-heading mw-heading3"><h3 id="Ada">Ada</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=3" title="Edit section: Ada"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In <a href="/wiki/Ada_(programming_language)" title="Ada (programming language)">Ada</a>, the <code>null</code> statement serves as a NOP.<sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">&#91;</span>26<span class="cite-bracket">&#93;</span></a></sup> As the syntax forbids that control statements or functions be empty, the <code>null</code> statement must be used to specify that no action is required. (Thus, if the programmer forgets to write a sequence of statements, the program will fail to compile.) </p> <div class="mw-heading mw-heading3"><h3 id="C_and_derivatives">C and derivatives</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=4" title="Edit section: C and derivatives"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The simplest NOP statement in C is the <i>null statement</i>, which is just a semi-colon in a context requiring a statement. </p><p>Most C compilers generate no code for null statements, which has historical and performance reasons. </p> <pre> &#160;; </pre> <p>An empty block (compound statement) is also a NOP, and may be more legible, but will still have no code generated for it by the compiler. </p> <pre> {} </pre> <p>In some cases, such as the body of a function, a block must be used, but this can be empty. In C, statements cannot be empty—simple statements must end with a <code>;</code> (semicolon) while compound statements are enclosed in <code>{}</code> (braces), which does not itself need a following semicolon. Thus in contexts where a statement is grammatically required, some such null statement can be used. </p><p>The null statement is useless by itself, but it can have a syntactic use in a wider context, e.g., within the context of a loop: </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">getchar</span><span class="p">()</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{}</span> </pre></div> <p>alternatively, </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">getchar</span><span class="p">()</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">)</span> <span class="w"> </span><span class="p">;</span> </pre></div> <p>or more tersely: </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">getchar</span><span class="p">()</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">);</span> </pre></div> <p>(note that the last form may be confusing, and as such generates a warning with some compilers or compiler options, as semicolon usually indicates an end of function call instruction when placed after a parenthesis on the end of line). </p><p>The above code continues calling the function <code>getchar()</code> until it returns a <code>\n</code> (newline) character, essentially fast-forwarding the current reading location of standard input to the beginning of next line. </p> <div class="mw-heading mw-heading3"><h3 id="Fortran">Fortran</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=5" title="Edit section: Fortran"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In <a href="/wiki/Fortran" title="Fortran">Fortran</a>, the <code>CONTINUE</code> statement is used in some contexts such as the last statement in a DO loop, although it can be used anywhere, and does not have any functionality. </p> <div class="mw-heading mw-heading3"><h3 id="JavaScript">JavaScript</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=6" title="Edit section: JavaScript"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <a href="/wiki/JavaScript" title="JavaScript">JavaScript</a> language does not have a built-in NOP statement. Many implementations are possible: </p> <ul><li>Use the <code>;</code> <i>empty statement</i><sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">&#91;</span>27<span class="cite-bracket">&#93;</span></a></sup> or the <code>{}</code> empty <i>block statement</i> the same way as in the <a class="mw-selflink-fragment" href="#C_and_derivatives">C and derivatives</a> examples;</li> <li>Use the <code>undefined</code> or the <code>null</code> expression as a complete statement (an <i>expression statement</i>) when the previous methods are not allowed by the syntax.</li></ul> <p>Alternatives, in situations where a function is required, are: </p> <ul><li>Use the <code>Function.prototype()</code> built-in function, that accepts any arguments and returns <code>undefined</code>;<sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">&#91;</span>28<span class="cite-bracket">&#93;</span></a></sup></li> <li>Use a NOP function available in a third-party library —see below;</li> <li>Define a custom NOP function, as in the following example (using the <a href="/wiki/ES6" class="mw-redirect" title="ES6">ES6</a> arrow function syntax):</li></ul> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">const</span><span class="w"> </span><span class="nx">noop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="p">=&gt;</span><span class="w"> </span><span class="p">{};</span> </pre></div> <div class="mw-heading mw-heading4"><h4 id="AngularJS">AngularJS</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=7" title="Edit section: AngularJS"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <a href="/wiki/AngularJS" title="AngularJS">AngularJS</a> framework provides <a rel="nofollow" class="external text" href="https://docs.angularjs.org/api/ng/function/angular.noop">angular.noop</a> function that performs no operations. </p> <div class="mw-heading mw-heading4"><h4 id="jQuery">jQuery</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=8" title="Edit section: jQuery"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <a href="/wiki/JQuery" title="JQuery">jQuery</a> library provides a function <code>jQuery.noop()</code>, which does nothing.<sup id="cite_ref-29" class="reference"><a href="#cite_note-29"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading4"><h4 id="Lodash">Lodash</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=9" title="Edit section: Lodash"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <a href="/wiki/Lodash" title="Lodash">Lodash</a> library provides a function <code>_.noop()</code>, which returns undefined and does nothing.<sup id="cite_ref-30" class="reference"><a href="#cite_note-30"><span class="cite-bracket">&#91;</span>30<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Pascal">Pascal</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=10" title="Edit section: Pascal"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>As with C, the&#160;; used by itself can be used as a null statement in <a href="/wiki/Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>. In fact, due to the specification of the language, in a BEGIN / END block, the semicolon is optional before the END statement, thus a semicolon used there is superfluous. </p><p>Also, a block consisting of <code> BEGIN END;</code> may be used as a placeholder to indicate no action, even if placed inside another BEGIN / END block. </p> <div class="mw-heading mw-heading3"><h3 id="Python">Python</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=11" title="Edit section: Python"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a> programming language has a <a href="/wiki/Python_(programming_language)#Statements_and_control_flow" title="Python (programming language)"><code>pass</code> statement</a> which has no effect when executed and thus serves as a NOP. It is primarily used to ensure correct syntax due to Python's <a href="/wiki/Off-side_rule" title="Off-side rule">indentation-sensitive syntax</a>; for example the syntax for definition of a <a href="/wiki/Class_(computer_programming)" title="Class (computer programming)">class</a> requires an indented block with the class logic, which has to be expressed as <code>pass</code> when it should be empty. </p> <div class="mw-heading mw-heading3"><h3 id="Shell_scripting_(bash,_zsh,_etc.)"><span id="Shell_scripting_.28bash.2C_zsh.2C_etc..29"></span>Shell scripting (bash, zsh, etc.)</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=12" title="Edit section: Shell scripting (bash, zsh, etc.)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The '<code>:</code>' [colon] command is a shell builtin that has similar effect to a "NOP" (a do-nothing operation). It is not technically an NOP, as it changes the special parameter $? (exit status of last command) to 0. It may be considered a synonym for the shell builtin 'true', and its exit status is true (0).<sup id="cite_ref-31" class="reference"><a href="#cite_note-31"><span class="cite-bracket">&#91;</span>31<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-32" class="reference"><a href="#cite_note-32"><span class="cite-bracket">&#91;</span>32<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-33" class="reference"><a href="#cite_note-33"><span class="cite-bracket">&#91;</span>33<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="TeX_macro_language_(ConTeXt,_LaTeX,_etc.)"><span id="TeX_macro_language_.28ConTeXt.2C_LaTeX.2C_etc..29"></span>TeX macro language (ConTeXt, LaTeX, etc.)</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=13" title="Edit section: TeX macro language (ConTeXt, LaTeX, etc.)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <a href="/wiki/TeX" title="TeX">TeX</a> typographical system's macro language has the <code>\relax</code> command.<sup id="cite_ref-34" class="reference"><a href="#cite_note-34"><span class="cite-bracket">&#91;</span>34<span class="cite-bracket">&#93;</span></a></sup> It does nothing by itself, but may be used to prevent the immediately preceding command from parsing any subsequent tokens.<sup id="cite_ref-35" class="reference"><a href="#cite_note-35"><span class="cite-bracket">&#91;</span>35<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="NOP_protocol_commands">NOP protocol commands</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=14" title="Edit section: NOP protocol commands"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Many <a href="/wiki/Protocol_(computing)" class="mw-redirect" title="Protocol (computing)">computer protocols</a>, such as <a href="/wiki/Telnet" title="Telnet">telnet</a>, include a NOP command that a client can issue to request a response from the server without requesting any other actions. Such a command can be used to <a href="/wiki/Keepalive" title="Keepalive">ensure the connection is still alive</a> or that the server is responsive. A NOOP command is part of the following protocols (<i>this is a partial list</i>): </p> <ul><li><a href="/wiki/Telnet" title="Telnet">telnet</a></li> <li><a href="/wiki/File_Transfer_Protocol" title="File Transfer Protocol">FTP</a></li> <li><a href="/wiki/Simple_Mail_Transfer_Protocol" title="Simple Mail Transfer Protocol">SMTP</a></li> <li><a href="/wiki/X_Window_core_protocol" class="mw-redirect" title="X Window core protocol">X11</a></li> <li><a href="/wiki/Post_Office_Protocol" title="Post Office Protocol">POP3</a></li> <li><a href="/wiki/Network_News_Transfer_Protocol" title="Network News Transfer Protocol">NNTP</a></li> <li><a href="/wiki/Finger_protocol" class="mw-redirect" title="Finger protocol">finger</a></li> <li><a href="/wiki/Internet_Message_Access_Protocol" title="Internet Message Access Protocol">IMAP4</a></li> <li><a href="/wiki/BitTorrent_(protocol)" class="mw-redirect" title="BitTorrent (protocol)">BitTorrent</a></li></ul> <p>Note that unlike the other protocols listed, the IMAP4 NOOP command has a specific purpose—it allows the server to send any pending notifications to the client. </p><p>While most <a href="/wiki/Telnet" title="Telnet">telnet</a> or <a href="/wiki/FTP" class="mw-redirect" title="FTP">FTP</a> servers respond to a NOOP command with "OK" or "+OK", some programmers have added quirky responses to the client. For example, the <code>ftpd</code> daemon of <a href="/wiki/MINIX" class="mw-redirect" title="MINIX">MINIX</a> responds to NOOP with the message:<sup id="cite_ref-minix_ftpd_36-0" class="reference"><a href="#cite_note-minix_ftpd-36"><span class="cite-bracket">&#91;</span>36<span class="cite-bracket">&#93;</span></a></sup> </p> <pre><a href="/wiki/List_of_FTP_server_return_codes" title="List of FTP server return codes">200</a> NOOP to you too! </pre> <div class="mw-heading mw-heading2"><h2 id="Cracking">Cracking</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=15" title="Edit section: Cracking"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>NOPs are often involved when <a href="/wiki/Software_cracking" title="Software cracking">cracking</a> software that checks for serial numbers, specific hardware or software requirements, presence or absence of hardware <a href="/wiki/Dongle" title="Dongle">dongles</a>, etc. in the form of a <a href="/wiki/NOP_slide" title="NOP slide">NOP slide</a>. This process is accomplished by altering <a href="/wiki/Subroutine" class="mw-redirect" title="Subroutine">functions and subroutines</a> to bypass security checks and instead simply return the expected value being checked for. Because most of the instructions in the security check routine will be unused, these would be replaced with NOPs, thus removing the software's security functionality without altering the positioning of everything which follows in the binary. </p> <div class="mw-heading mw-heading2"><h2 id="Security_exploits">Security exploits</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=16" title="Edit section: Security exploits"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The NOP opcode can be used to form a <a href="/wiki/NOP_slide" title="NOP slide">NOP slide</a>, which allows code to execute when the exact value of the instruction pointer is indeterminate (e.g., when a buffer overflow causes a function's return address on the stack to be overwritten). </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=17" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Comment_(computer_programming)" title="Comment (computer programming)">Comment (computer programming)</a> – annotations generally for programmers that are ignored by compilers and interpreters</li> <li><a href="/wiki/Computer_architecture" title="Computer architecture">Computer architecture</a></li> <li><a href="/wiki/Filler_text" title="Filler text">Filler text</a></li> <li><a href="/wiki/Halt_and_Catch_Fire_(computing)" title="Halt and Catch Fire (computing)">Halt and Catch Fire</a> – also pauses the CPU</li> <li><a href="/wiki/HLT_(x86_instruction)" title="HLT (x86 instruction)">HLT (x86 instruction)</a> – pauses the CPU</li> <li><a href="/wiki/Identity_function" title="Identity function">Identity function</a> – the functional programming equivalent to NOP</li> <li><a href="/wiki/IEFBR14" title="IEFBR14">IEFBR14</a> – mainframe tautology</li> <li><a href="/wiki/Xyzzy_(computing)" title="Xyzzy (computing)">xyzzy (computing)</a> – a command sometimes used instead of NOP</li> <li><a href="/wiki/X86_instruction_listings#Added_in_P5/P6-class_processors" title="X86 instruction listings">X86 instruction listings#Added in P5/P6-class processors</a> - <code>NOPL</code>, the official long <code>NOP</code></li></ul> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=NOP_(code)&amp;action=edit&amp;section=18" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-m68ref-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-m68ref_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-m68ref_1-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-m68ref_1-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-m68ref_1-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-m68ref_1-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.nxp.com/docs/en/reference-manual/M68000PRM.pdf">"Motorola 68000 Programmer's Reference Manual"</a> <span class="cs1-format">(PDF)</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Motorola+68000+Programmer%27s+Reference+Manual&amp;rft_id=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Freference-manual%2FM68000PRM.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-x86-instruction-set-intel-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-x86-instruction-set-intel_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-x86-instruction-set-intel_2-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-x86-instruction-set-intel_2-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-x86-instruction-set-intel_2-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html">"Intel 64 and IA-32 Architectures Software Developer's Manual: Instruction Set Reference A-Z"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2012-03-01</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Intel+64+and+IA-32+Architectures+Software+Developer%27s+Manual%3A+Instruction+Set+Reference+A-Z&amp;rft_id=https%3A%2F%2Fwww.intel.com%2Fcontent%2Fwww%2Fus%2Fen%2Fdeveloper%2Farticles%2Ftechnical%2Fintel-sdm.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-i860-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-i860_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-i860_3-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Intel, <a rel="nofollow" class="external text" href="https://bitsavers.org/components/intel/i860/240329-002_i860_64-Bit_Microprocessor_Programmers_Reference_Feb89.pdf">i860 64-bit Microprocessor Programmer's Reference Manual</a>, order no. 240329-002, Feb 1989, pages 68 and 172.</span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text">Intel, <a rel="nofollow" class="external text" href="https://www.intel.com/content/dam/doc/manual/itanium-architecture-vol-1-2-3-4-reference-set-manual.pdf">Intel Itanium Architecture Software Developer’s Manual rev 2.3</a>, May 2010. Book 3 section 2.2 on page 1092, section 4.3.4.1 on page 1218, section 4.4.11 on page 1248, section 4.5.3.2 on page 1255, section 4.6.9.2 on page 1264 and section 4.7.4 on page 1267. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20111208182434/https://www.intel.com/content/dam/doc/manual/itanium-architecture-vol-1-2-3-4-reference-set-manual.pdf">Archived</a> on 8 Dec 2011.</span> </li> <li id="cite_note-arm_ddi_0406-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-arm_ddi_0406_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-arm_ddi_0406_5-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">ARM, <a rel="nofollow" class="external text" href="https://documentation-service.arm.com/static/5f8daeb7f86e16515cdb8c4e">ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition</a>, ARM DDI 0406C.d, 29 Mar 2018, section A8.8.120 on page 511. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230927135324/https://documentation-service.arm.com/static/5f8daeb7f86e16515cdb8c4e">Archived</a> on 27 Sep 2023.</span> </li> <li id="cite_note-arm_dui_0041c-6"><span class="mw-cite-backlink">^ <a href="#cite_ref-arm_dui_0041c_6-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-arm_dui_0041c_6-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">ARM, <a rel="nofollow" class="external text" href="https://documentation-service.arm.com/static/604f2c8aefb1a112dce66ba1">ARM Software Development Toolkit Version 2.50 Reference Guide</a>, ARM DUI 0041C, Nov 1998, see sections 5.5.6 and 5.6.4 for NOPs in ARM/Thumb assembly. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220601052534/https://documentation-service.arm.com/static/604f2c8aefb1a112dce66ba1">Archived</a> on 1 Jun 2022.</span> </li> <li id="cite_note-arm_asmref-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-arm_asmref_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-arm_asmref_7-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">ARM, <a rel="nofollow" class="external text" href="https://developer.arm.com/documentation/dui0489/i/Cjafcggi?lang=en">ARM Compiler toolchain Assembler Reference v5.03, NOP instruction</a>. <a rel="nofollow" class="external text" href="https://archive.today/20250316203453/https://developer.arm.com/documentation/dui0489/i/Cjafcggi?lang=en">Archived</a> on 16 Mar 2025.</span> </li> <li id="cite_note-osmith96-8"><span class="mw-cite-backlink">^ <a href="#cite_ref-osmith96_8-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-osmith96_8-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">O. Smith, <a rel="nofollow" class="external text" href="https://groups.google.com/g/comp.sys.arm/c/KDFGkeBRTPk/m/G5CMf41k-0QJ">StrongARM multiply speed</a>, 12 Dec 1996. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20250316212058/https://groups.google.com/g/comp.sys.arm/c/KDFGkeBRTPk/m/G5CMf41k-0QJ">Archived</a> on 16 Mar 2025.</span> </li> <li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text">Acorn Computers, <a rel="nofollow" class="external text" href="https://www.4corn.co.uk/archive/docs/Acorn%20Assembler%20Release%202-opt.pdf">Acorn Assembler Release 2</a>, May 1991. MOVNV listed on page 218. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181025200615/https://www.4corn.co.uk/archive/docs/Acorn%20Assembler%20Release%202-opt.pdf">Archived</a> on 25 Oct 2018.</span> </li> <li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text">ARM, <a rel="nofollow" class="external text" href="https://bitsavers.org/pdf/acorn/ARM_DDI_0004D_ARM610_Data_Sheet_Aug93.pdf">ARM610 32 Bit RISC Microprocessor</a>, ARM DDI 0004D, Aug 1993, page 20</span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text">ARM, <a rel="nofollow" class="external text" href="https://kib.kiev.ua/x86docs/ARM/ARMARMv5/DDI0100D.pdf">ARM Architecture Reference Manual</a>, ARM DDI 0100D, Feb 2000, section 3.2.1 on page 69. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20250316210245/https://kib.kiev.ua/x86docs/ARM/ARMARMv5/DDI0100D.pdf">Archived</a> on 16 Feb 2025.</span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text">AMD, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.bitsavers.org/components/amd/Am29000/1991_AMD_29050_Users_Manual.pdf">"Am29050 Microprocessor User's Manual"</a> <span class="cs1-format">(PDF)</span>. 1991. pp.&#160;223, 257.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Am29050+Microprocessor+User%27s+Manual&amp;rft.pages=223%2C+257&amp;rft.date=1991&amp;rft_id=http%3A%2F%2Fwww.bitsavers.org%2Fcomponents%2Famd%2FAm29000%2F1991_AMD_29050_Users_Manual.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.bitsavers.org/pdf/ibm/360/functional_characteristics/A22-6907-2_360-91_funcChar.pdf">"IBM System/360 Model 91 Functional Characteristics"</a> <span class="cs1-format">(PDF)</span>. Systems Reference Library. IBM. p.&#160;16<span class="reference-accessdate">. Retrieved <span class="nowrap">17 January</span> 2025</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=IBM+System%2F360+Model+91+Functional+Characteristics&amp;rft.series=Systems+Reference+Library&amp;rft.pages=16&amp;rft.pub=IBM&amp;rft_id=http%3A%2F%2Fwww.bitsavers.org%2Fpdf%2Fibm%2F360%2Ffunctional_characteristics%2FA22-6907-2_360-91_funcChar.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.pdf"><i>LoongArch Reference Manual, Volume 1: Basic Architecture, version 1.10</i></a> <span class="cs1-format">(PDF)</span>. Loongson. Section 2.2.1.10 on page 23 and appendix B on page 190.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=LoongArch+Reference+Manual%2C+Volume+1%3A+Basic+Architecture%2C+version+1.10&amp;rft.pages=Section+2.2.1.10+on+page+23+and+appendix+B+on+page+190&amp;rft.pub=Loongson&amp;rft_id=https%3A%2F%2Floongson.github.io%2FLoongArch-Documentation%2FLoongArch-Vol1-EN.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text">Texas Instruments, <a rel="nofollow" class="external text" href="https://www.ti.com/lit/ug/slau144k/slau144k.pdf">MSP430F2xx, MSP430G2xx Family User's Guide</a>, Dec 2004, sections 3.24 on page 47, 3.4.5 on page 63, 3.4.6.33 on page 98. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220901044506/https://www.ti.com/lit/ug/slau144k/slau144k.pdf">Archived</a> on 1 Sep 2022.</span> </li> <li id="cite_note-parisc_nop-16"><span class="mw-cite-backlink">^ <a href="#cite_ref-parisc_nop_16-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-parisc_nop_16-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20200621164851/https://parisc.wiki.kernel.org/images-parisc/7/73/Parisc2.0.pdf"><i>PA-RISC 2.0 Architecture</i></a> <span class="cs1-format">(PDF)</span>. <a href="/wiki/Hewlett-Packard" title="Hewlett-Packard">Hewlett-Packard</a>. 1995. pp.&#160;<span class="nowrap">2–</span>21, <span class="nowrap">7–</span>103. Archived from <a rel="nofollow" class="external text" href="https://parisc.wiki.kernel.org/images-parisc/7/73/Parisc2.0.pdf">the original</a> <span class="cs1-format">(PDF)</span> on June 21, 2020.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=PA-RISC+2.0+Architecture&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E2-%3C%2Fspan%3E21%2C+%3Cspan+class%3D%22nowrap%22%3E7-%3C%2Fspan%3E103&amp;rft.pub=Hewlett-Packard&amp;rft.date=1995&amp;rft_id=https%3A%2F%2Fparisc.wiki.kernel.org%2Fimages-parisc%2F7%2F73%2FParisc2.0.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20240910155728/https://files.openpower.foundation/s/9izgC5Rogi5Ywmm/download/OPF_PowerISA_v3.1C.pdf"><i>Power ISA version 3.1C</i></a> <span class="cs1-format">(PDF)</span>. OpenPOWER Foundation. 26 May 2024. Book 1 section 3.3.13 on pages 97-99; book 2 section 3.2 on page 987 and section 4.3.3 on page 1005; book 3 section 5.4.3 on page 1100, section 9.2.1 on page 1244 and section 11.3 on page 1253. Archived from <a rel="nofollow" class="external text" href="https://files.openpower.foundation/s/9izgC5Rogi5Ywmm/download/OPF_PowerISA_v3.1C.pdf">the original</a> <span class="cs1-format">(PDF)</span> on 10 September 2024.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Power+ISA+version+3.1C&amp;rft.pages=Book+1+section+3.3.13+on+pages+97-99%3B+book+2+section+3.2+on+page+987+and+section+4.3.3+on+page+1005%3B+book+3+section+5.4.3+on+page+1100%2C+section+9.2.1+on+page+1244+and+section+11.3+on+page+1253&amp;rft.pub=OpenPOWER+Foundation&amp;rft.date=2024-05-26&amp;rft_id=https%3A%2F%2Ffiles.openpower.foundation%2Fs%2F9izgC5Rogi5Ywmm%2Fdownload%2FOPF_PowerISA_v3.1C.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-18">^</a></b></span> <span class="reference-text">IBM, <a rel="nofollow" class="external text" href="http://ilab.usc.edu/packages/cell-processor/docs/CBE_Handbook_v1.1_24APR2007_pub.pdf">Cell Broadband Engine Programming Handbook</a>, version 1.1, 24 Apr 2007, section 10.6.2.2 on page 316. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20080524084600/http://ilab.usc.edu/packages/cell-processor/docs/CBE_Handbook_v1.1_24APR2007_pub.pdf">Archived</a> on 24 May 2008.</span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text">IBM, <a rel="nofollow" class="external text" href="https://support.scinet.utoronto.ca/Tutorials/compiler-workshop/Compiling_for_POWER6.pdf">SCINET Briefing: Compiling for Power6</a>, Feb 2009, slide 9. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20250323031022/https://support.scinet.utoronto.ca/Tutorials/compiler-workshop/Compiling_for_POWER6.pdf">Archived</a> on 23 Mar 2025</span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://www.setphaserstostun.org/power8/POWER8_UM_v1.3_16MAR2016_pub.pdf"><i>POWER8 Processor User's Manual for the Single-Chip Modul, version 1.3</i></a> <span class="cs1-format">(PDF)</span>. <a href="/wiki/IBM" title="IBM">IBM</a>. 16 March 2016. Section 10.1.8 on page 209. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181228110025/https://www.setphaserstostun.org/power8/POWER8_UM_v1.3_16MAR2016_pub.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on 28 December 2018.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=POWER8+Processor+User%27s+Manual+for+the+Single-Chip+Modul%2C+version+1.3&amp;rft.pages=Section+10.1.8+on+page+209&amp;rft.pub=IBM&amp;rft.date=2016-03-16&amp;rft_id=https%3A%2F%2Fwww.setphaserstostun.org%2Fpower8%2FPOWER8_UM_v1.3_16MAR2016_pub.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://riscv.org/wp-content/uploads/2017/05/riscv-spec-v2.2.pdf"><i>The RISC-V Instruction Set Manual, Volume 1: User-Level ISA, version 2.2</i></a> <span class="cs1-format">(PDF)</span>. <a href="/wiki/RISC-V_Foundation" class="mw-redirect" title="RISC-V Foundation">RISC-V Foundation</a>. 7 May 2017. p.&#160;79.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=The+RISC-V+Instruction+Set+Manual%2C+Volume+1%3A+User-Level+ISA%2C+version+2.2&amp;rft.pages=79&amp;rft.pub=RISC-V+Foundation&amp;rft.date=2017-05-07&amp;rft_id=https%3A%2F%2Friscv.org%2Fwp-content%2Fuploads%2F2017%2F05%2Friscv-spec-v2.2.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFWeaver,_D._L.Germond,_T.1994" class="citation book cs1">Weaver, D. L.; Germond, T., eds. (1994). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20120118213535/http://www.sparc.org/standards/SPARCV9.pdf"><i>The SPARC Architecture Manual, Version 9</i></a> <span class="cs1-format">(PDF)</span>. <a href="/wiki/Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/0-13-825001-4" title="Special:BookSources/0-13-825001-4"><bdi>0-13-825001-4</bdi></a>. Archived from <a rel="nofollow" class="external text" href="http://www.sparc.org/standards/SPARCV9.pdf">the original</a> <span class="cs1-format">(PDF)</span> on 2012-01-18<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-01-09</span></span>. <q>Note that NOP is a special case of the SETHI instruction, with imm22 = 0 and rd = 0.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=The+SPARC+Architecture+Manual%2C+Version+9&amp;rft.pub=Prentice+Hall&amp;rft.date=1994&amp;rft.isbn=0-13-825001-4&amp;rft_id=http%3A%2F%2Fwww.sparc.org%2Fstandards%2FSPARCV9.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text">SuperH Inc. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20090320050552/http://lars.nocrew.org:80/computers/processors/SuperH/cpush5v3.pdf">SH-5 CPU Core, Volume 3: SHcompact</a>, 22 Feb 2002, page 219. Archived from the <a rel="nofollow" class="external text" href="http://lars.nocrew.org:80/computers/processors/SuperH/cpush5v3.pdf">original</a> on 20 Mar 2009.</span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text">SuperH Inc. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20090320050550/http://lars.nocrew.org:80/computers/processors/SuperH/cpush5v2.pdf">SH-5 CPU Core, Volume 2: SHmedia</a>, 22 Feb 2000, page 260. Archived from the <a rel="nofollow" class="external text" href="http://lars.nocrew.org:80/computers/processors/SuperH/cpush5v2.pdf">original</a> on 20 Mar 2009.</span> </li> <li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text">Tensilica, <a rel="nofollow" class="external text" href="https://0x04.net/~mwk/doc/xtensa.pdf">Xtensa Instruction Set Architecture Reference Manual</a>, Apr 2010, pages 459 and 460. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160305050930/https://0x04.net/~mwk/doc/xtensa.pdf">Archived</a> on 5 Mar 2016.</span> </li> <li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://www.adaic.org/resources/add_content/standards/05aarm/html/AA-5-1.html#S0134">Ada Reference Manual &#8212; null statements</a>. "The execution of a null_statement has no effect."</span> </li> <li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text">MDN JavaScript reference – <a rel="nofollow" class="external text" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/Empty">empty statement</a>. "The empty statement is a semicolon (<code>;</code>) indicating that no statement will be executed, even if JavaScript syntax requires one."</span> </li> <li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text">ECMAScript Language Specification – Edition 5.1 – <a rel="nofollow" class="external text" href="https://www.ecma-international.org/ecma-262/5.1/#sec-15.3.4">Properties of the Function Prototype Object</a></span> </li> <li id="cite_note-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-29">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://api.jquery.com/jquery.noop/">jQuery.noop()</a> from jQuery API documentation</span> </li> <li id="cite_note-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-30">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://lodash.com/docs/#noop">"Lodash Documentation"</a>. <i>lodash.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2017-12-15</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=lodash.com&amp;rft.atitle=Lodash+Documentation&amp;rft_id=https%3A%2F%2Flodash.com%2Fdocs%2F%23noop&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-31">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://tldp.org/LDP/abs/html/special-chars.html">Advanced Bash-Scripting Guide &gt; Chapter 3. Special Characters</a></span> </li> <li id="cite_note-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-32">^</a></b></span> <span class="reference-text">bash manpage &gt; SHELL BUILTIN COMMANDS</span> </li> <li id="cite_note-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-33">^</a></b></span> <span class="reference-text">zsh manpage (zshbuiltins) &gt; SHELL BUILTIN COMMANDS</span> </li> <li id="cite_note-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-34">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFBausum2002" class="citation book cs1">Bausum, David (2002). "TeX Primitive Control Sequences". <a rel="nofollow" class="external text" href="https://www.tug.org/utilities/plain/cseq.html#relax-rp"><i>TeX Reference Manual</i></a>. Kluwer Academic Publishers<span class="reference-accessdate">. Retrieved <span class="nowrap">1 April</span> 2020</span>. <q>According to The TeXbook, 'TeX does nothing' when it encounters <code>\relax</code>. Actually, <code>\relax</code> may tell TeX, 'This is the end of what you've been doing'.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=TeX+Primitive+Control+Sequences&amp;rft.btitle=TeX+Reference+Manual&amp;rft.pub=Kluwer+Academic+Publishers&amp;rft.date=2002&amp;rft.aulast=Bausum&amp;rft.aufirst=David&amp;rft_id=https%3A%2F%2Fwww.tug.org%2Futilities%2Fplain%2Fcseq.html%23relax-rp&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> <li id="cite_note-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-35">^</a></b></span> <span class="reference-text">TeX wikibook – <a class="external text" href="https://en.wikibooks.org/wiki/TeX/relax">relax</a></span> </li> <li id="cite_note-minix_ftpd-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-minix_ftpd_36-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.cise.ufl.edu/~cop4600/cgi-bin/lxr/http/source.cgi/commands/ftpd/ftpd.c#L139">"ftpd.c"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2016-06-19</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=ftpd.c&amp;rft_id=http%3A%2F%2Fwww.cise.ufl.edu%2F~cop4600%2Fcgi-bin%2Flxr%2Fhttp%2Fsource.cgi%2Fcommands%2Fftpd%2Fftpd.c%23L139&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ANOP+%28code%29" class="Z3988"></span></span> </li> </ol></div></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐f968fbb9b‐2wwhg Cached time: 20250401115322 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.421 seconds Real time usage: 0.518 seconds Preprocessor visited node count: 2879/1000000 Post‐expand include size: 29403/2097152 bytes Template argument size: 1314/2097152 bytes Highest expansion depth: 16/100 Expensive parser function count: 9/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 79297/5000000 bytes Lua time usage: 0.206/10.000 seconds Lua memory usage: 5905197/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 436.947 1 -total 33.56% 146.620 1 Template:Reflist 20.11% 87.879 6 Template:Cite_web 17.88% 78.133 1 Template:Machine_code 16.08% 70.277 1 Template:Short_description 11.65% 50.889 1 Template:Sticky_header 10.67% 46.622 2 Template:R 9.14% 39.948 4 Template:R/ref 8.85% 38.651 2 Template:Pagetype 8.12% 35.481 7 Template:Cite_book --> <!-- Saved in parser cache with key enwiki:pcache:390580:|#|:idhash:canonical and timestamp 20250401115322 and revision id 1283418924. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://auth.wikimedia.org/loginwiki/wiki/Special:CentralAutoLogin/start?useformat=desktop&amp;type=1x1&amp;usesul3=1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=NOP_(code)&amp;oldid=1283418924">https://en.wikipedia.org/w/index.php?title=NOP_(code)&amp;oldid=1283418924</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Machine_code" title="Category:Machine code">Machine code</a></li><li><a href="/wiki/Category:Computing_acronyms" title="Category:Computing acronyms">Computing acronyms</a></li><li><a href="/wiki/Category:X86_instructions" title="Category:X86 instructions">X86 instructions</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_is_different_from_Wikidata" title="Category:Short description is different from Wikidata">Short description is different from Wikidata</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 1 April 2025, at 11:52<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=NOP_(code)&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://www.wikimedia.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/static/images/footer/wikimedia-button.svg" width="84" height="29"><img src="/static/images/footer/wikimedia.svg" width="25" height="25" alt="Wikimedia Foundation" lang="en" loading="lazy"></picture></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/w/resources/assets/poweredby_mediawiki.svg" width="88" height="31"><img src="/w/resources/assets/mediawiki_compact.svg" alt="Powered by MediaWiki" lang="en" width="25" height="25" loading="lazy"></picture></a></li> </ul> </footer> </div> </div> </div> <div class="vector-header-container vector-sticky-header-container"> <div id="vector-sticky-header" class="vector-sticky-header"> <div class="vector-sticky-header-start"> <div class="vector-sticky-header-icon-start vector-button-flush-left vector-button-flush-right" aria-hidden="true"> <button class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-sticky-header-search-toggle" tabindex="-1" data-event-name="ui.vector-sticky-search-form.icon"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </button> </div> <div role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box"> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail"> <form action="/w/index.php" id="vector-sticky-search-form" class="cdx-search-input cdx-search-input--has-end-button"> <div class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <div class="vector-sticky-header-context-bar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-sticky-header-toc" class="vector-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc vector-button-flush-left" > <input type="checkbox" id="vector-sticky-header-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-sticky-header-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-sticky-header-toc-label" for="vector-sticky-header-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-sticky-header-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" ><span class="mw-page-title-main">NOP (code)</span></div> </div> </div> <div class="vector-sticky-header-end" aria-hidden="true"> <div class="vector-sticky-header-icons"> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-talk-sticky-header" tabindex="-1" data-event-name="talk-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-subject-sticky-header" tabindex="-1" data-event-name="subject-sticky-header"><span class="vector-icon mw-ui-icon-article mw-ui-icon-wikimedia-article"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-history-sticky-header" tabindex="-1" data-event-name="history-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-history mw-ui-icon-wikimedia-wikimedia-history"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only mw-watchlink" id="ca-watchstar-sticky-header" tabindex="-1" data-event-name="watch-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-star mw-ui-icon-wikimedia-wikimedia-star"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-edit-sticky-header" tabindex="-1" data-event-name="wikitext-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-wikiText mw-ui-icon-wikimedia-wikimedia-wikiText"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-ve-edit-sticky-header" tabindex="-1" data-event-name="ve-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-edit mw-ui-icon-wikimedia-wikimedia-edit"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-viewsource-sticky-header" tabindex="-1" data-event-name="ve-edit-protected-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-editLock mw-ui-icon-wikimedia-wikimedia-editLock"></span> <span></span> </a> </div> <div class="vector-sticky-header-buttons"> <button class="cdx-button cdx-button--weight-quiet mw-interlanguage-selector" id="p-lang-btn-sticky-header" tabindex="-1" data-event-name="ui.dropdown-p-lang-btn-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>17 languages</span> </button> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive" id="ca-addsection-sticky-header" tabindex="-1" data-event-name="addsection-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbleAdd-progressive mw-ui-icon-wikimedia-speechBubbleAdd-progressive"></span> <span>Add topic</span> </a> </div> <div class="vector-sticky-header-icon-end"> <div class="vector-user-links"> </div> </div> </div> </div> </div> <div class="mw-portlet mw-portlet-dock-bottom emptyPortlet" id="p-dock-bottom"> <ul> </ul> </div> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.canary-6c8459b844-8drcw","wgBackendResponseTime":152,"wgPageParseReport":{"limitreport":{"cputime":"0.421","walltime":"0.518","ppvisitednodes":{"value":2879,"limit":1000000},"postexpandincludesize":{"value":29403,"limit":2097152},"templateargumentsize":{"value":1314,"limit":2097152},"expansiondepth":{"value":16,"limit":100},"expensivefunctioncount":{"value":9,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":79297,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 436.947 1 -total"," 33.56% 146.620 1 Template:Reflist"," 20.11% 87.879 6 Template:Cite_web"," 17.88% 78.133 1 Template:Machine_code"," 16.08% 70.277 1 Template:Short_description"," 11.65% 50.889 1 Template:Sticky_header"," 10.67% 46.622 2 Template:R"," 9.14% 39.948 4 Template:R/ref"," 8.85% 38.651 2 Template:Pagetype"," 8.12% 35.481 7 Template:Cite_book"]},"scribunto":{"limitreport-timeusage":{"value":"0.206","limit":"10.000"},"limitreport-memusage":{"value":5905197,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f968fbb9b-2wwhg","timestamp":"20250401115322","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"NOP (code)","url":"https:\/\/en.wikipedia.org\/wiki\/NOP_(code)","sameAs":"http:\/\/www.wikidata.org\/entity\/Q1791410","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q1791410","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2003-12-06T12:13:00Z","dateModified":"2025-04-01T11:52:28Z","headline":"machine and assembly-language instruction with no effect"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10