Questions tagged [program-counter]

The program counter (PC), commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer, is a processor register that indicates where a computer is in its program sequence.

The program counter (PC), commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer, is a processor register that indicates where a computer is in its program sequence.

105 questions
0
votes
2 answers

Assembly Language: Program Counter size

What determines the size of the Program Counter? So, this is what I know: Memory Address Register (MAR) size is the log2(memory space). Is the PC size the same as the addressability of each memory address or the same as the MAR? For example, if…
0
votes
0 answers

Program Counter value shifted/corrupted. Cortex M4 (STM32)

I have an application (and bootloader) that every couple times power is cycled, will hard fault on bootup (after bootloader) otherwise works just fine. I've done some troubleshooting and investigating with the trace, and to me it looks like the PC…
Nick Fritz
  • 21
  • 3
0
votes
0 answers

Freeze after OracleInternal.Network.ReaderStream.Read

We're a MEMS / MOMS developer company with 25 years of experience and Oracle partnership. Recently, several distinct services under our main product has had hangs. After some analysis we kind of determined the cause around Oracle DB access. The…
0
votes
0 answers

Booting the CPU through JTAG debugger. How to exit from debug state and start from newly added PC address

I would like to use the DAP interface in the cortexm4 processor to download application code into a memory that can be accessed by a JTAG debugger. For now, I wanted to follow the following steps given on the ARM forum: For use cases such as a…
cher
  • 11
  • 1
0
votes
0 answers

How to find range of addresses using MIPS instructions

Suppose that the program counter (PC) is set to 0x2000 0000. What range of addresses can be reached using the MIPS branch if equal (beq instruction? (In other words, what is the set of possible values for the PC after the branch instruction…
eswcs
  • 5
  • 3
0
votes
1 answer

What value does the Program Counter have at the end of a program?

I know that the program counter will always point to the memory location of the next instruction, however at the end of the program, what would be the value of the program counter? Would the value be the same as the last instruction that was run in…
0
votes
2 answers

React Typescript how to add a counter for each item instantiated?

I see some similar questions have been posted, but I am stuck with my issue considering it's a bit different. My question is that how can I add counting (like 1,2) for each list in the same line? ` class AttendeeListPage extends Component
Mengzhu Ou
  • 13
  • 4
0
votes
0 answers

If the register holding the logical Byte address of a program is the PROGRAM COUNTER then what is the register holding the actual physical address?

What is the general name of the register holding the physical address of a Byte of a program after the logical address is translated by the MMU ?
0
votes
1 answer

Difference between rip and eip registers in x86 Assembly

I’m reading a book to learn hacking (it’s called “The art of exploitation” by Jon Erickson) and it starts by writing a C program that prints the “Hello World!” string 10 times, and then analyzing its assembly (intel syntax). In the book the…
0
votes
1 answer

How many bits do instruction sets have in ARM?

When working with ARM, we commonly understand that the data width residing on an address is 8 bits (I hope this assumption is correct). How does the program counter increment? Does the program counter increment by 4 every time? Inferring that the…
CJC
  • 795
  • 8
  • 25
0
votes
2 answers

Move the PC into another register with xtensa (lx6) cores

I'm trying to get the current PC value into an assembly routine written for xtensa (lx6) cores. After digging into the instruction set doc, I cannot see really how to achieve this. It looks as if the PC is not mapped into the 16 AR, and I cannot see…
0
votes
0 answers

Break at address "0xXXXXXXX" with no debug information available, or outside of program code

I am using STM32CUBEIDE with Nucleo_STM32F412ZG usb and when I debug it. It shows message shown below: "Break at address "0x8007d3a" with no debug information available, or outside of program code." I am just trying to blink LED…
Yash Vardhan
  • 67
  • 1
  • 1
  • 5
0
votes
0 answers

y86 instructions set create confusion

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 studied the book Computer Systems: A programmer's…
Encipher
  • 1,370
  • 1
  • 14
  • 31
0
votes
0 answers

Why does popl %eax can used to set address of popl instruction?

The code as following call next next: popl %eax To what value does register %eax get set? Explain why there's no matching ret instruction to this call? What usful purpose does this code fragment serve? The answer from book are the…
David Zhou
  • 21
  • 1
  • 2
0
votes
0 answers

How do I get the results of a fetch cycle in java based on an operating system? I am newbie to java I am looking for some advice

How do i get the fetch cycle working if i have to get the instruction address from memory and assign it to some area of ram? I am just starting to learn the language java any suggestions? I want to get the address from the instruction and add the…