ประสิทธิภาพ, รอบ fetch-execute และการขัดจังหวะ
แนะนำใหม่
21:25
สถาปัตยกรรม Von Neumann
ตลอดประวัติศาสตร์ส่วนใหญ่ เครื่องจักรทำงานเพียงอย่างหนึ่ง กระดุมทอผ้า คำนวณบวก เพื่อทำให้มันทำอะไรใหม่ คุณต้องสร้างมันใหม่ จากนั้นก็มาถึงสิ่งที่ดูเรียบง่ายแต่ลวงตา…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| processor/ˈprəʊsesə/ | The component that executes instructions and performs the operations of a computer or similar system. |
| cycles | Repeated sequences of steps the processor follows to fetch and execute instructions. |
| instruction/ɪnˈstrʌkʃn/ | A command that tells the processor what action to perform. |
| interrupt/ˈɪntərʌpt/ | สัญญาณรบกวน |
| Clock speed/klɒk spiːd/ | More fetch-execute cycles a second, so more instructions a second, until heat sets the limit. |
| Execute/ˈeksɪkjuːt/ | Arithmetic and logic go to the ALU with the result in the ACC. |
| Number of cores/ˈnʌmbə ɒv kɔːz/ | The total count of independent processing units in a processor. |
| threads | Separate sequences of instructions that a processor can run independently. |
| parallel/ˈpærəlel/ | Describing operations that take place concurrently rather than one after another. |
| cores/kɔːz/ | คอร์ |
| Bus width | A wider data bus moves more bits per transfer, so fewer transfers. |
| data bus/ˈdeɪtə bʌs/ | The signal lines carrying data between processor, memory and other connected components. |
| bits/bɪts/ | A binary digit, taking the value zero or one. |
| address bus/əˈdres bʌs/ | The signal lines used to identify a memory location or device involved in a transfer. |
| memory/ˈmeməri/ | Circuits that store data, such as registers, RAM and ROM. |
| Cache/kæʃ/ | A small, fast memory next to the processor holding the instructions and data used most recently, so fewer slow trips to RAM . Word size , the amount of RAM and the storage type help too. |
| RAM/ræm/ | Random-access memory used for working data and instructions, usually losing its contents when power is removed. |
| Word size/wɜːd saɪz/ | The number of bits a processor can handle as one unit. |
| working set | The instructions and data a program is currently using or likely to need. |
| port/pɔːt/ | พอร์ต |
| peripheral/pəˈrɪfərəl/ | อุปกรณ์ต่อพ่วง |
| USB | A general-purpose connection for transferring data and supplying power to devices. |
| plug-and-play | Describes a device that a computer detects and sets up automatically. |
| load/ləʊd/ | To move data or a program into memory or a register. |
| driver/ˈdraɪvə/ | Software that allows the operating system to communicate with a device. |
| HDMI | A connection that carries digital video and audio through one cable. |
| digital video | Moving images represented by numbers that a computer can process. |
| audio | Sound represented as a signal that can be stored or transmitted. |
| analogue/ˈænəlɒɡ/ | Describes a signal that changes continuously and can take any value within a range. |
| VGA | An older connection that carries analogue video to a display. |
| fetch-execute cycle/fetʃ ˈeksɪkjuːt ˈsaɪkl/ | รอบการดึงและดำเนินการ |
| register transfer notation/ˈredʒɪstə ˈtrænsfɜː nəʊˈteɪʃn/ | สัญกรณ์การถ่ายโอนรีจิสเตอร์ |
| read signal | A signal telling memory to send back data from a given address. |
| control bus/kənˈtrəʊl bʌs/ | The signal lines carrying control and timing information, such as read, write or interrupt signals. |
| address/əˈdres/ | An identifier specifying a location in memory or on a network. |
| PC | A register holding the address of the next instruction to fetch. |
| jump/dʒʌmp/ | An instruction that changes the address of the next instruction to fetch. |
| MAR | A register holding the address of a memory location being accessed. |
| MDR | A register holding data being transferred to or from memory. |
| CIR | A register holding the current instruction while it is decoded and executed. |
| Decode | The control unit works out from the instruction in the CIR which operation it is and where its operands are. |
| control unit/kənˈtrəʊl ˈjuːnɪt/ | The part of the processor that decodes instructions and controls their execution. |
| operation/ˌɒpəˈreɪʃn/ | The action that an instruction tells the processor to perform. |
| operands | Values used by an operation to produce a result. |
| arithmetic/əˈrɪθmətɪk/ | Calculations with numbers, such as adding and subtracting. |
| logic/ˈlɒdʒɪk/ | Operations that use rules to combine or change binary values. |
| ALU/ˌeɪ el ˈjuː/ | The part of a processor that performs arithmetic and logical operations. |
| ACC | A register that holds results of arithmetic and logic operations. |
| store/stɔː/ | To move data from a register into a memory location. |
| register/ˈredʒɪstə/ | A small, fast storage location within a processor used to hold data, addresses or instructions temporarily. |
| memory location | A place in memory that holds data and has an address. |
| signal/ˈsɪɡnl/ | Information or cues that communicate a condition and can influence a response or decision. |
| buffer/ˈbʌfə/ | A temporary area of memory used to hold data while it is transferred or processed. |
| network packet | A small unit of data sent across a computer network. |
| software fault | An error in software that causes a problem during a program's execution. |
| illegal instruction | An instruction that the processor cannot recognise or is not allowed to execute. |
| arithmetic overflow | A result that is too large or small for the available number of bits. |
| operating system/ˈɒpəreɪtɪŋ ˈsɪstəm/ | System software that manages hardware resources and provides services for applications. |
| timer/ˈtaɪmə/ | A hardware counter in a microcontroller used to measure time or produce regular events. |
| time slice/taɪm slaɪs/ | A short interval of processor time allocated to a task before another task may run. |
| multitasks | Runs multiple tasks by switching between them so they appear to run together. |
| state/steɪt/ | The saved information needed to continue a program from its current point. |
| stack/stæk/ | สตैก |
| interrupt service routine/ˈɪntərʌpt ˈsɜːvɪs ruːˈtiːn/ | โปรแกรมบริการ_interrupt |
| input device/ˈɪnpʊt dɪˈvaɪs/ | A device that sends data or instructions to a computer for processing. |
| interrupt signal | A signal that asks the processor to respond to an event. |
| flag/flæɡ/ | A bit that records whether a particular condition or event has occurred. |
| interrupt register/ˈɪntərʌpt ˈredʒɪstə/ | รีจิสเตอร์ interrupt |
| priority/praɪˈɒrɪti/ | The level of importance that decides which task or interrupt is handled first. |
ทำไมแล็ปท็อปของคุณหยุดทุกอย่างเมื่อคุณกดปุ่มคีย์บอร์ด
- โปรเซสเซอร์ทำงานหลายพันล้านรอบต่อวินาที หากมันต้องหยุดและถามคีย์บอร์ด "มีอะไรไหม?" ระหว่างคำสั่ง มันจะเสียเวลาส่วนใหญ่ไปกับคำถาม
- แทนที่จะทำเช่นนั้น คีย์บอร์ดส่ง interrupt. โปรเซสเซอร์จบคำสั่งปัจจุบัน, บันทึกตำแหน่ง, จัดการกับปุ่มคีย์บอร์ด, และกลับคืนมาราวกับว่าไม่มีอะไรเกิดขึ้น
- กลไกเดียวนี้คือเหตุผลที่โปรเซสเซอร์เดียวดูเหมือนจะเล่นเพลง, โฟลเดอร์เว็บ และการพิมพ์ของคุณพร้อมกัน
- บทเรียนนี้ครอบคลุมสิ่งที่ทำให้โปรเซสเซอร์เร็ว, วิธีเชื่อมต่อกับอุปกรณ์, วิธีทำงานของคำสั่งหนึ่งอย่างละเอียด, และวิธีที่interruptแทรกเข้ามา
สิ่งที่มีผลต่อประสิทธิภาพ
- Clock speed: more fetch-execute cycles a second, so more instructions a second, until heat sets the limit.
- Number of cores: แต่ละcore ดึงและดำเนินการคำสั่งของตัวเองในเวลาเดียวกัน ดังนั้นโปรแกรมหลายรายการหรือthread จึงทำงานแบบขนาน โปรแกรมต้องเขียนเพื่อใช้งานพวกมัน ดังนั้นการเพิ่มจำนวน core เป็นสองเท่าไม่ได้ทำให้ความเร็วเพิ่มขึ้นเป็นสองเท่า
- ความกว้างของบัส: บัสข้อมูลที่มีความกว้างมากกว่าสามารถถ่ายโอนบิตได้มากขึ้นต่อการถ่ายโอนหนึ่งครั้ง จึงต้องการจำนวนครั้งในการถ่ายโอนน้อยลง; บัสที่อยู่มีความกว้างมากกว่าสามารถเข้าถึงหน่วยความจำได้มากขึ้น
- แคช (Cache): เป็นหน่วยความจำขนาดเล็กและความเร็วสูงที่อยู่ใกล้กับโปรเซสเซอร์ เพื่อเก็บคำสั่งและข้อมูลที่ใช้งานบ่อยที่สุดล่าสุด ทำให้มีการเดินทางไปยัง RAM แบบช้าๆ น้อยลง ขนาดคำ (Word size), ปริมาณ RAM และประเภทการจัดเก็บข้อมูลก็ช่วยเพิ่มประสิทธิภาพด้วยเช่นกัน
เลือก ทั้งหมด ปัจจัยที่มีผลต่อประสิทธิภาพของ CPU
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Clock speed, cores และ cache (รวม word size, RAM, storage และ bus width) มีผลต่อประสิทธิภาพ สีเคสไม่มีผล
CPU แบบ multi-core มีประโยชน์เป็นพิเศษสำหรับ:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Core เพิ่มเติมรันงานแบบขนาน งาน single-threaded ล้วนได้รับประโยชน์จากความเร็วมหาศาลต่อ core มากกว่า
____ หน่วยความจำเป็นที่เก็บเล็กและเร็วข้างโปรเซสเซอร์ที่เก็บคำสั่งและข้อมูลที่เพิ่งใช้ไป เพื่อให้ลดการเดินทางช้าๆ ไป RAM ลง
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
แคชที่มากขึ้นทำให้ชุดการทำงานส่วนใหญ่อยู่ใกล้กับโปรเซสเซอร์ ซึ่งเป็นเหตุผลที่ปรากฏในทุกการเปรียบเทียบประสิทธิภาพ
ตัวอย่างวิธีทำ: "อธิบายว่าทำไมคอมพิวเตอร์รุ่นใหม่จึงเร็วขึ้น"
- เปรียบเทียบสเปคทั้งสองบรรทัดต่อบรรทัด โดยแต่ละบรรทัดต้องมีเหตุผลประกอบ
- 3.8 GHz เทียบกับ 2.4 GHz: มีรอบการทำงานต่อวินาทีมากขึ้น จึงสามารถดำเนินการประมวลผลคำสั่งได้มากขึ้นต่อวินาที
- 8 คอร์ เทียบกับ 4: สามารถดึงและประมวลผลคำสั่งได้มากขึ้นเป็นสองเท่าในเวลาเดียวกัน สำหรับซอฟต์แวร์ที่รองรับการใช้งานหลายคอร์
- 16 MB ของแคชเมื่อเทียบกับ 4 MB: ข้อมูลในเซตที่ทำงานอยู่จะถูกเก็บไว้ใกล้กับโปรเซสเซอร์มากขึ้น ทำให้ต้องรอข้อมูลจาก RAM น้อยลง แต่ละบรรทัดมีคะแนน 2 ส่วน: ปัจจัยและผลที่ตามมา

