SlideShare a Scribd company logo
Адресирания при прекъсване
1. Относително адресиране. При безусловен преход скокът към
подпрограмата се извършва по два начина.
При първия, по-удобен и по-често използван начин, се посочва етикетът
на инструкцията с началото на подпрограмата.
Такава безусловна инструкция е например SJUMP ALA1:, където ALA1: е
етикетът в началото на подпрограмата.
Вторият, по-сложен начин (същинско относително адресиране)
изисква да се изчислят стъпките (редовете) R в програмата между началния
адрес на подпрограмата DRA относно номера на основната програма CnPC в
момента на прекъсването, според израза:
DRA = CnPC + 2 ± R
Взети са под внимание и 2-те стъпки за самата двубайтова инструкция за
преход.
Относително адресиране за безусловен преход SJUMP rel, е илюстрирано
от следния пример. Текущата инструкция при прекъсването е с адрес
CnPC: = 3001Н, а подпрограмата има начален адрес DRA = 3009Н, което означава
че R = DRA - CnPC -2 = 3009 – 3001 -2 = 6 стъпки т.е. SJUMP+6
Изпълнената инструкция е "Слей края на текущата инструкция 3001 Н.
скочи на адрес 3009Н".
Инструкциите при условен преход също използват относително
адресиране, но при изпълнение на условие, указано от състоянието на флагов
бит - например дали има пренос С, дали акумулаторът е нулиран или не и др.
Примери: Условието If Z=1, then JZ ALA2: означава "Ако акумулаторът е
нулиран, след края на текущата инструкция, скочи на подпрограма с адрес,
отговарящ на етикет ALA2. Условието на инструкцията CLNEL A, #data, AL4:
има значение "Ако данните в акумулатора АСС се различават от литерала #data,
скочи на подпрограма, отговаряща на етикет AL4".
2. Стековото адресиране е широко разпространено. Използва
инструкции от типа PUSH u POP. Първата инструкция означава "Зареди стека
със адреса на програмния брояч на текущата програма. Втората инструкция е
обратната: "Зареди програмния брояч от стека със следващата инструкция на
програмата”.
Наред с тази основна дейност, ядрото на много микропроцесори е в състояние
да зарежда стека с данните на адресите (dir) от вътрешното регистрово
пространство. В този случай са в сила универсални инструкции от типа
PUSH dir и POP dir, примерно PUSH АСС; POP ACC. В редица случаи стекът
може да се използува като адрес при неявно адресиране.
Адресиранията при RISC микропроцесорите са ограничени обикновено до
пряко, косвено и относително.

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

24.адресирания при прекъсване

  • 1. Адресирания при прекъсване 1. Относително адресиране. При безусловен преход скокът към подпрограмата се извършва по два начина. При първия, по-удобен и по-често използван начин, се посочва етикетът на инструкцията с началото на подпрограмата. Такава безусловна инструкция е например SJUMP ALA1:, където ALA1: е етикетът в началото на подпрограмата. Вторият, по-сложен начин (същинско относително адресиране) изисква да се изчислят стъпките (редовете) R в програмата между началния адрес на подпрограмата DRA относно номера на основната програма CnPC в момента на прекъсването, според израза: DRA = CnPC + 2 ± R Взети са под внимание и 2-те стъпки за самата двубайтова инструкция за преход. Относително адресиране за безусловен преход SJUMP rel, е илюстрирано от следния пример. Текущата инструкция при прекъсването е с адрес CnPC: = 3001Н, а подпрограмата има начален адрес DRA = 3009Н, което означава че R = DRA - CnPC -2 = 3009 – 3001 -2 = 6 стъпки т.е. SJUMP+6 Изпълнената инструкция е "Слей края на текущата инструкция 3001 Н. скочи на адрес 3009Н". Инструкциите при условен преход също използват относително адресиране, но при изпълнение на условие, указано от състоянието на флагов бит - например дали има пренос С, дали акумулаторът е нулиран или не и др. Примери: Условието If Z=1, then JZ ALA2: означава "Ако акумулаторът е нулиран, след края на текущата инструкция, скочи на подпрограма с адрес, отговарящ на етикет ALA2. Условието на инструкцията CLNEL A, #data, AL4: има значение "Ако данните в акумулатора АСС се различават от литерала #data, скочи на подпрограма, отговаряща на етикет AL4". 2. Стековото адресиране е широко разпространено. Използва инструкции от типа PUSH u POP. Първата инструкция означава "Зареди стека със адреса на програмния брояч на текущата програма. Втората инструкция е обратната: "Зареди програмния брояч от стека със следващата инструкция на програмата”. Наред с тази основна дейност, ядрото на много микропроцесори е в състояние да зарежда стека с данните на адресите (dir) от вътрешното регистрово пространство. В този случай са в сила универсални инструкции от типа PUSH dir и POP dir, примерно PUSH АСС; POP ACC. В редица случаи стекът може да се използува като адрес при неявно адресиране. Адресиранията при RISC микропроцесорите са ограничени обикновено до пряко, косвено и относително.