首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

[求助]关于PRM文件的问题

[求助]关于PRM文件的问题

NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */

SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
      ROM                    =  READ_ONLY    0xDE00 TO 0xFDFF;
      Z_RAM                  =  READ_WRITE   0x0080 TO 0x00FF;
      RAM                    =  READ_WRITE   0x0100 TO 0x017F;
END

PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
      DEFAULT_RAM                       INTO  RAM;
      _DATA_ZEROPAGE, MY_ZEROPAGE       INTO  Z_RAM;
      DEFAULT_ROM, ROM_VAR, STRINGS     INTO  ROM;
      MYRAM                             INTO  RAM;

END

STACKSIZE 0x30

//VECTOR 0 _Startup /* Reset vector: this is the default entry point for a C/C++ application. */
VECTOR 0 Entry  /* Reset vector: this is the default entry point for an Assembly application. */
INIT Entry      /* For assembly applications: that this is as well the initialization entry point */
这个是我的PRM文件,现在我在MYRAM中定义了一个常量如下:
MYRAM: SECTION
NumTable            FCB      $3f,$06,$5b,$4f,$66,$6d,$7d,$07,$7f,$6f,$00
但是在我的调试界面中的memory窗口中的相应位置并没有发现这些数据,这是怎么回事?
但是,我在程序中用到了。
    AND     #$0f
    CLRH
    TAX
    LDA     NumTable,X
我已经定义过变量了,但是不行啊!
如何上传文件?
版主,我已经发过来了。
我重新发了一下
在硬件仿真时,是不是应该把NUMTABLE放入ROM中,而不是RAM中呢?
返回列表