พอร์ต
- พอร์ต คือซ็อกเก็ตทางกายภาพที่ใช้เชื่อมต่ออุปกรณ์ต่อพ่วง (peripheral)
- USB (Universal Serial Bus) เป็นแบบอเนกประสงค์: ใช้กับคีย์บอร์ด, ไดร์ฟ, โทรศัพท์ มันคือระบบเสียบแล้วใช้งานได้ทันที: คอมพิวเตอร์จะตรวจจับอุปกรณ์ ระบุชนิด โหลดไดรเวอร์ และจ่ายไฟให้โดยไม่ต้องรีบูตเครื่อง
- HDMI (High Definition Multimedia Interface) carries digital video and audio down one cable, so nothing is converted to analogue and the picture is not degraded. VGA (Video Graphics Array) is the older analogue video socket.
จับคู่พอร์ตแต่ละตัวกับสิ่งที่มันส่งผ่าน
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
สัญญาณต่างกัน, ซ็อกเก็ตต่างกัน: สาย HDMI จะไม่เข้ากับพอร์ต USB
ขั้นตอนการดึงคำสั่ง (Fetch stage)
- ทุกครั้งที่ประมวลผลหนึ่งคำสั่ง โปรเซสเซอร์จะดำเนินการตาม รอบดึง-ดำเนินการ (fetch-execute cycle) โดยขั้นตอนดึงคำสั่งมาอยู่ก่อน และข้อสอบต้องการคำตอบในรูปแบบ สัญลักษณ์การถ่ายโอนรีจิสเตอร์ (register transfer notation)
MAR ← [PC] the address of the next instruction goes to the MAR
PC ← [PC] + 1 the PC now points to the following instruction
MDR ← [[MAR]] the instruction at that address is read into the MDR
CIR ← [MDR] the instruction is copied into the CIR for decoding
- สัญญาณอ่านจะเดินทางบนบัสควบคุม ที่อยู่ของคำสั่งเดินทางบนบัสที่อยู่ และคำสั่งจะกลับมาทางบัสข้อมูล PC จะถูกเพิ่มค่าขึ้นทันทีหลังจากที่อยู่ของมันถูกคัดลอกไป เพื่อที่ว่าคำสั่งกระโดด (jump) ที่ถูกเรียกใช้ทีหลังยังสามารถมาแทนที่ค่าเดิมได้

PC → MAR → Memory → MDR → CIR, พร้อมกับการเพิ่มค่า PC ระหว่างทาง
เรียงลำดับขั้นตอนการดึงคำสั่งให้ถูกต้อง
ความยาก 3/5 · 200 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
PC → MAR, เพิ่มค่า PC, ส่งสัญญาณอ่าน, แล้วคำสั่งเดินทางจาก MDR → CIR พร้อมสำหรับการถอดรหัส
PC จะถูกเพิ่มค่าในช่วงการดึงคำสั่ง เพื่อให้รอบถัดไปดึงคำสั่งถัดไปได้
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
การเพิ่มค่า PC ก่อนหน้านี้ทำให้ชี้ไปที่คำสั่งถัดไปเมื่อคำสั่งปัจจุบันดำเนินการ (ยกเว้นมีการกระโดดเปลี่ยน)
การตีความ, การดำเนินการ, และการทำซ้ำ
- การตีความ (Decode): หน่วยควบคุมจะพิจารณาจากคำสั่งใน CIR ว่าคำสั่งนี้คือการกระทำอะไร และมี operands อยู่ที่ไหน
- การดำเนินการ (Execute): การคำนวณทางคณิตศาสตร์และตรรกะจะถูกส่งไปยัง ALU โดยมีผลลัพธ์อยู่ใน ACC; คำสั่ง load หรือ store จะย้ายข้อมูลระหว่างหน่วยความจำและรีจิสเตอร์; คำสั่ง jump จะเขียนที่อยู่ใหม่เข้าไปใน PC
- จากนั้นรอบการทำงานจะวนกลับไปที่
MAR ← [PC]ในตอนท้ายของแต่ละรอบ โปรเซสเซอร์จะตรวจสอบด้วยว่ามีสัญญาณขัดจังหวะ (interrupt) รออยู่หรือไม่
*คำสั่ง LOAD หนึ่งตัวและ ADD หนึ่งตัว จะแสดงการเคลื่อนย้ายข้อมูลผ่านรีจิสเตอร์: ดึง, ตีความ, ดำเนินการ, ทำซ้ำ
รอบ fetch-execute
แตะวนรอบที่ CPU ทำซ้ำหลายพันล้านครั้งต่อวินาที ดูว่า fetch ใช้รีจิสเตอร์ PC/MAR/MDR/CIR อย่างไร แล้ว decode และ execute ทำงานกับสิ่งที่ถูกดึงมา
ตัวอย่างวิธีทำ: การดำเนินการสองคำสั่งโดยใช้สัญลักษณ์
- ดำเนินการ
LDD 200(โหลดเนื้อหาจากที่อยู่ 200 เข้าไปใน ACC):MAR ← 200, ตามด้วยMDR ← [[MAR]], แล้วACC ← [MDR] - ดำเนินการ
ADD 201:MAR ← 201,MDR ← [[MAR]],ACC ← [ACC] + [MDR] - ดำเนินการ
STO 202:MAR ← 202,MDR ← [ACC],[[MAR]] ← [MDR] - แต่ละบรรทัดจะย้ายค่าหนึ่งค่าระหว่างสองตำแหน่ง สี่เหลี่ยมคู่ (double brackets) หมายถึง "ตำแหน่งหน่วยความจำที่มีที่อยู่อยู่ใน MAR" เสมอ
เรียงลำดับการถ่ายโอนรีจิสเตอร์ที่ดำเนินการ LDD 200 ตามลำดับ
ความยาก 3/5 · 200 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
ที่อยู่ไปยัง MAR เนื้อหาของที่อยู่นั้นไปยัง MDR จากนั้นเข้าสู่ Accumulator
การหยุดทำงานชั่วคราว (Interrupts)
- การหยุดทำงานชั่วคราว คือสัญญาณที่หยุดรอบการทำงานปกติชั่วคราว เพื่อให้หน่วยประมวลผลสามารถจัดการกับเหตุการณ์ฉุกเฉินได้
- Causes: a hardware device (a key pressed, a printer buffer empty, a network packet arriving), a software fault (division by zero, an illegal instruction, arithmetic overflow), the operating system's timer marking the end of a time slice, a power-failure warning.
- การหยุดทำงานชั่วคราวช่วยให้ระบบตอบสนองได้อย่างรวดเร็วโดยไม่ต้องให้หน่วยประมวลผลตรวจสอบอุปกรณ์ตลอดเวลา และเป็นกลไกที่ทำให้ระบบปฏิบัติการสามารถทำงานหลายอย่างพร้อมกันได้ (Multitasking)

