A51中怎样写切bank的程序
hi,我现在用keilc来作为编译工具,用汇编来写程序, 程序超过64K大小,我现在采用多BANK的
方式, 采用3个文件, 分别是 main.asm, bank2.asm, bank3.asm, 其中 0000 ~ 7FFFH作为公用的地址, 8000 ~ FFFFH作为BANK地址,我在编译完成后,链接的时候出现问题,说地址重合,出错如下所示,求教?
链接命令:BL51.EXE COMMON {.\L51_BANK.obj}, COMMON {main.obj}, BANK2 {bank2.obj}, BANK3 {bank3.obj
}, COMMON {STARTUP.obj} TO test BANKAREA (0X8000, 0XFFFF)
出错信息
:*** WARNING L19: COMMON CODE SEGMENTS LOCATED TO BANKED AREA
*** WARNING L5: CODE SPACE MEMORY OVERLAP
FROM: 0000H
TO: 0002H
*** WARNING L5: CODE SPACE MEMORY OVERLAP
FROM: 0000H
TO: 0002H
*** WARNING L5: CODE SPACE MEMORY OVERLAP
FROM: 0000H
TO: 0002H
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: .\STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: .\STARTUP.obj (?C_STARTUP)
ADDRESS: 8052H