{"id":145,"date":"2022-11-27T14:27:55","date_gmt":"2022-11-27T14:27:55","guid":{"rendered":"http:\/\/learnlearn.uk\/ibcs\/?page_id=145"},"modified":"2022-11-27T20:18:53","modified_gmt":"2022-11-27T20:18:53","slug":"machine-instruction-cycle","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/","title":{"rendered":"Machine Instruction Cycle"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Introduction<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Introduction<\/h3>\n<p>The Von-Neuman Architecture is based on the principle of processes instructions that are stored within the computer&#8217;s main memory (RAM). When a program is opened the program code must first be copied from secondary storage(such as the HDD or SSD) into the computer&#8217;s RAM before the code can be executed.<\/p>\n<p>Once the code is loaded into the RAM the Fetch-Decode-Execute cycle begins.<\/p>\n<ul>\n<li>Fetch an Instruction<\/li>\n<li>Decode the Instruction<\/li>\n<li>Execute the Instruction<\/li>\n<\/ul>\n<p>The process above is repeated indefinitely, and is known as the fetch, decode, execute cycle.<\/p>\n\n<\/div><h2 class=\"tabtitle\">Video<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Tutorial Videos<\/h3>\n<p><strong>Video 1<\/strong><\/p>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=t8H6-anK0t4\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"OCR GCSE 1.1 The von Neumann architecture\" title=\"Play video &quot;OCR GCSE 1.1 The von Neumann architecture&quot;\">https:\/\/www.youtube.com\/watch?v=t8H6-anK0t4<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=t8H6-anK0t4\" title=\"OCR GCSE 1.1 The von Neumann architecture\">OCR GCSE 1.1 The von Neumann architecture (https:\/\/www.youtube.com\/watch?v=t8H6-anK0t4)<\/a><\/noscript><\/div>\n<\/div>\n<p><strong>Video 2<\/strong><\/p>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=ckDb_W72__c\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"GCSE Computer Architecture 1 - Von Neumann Architecture\" title=\"Play video &quot;GCSE Computer Architecture 1 - Von Neumann Architecture&quot;\">https:\/\/www.youtube.com\/watch?v=ckDb_W72__c<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=ckDb_W72__c\" title=\"GCSE Computer Architecture 1 - Von Neumann Architecture\">GCSE Computer Architecture 1 &#8211; Von Neumann Architecture (https:\/\/www.youtube.com\/watch?v=ckDb_W72__c)<\/a><\/noscript><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Fetch<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Fetch<\/h3>\n<p>In the fetch stage of the machine cycle the CPU retrieves the data located in the memory address indicated by the program counter. Once the instruction has been fetched the program counter is incremented by one.<\/p>\n\n<\/div><h2 class=\"tabtitle\">Decode<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Decode<\/h3>\n<p>In the decode stage of the cycle the CPU reads the instruction that has been fetched from memory and updates the registers so that they are ready for the execute stage<\/p>\n\n<\/div><h2 class=\"tabtitle\">Execute<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Execute<\/h3>\n<p>In the execute stage of the cycle the instruction given is executed.<\/p>\n\n<\/div><h2 class=\"tabtitle\">Resources<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Resources<\/h3>\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1OKFAkxq21fWd66dFKjgI859zh2QwO1Yl84N3N09nnTY\/edit?usp=sharing\">The Google Slides blank document to follow along with the video is available here.<\/a><\/p>\n<p><a href=\"https:\/\/scratch.mit.edu\/projects\/768049591\/\">FDE Cycle Scratch Animation<\/a><\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction The Von-Neuman Architecture is based on the principle of processes instructions that are stored within the computer&#8217;s main memory (RAM). When a program is opened the program code must first be copied from secondary storage(such as the HDD or SSD) into the computer&#8217;s RAM before the code can be executed. Once the code is&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Machine Instruction Cycle<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Machine Instruction Cycle - IB Computer Science<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Machine Instruction Cycle - IB Computer Science\" \/>\n<meta property=\"og:description\" content=\"Introduction The Von-Neuman Architecture is based on the principle of processes instructions that are stored within the computer&#8217;s main memory (RAM). When a program is opened the program code must first be copied from secondary storage(such as the HDD or SSD) into the computer&#8217;s RAM before the code can be executed. Once the code is&hellip;&nbsp;Read More &raquo;Machine Instruction Cycle\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/\" \/>\n<meta property=\"og:site_name\" content=\"IB Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-27T20:18:53+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/\",\"name\":\"Machine Instruction Cycle - IB Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\"},\"datePublished\":\"2022-11-27T14:27:55+00:00\",\"dateModified\":\"2022-11-27T20:18:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IB Computer Science\",\"item\":\"https:\/\/learnlearn.uk\/ibcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Machine Instruction Cycle\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"name\":\"IB Computer Science\",\"description\":\"- learnlearn..uk\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\",\"name\":\"IB Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"width\":300,\"height\":41,\"caption\":\"IB Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Machine Instruction Cycle - IB Computer Science","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/","og_locale":"en_GB","og_type":"article","og_title":"Machine Instruction Cycle - IB Computer Science","og_description":"Introduction The Von-Neuman Architecture is based on the principle of processes instructions that are stored within the computer&#8217;s main memory (RAM). When a program is opened the program code must first be copied from secondary storage(such as the HDD or SSD) into the computer&#8217;s RAM before the code can be executed. Once the code is&hellip;&nbsp;Read More &raquo;Machine Instruction Cycle","og_url":"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/","og_site_name":"IB Computer Science","article_modified_time":"2022-11-27T20:18:53+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/","url":"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/","name":"Machine Instruction Cycle - IB Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#website"},"datePublished":"2022-11-27T14:27:55+00:00","dateModified":"2022-11-27T20:18:53+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/ibcs\/machine-instruction-cycle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"IB Computer Science","item":"https:\/\/learnlearn.uk\/ibcs\/"},{"@type":"ListItem","position":2,"name":"Machine Instruction Cycle"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/ibcs\/#website","url":"https:\/\/learnlearn.uk\/ibcs\/","name":"IB Computer Science","description":"- learnlearn..uk","publisher":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/ibcs\/#organization","name":"IB Computer Science","url":"https:\/\/learnlearn.uk\/ibcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","contentUrl":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","width":300,"height":41,"caption":"IB Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/ibcs\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Introduction The Von-Neuman Architecture is based on the principle of processes instructions that are stored within the computer&#8217;s main memory (RAM). When a program is opened the program code must first be copied from secondary storage(such as the HDD or SSD) into the computer&#8217;s RAM before the code can be executed. Once the code is&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/145"}],"collection":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/comments?post=145"}],"version-history":[{"count":5,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/145\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/145\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/media?parent=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}