วงจรนี้มีการตรวจสอบการหยุดทำงานชั่วคราวที่ท้ายของแต่ละรอบ

การขัดจังหวะ (Interrupt) คือ:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
การขัดจังหวะหยุดรอบ fetch-execute ชั่วคราวเพื่อให้ CPU สามารถบริการเหตุการณ์เร่งด่วน แล้วจึงดำเนินต่อ
ข้อใดต่อไปนี้สามารถทำให้เกิดการขัดจังหวะได้? เลือก ทั้งหมด ที่ถูกต้อง
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
เหตุการณ์ฮาร์ดแวร์ ความผิดพลาดของซอฟต์แวร์ และตัวจับเวลาของระบบปฏิบัติการ ล้วนก่อให้เกิดการขัดจังหวะ (interrupt) การสิ้นสุดของลูปเป็นการไหลของโปรแกรมปกติที่จัดการด้วยการกระโดด (jump) ไม่ใช่การขัดจังหวะ
การจัดการกับการหยุดทำงานชั่วคราว
- Finish the current instruction. Save the state: the contents of the PC and the other registers go onto the stack.
- โหลดที่อยู่ของ โปรแกรมบริการการหยุดทำงานชั่วคราว (ISR) เข้าไปใน PC แล้วดำเนินการ ISR จะจัดการกับเหตุการณ์นั้น
- กู้คืน สถานะที่บันทึกไว้จากส栈 และดำเนินต่อจากโปรแกรมที่ถูกหยุดไว้ โดยเริ่มจากตำแหน่งเดิมที่หยุดไว้พอดี

