📄 readme.txt
字号:
8051 von Neumann Memory Example Program
The following example program shows how you can build an application for a target with CODE, XDATA, and von Neumann memory.
The 8051 is a Harvard architecture. CODE memory and DATA memory are physically separate memory areas. There is no way to write to the CODE memory. You can, of course, AND the /PSEN and /RD lines of the 8051 and connect the output to the OE of a RAM. The RAM is then mapped into the CODE and DATA space of the 8051. You can write program code into the RAM and execute it.
This example uses the following memory map:
CODE: 0x0000-0xDFFF (ROM)
CODE: 0xE000-0xFFFF ('von Neumann' RAM)
XDATA: 0x0000-0xDFFF (RAM)
XDATA: 0xE000-0xFFFF ('von Neumann' RAM)
The program uses the XBYTE macro to write an LJMP 0xE000 instruction at address 0xE000. Then, the program calls the function at address 0xE000. This function never returns, of course.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -