program-counter Questions

0

I am a beginner of computer architecture. I try to learn Y86 architecture. I got this reference for the Y86 architecture. I did not understand the picture Stage computation: Arith/log. ops. I have ...
Polled asked 30/1, 2022 at 22:16

4

Being a beginner and self-learner, I am learning assembly and currently reading the chapter 3 of the book, The C Companion by Allen Hollub. I can't understand the description of Program Counter or...
Carbonization asked 25/8, 2018 at 16:59

2

In the first book I read about C++, it went a little bit into the details of how code is actually executed on a machine (it mentioned the program counter, the call stack, return addresses, and such...
Rancourt asked 27/9, 2020 at 20:12

7

Solved

Can the program counter on Intel CPUs can be read directly (that is without 'tricks') in kernel mode or some other mode?
Lysimeter asked 1/3, 2009 at 15:38

2

Solved

I'm reading the book The RISC-V Reader: An Open Architecture Atlas. The authors, to explain the isolation of an ISA (Instruction Set Architecture) from a particular implementation (i.e., microarchi...

2

Solved

As we always know the procedure of executing task by a microprocessor is just executing binary instructions from memory one by one and there is a program counter which holds the address of the next...
Ogbomosho asked 20/8, 2018 at 9:57

4

Solved

The Wikipedia article about x86 assembly says that "the IP register cannot be accessed by the programmer directly." Directly means with instructions like mov and add, the same way we can ...

1

Solved

Is there any basic difference between instruction pointer and program counter? I believe they both refer to the same thing, the eip/rip register, although with the research i have done so far it is...
Tangential asked 11/11, 2015 at 0:3

3

Solved

I'd like to do backtrace on MIPS. Then, I face one problem: how do I get the current PC register value, since it doesn't belong to 32 normal registers.. Thanks for your suggestion..
Allantois asked 11/3, 2013 at 4:4

0

I'm trying to track the value of the PC of a particular process within the kernel. To do this, I looked at the kernel source and figured out that the pc is being stored inside task_struct->stack...
Marandamarasca asked 25/9, 2014 at 5:5

1

Solved

I want to take a piece of code, copy it into a global array and execute it from there. In other words, I am trying to to copy a bunch of instructions from the code-section into the data-section, a...

2

I'm having trouble understanding how the instruction jal works in the MIPS processor. My two questions are: a) What is the value stored in R31 after "jal": PC+4 or PC+8? b) If it's really PC+8, wha...
Moth asked 3/3, 2012 at 18:57

5

Solved

I have an embedded project using a STM32F103 (ARM Cortex M3), it is getting a occasionally getting hard fault in release mode. As part of recovery, I would like to retrieve the PC value from before...
Pender asked 21/9, 2010 at 20:16

2

Solved

Program counter holds the address of the instruction that should be executed next, while instruction register holds the actual instruction to be executed. wouldn't one of them be enough? And what...
Vinculum asked 1/4, 2013 at 7:34

2

Solved

While reading about Program counter i came to know to that The Program Counter is special in that there is no way to directly modify its value. Is there any indirect way to access/modify the conte...
Italia asked 26/12, 2011 at 11:14

3

Solved

In Visual Studio, when you're debugging with breakpoints you can change which line of code will be next to execute by dragging the execution cursor to another line; this lets you skip IF statements...
Shakta asked 2/12, 2010 at 10:6

2

Solved

I was looking at the assembler output of my code and need help with below instructions. 0x00000fe8: e28fc000 .... ADR r12,{pc}+8 ; 0xff0 0x00000fec: e28cca08 .... ADD r12,r12,#8, 20 ; #0x8000 F...
Uneventful asked 27/8, 2010 at 11:16
1

© 2022 - 2024 — McMap. All rights reserved.