บันทึก, บริการ, กู้คืน, ดำเนินต่อ

เมื่อเกิดการขัดจังหวะ CPU จะดำเนินการคำสั่งปัจจุบันให้เสร็จสิ้นก่อน แล้วจึง:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
มันจะบันทึก PC และรีจิสเตอร์, รันโปรแกรมบริการขัดจังหวะ, แล้วคืนค่าสถานะและดำเนินต่อจากจุดที่ยังค้างอยู่
ตัวอย่างวิธีทำ: คำตอบแบบ 4 คะแนนเกี่ยวกับการหยุดทำงานชั่วคราว
- อธิบายวิธีการตรวจจับและการจัดการกับการหยุดทำงานชั่วคราวจากอุปกรณ์อินพุตในวงจรการดึงคำสั่งและดำเนินการ
- อุปกรณ์ส่งสัญญาณการหยุดทำงานชั่วคราวซึ่งจะตั้งค่าแฟล็กใน รีจิสเตอร์การหยุดทำงานชั่วคราว หน่วยประมวลผลจะตรวจสอบรีจิสเตอร์นี้ที่ ท้ายของแต่ละรอบ, หลังจากคำสั่งปัจจุบันดำเนินการเสร็จสิ้นแล้ว
- If a flag is set and the interrupt has a higher priority than the current task, the PC and the other registers are saved on the stack. The address of the ISR is loaded into the PC and the routine runs.
- เมื่อเสร็จสิ้น รีจิสเตอร์จะถูกกู้คืนจากส栈 และโปรแกรมที่ถูกหยุดไว้จะดำเนินต่อ จุดสี่ข้อตามลำดับนี้

