I learnt from assembly language some addressing mode. But I find out that for different segment, we have different addressing mode, for example, you cannot use PC-relative addressing for data. Why is that?
Why code and data have different addressing mode?
117 Views Asked by JiangFeng At
1
There are 1 best solutions below
Related Questions in MEMORY-ADDRESS
- Is there exception to rule that if address can be find out using & it's lvalue?
- Open Watcom Inline assembly SEG and OFFSET operators
- Contiki: Address of a thread having unrecognized value
- `&` in function parameter list
- std::deque memory-address as array
- Print addresses of all local variables in C
- MIPS: accessing memory addresses with big/small endian
- Writing GDB scripts to collect data
- Looking into dynamic variables created using pointers?
- to declare a pointer variable, does memory assign to the pointer's name or pointer's address?
- how to read content of memory address 0xfeafe000 in c?
- How can I get the virtual address of a shared library by the use of computer architecture state?
- Gigabyte v/s Gibibyte & Gigabit v/s Gibibit
- What's the best way to get address difference between a class variable and the starting address of a class object?
- Extern variable seems to have two addresses?
Related Questions in ADDRESSING-MODE
- Determining when NASM can infer the size of the mov operation
- Sum of a word array not storing in another word array
- Addressing Modes in Assembly Language (IA-32 NASM)
- Why code and data have different addressing mode?
- Direct addressing without segment in x86?
- Do terms like direct/indirect addressing mode actual exists in the Intel x86 manuals
- What does a comma in a parenthesis mean in the AT&T syntax for x86 assembly?
- What is the "-4" for in assembler: movl $1, -4(%rbp)
- MASM: How to resolve Immediate mode Illegal in 8086 programming?
- x86-64 accessing element of array
- Print (%r12,%rbx,1) in GDB
- Assembly stack index address
- ARM assembly: auto-increment register on store
- x86 lea instruction
- Assembler jump in Protected Mode with GDT
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For an operating system with properly implemented integrity, code should not be allowed to manipulate its own memory space other than some high level functionality such as loading additional modules, otherwise it would not be possible to debug a program that is changing itself to something else at run-time. A program's data space; however, can be manipulated as required by the program. It is likely best practice for an operating system implementation to clearly separate code space and data space to avoid problems with accidentally manipulating the code space.