โปรเซสเซอร์จะตรวจสอบการขัดจังหวะที่ปลายของแต่ละรอบ fetch-execute cycle หลังจากคำสั่งปัจจุบันเสร็จสิ้น
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
ช่วงเวลานี้คือสิ่งที่ทำให้สามารถบันทึกสถานะได้อย่างสะอาด: ไม่มีคำสั่งใดถูกทิ้งไว้กึ่งกลางทาง
คะแนนที่หลุดหายไป
- PC จะเพิ่มขึ้นในช่วง การดึงคำสั่ง (fetch) ไม่ใช่หลังจากการดำเนินการ (execute) ให้วาง
PC ← [PC] + 1ไว้เป็นข้อที่สอง, ตรงทันทีหลังจากMAR ← [PC] - การหยุดทำงานชั่วคราวจะถูกตรวจสอบที่ ท้าย ของรอบ NEVER ในกลางระหว่างคำสั่งใดคำสั่งหนึ่ง
- The state goes onto the stack and comes back from it. "The CPU stops" or "the program is lost" is wrong: it resumes exactly where it was.
- จำนวนแกนที่มากขึ้นไม่ได้ทำให้ความเร็วเพิ่มขึ้นเป็นสองเท่า; ซอฟต์แวร์ต้องนำไปใช้ เมื่อเปรียบเทียบสเปคควรระบุไว้
คุณเข้าใจแล้ว
- ประสิทธิภาพ: ความเร็วของนาฬิกา (clock speed), จำนวนแกน, ความกว้างของบัส (bus width), แคช (รวมขนาดคำ, RAM, พื้นที่จัดเก็บ), โดยแต่ละอย่างมีผลกระทบที่แตกต่างกัน
- พอร์ต: USB เป็นอเนกประสงค์และเสียบแล้วใช้งานได้ทันที (plug-and-play), HDMI เป็นวิดีโอและเสียงแบบดิจิทัล, VGA เป็นวิดีโอแบบอนาล็อก
- ดึงข้อมูล:
MAR ← [PC],PC ← [PC] + 1,MDR ← [[MAR]],CIR ← [MDR]; จากนั้นถอดรหัส, ขบวนการตามลำดับ, ทำซ้ำ - การรบกวน (interrupt) จะถูกตรวจสอบที่จบของแต่ละรอบ: บันทึกสถานะบนสแต็ก, รัน ISR, ฟื้นฟูสถานะ, กลับมาดำเนินการต่อ
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้