Hello,
I have a basic question about the compiler options
in my PRM file I have the following configuration about the Z_RAM direct access
Z_RAM = READ_WRITE 0x0080 TO 0x00FF;
DEFAULT_RAM, INTO Z_RAM;
etc..
_DATA_ZEROPAGE, /* zero page variables */
MY_ZEROPAGE INTO Z_RAM;
in main.asm
MY_ZEROPAGE: section
abcd: DS.B 1
main: section
LDA abcd ; 3 bytes used in memory (2 bytes for the addresses)
LDA abcd.B ;2 bytes used in memory (1 bytes for the addresses)
How is it possible to configure the compiler to do the difference between a direct address and a long address by itself to optimize the code size ?
解決済! 解決策の投稿を見る。
Hello,
The PRM file, which identifies the addresses of the various section names, is accessed by the linker, but not the assembler. The assembler will normally assume that all variables have 16 bit addresses, by default. Any variables to be specifically located within zero page RAM can be identified with the assembler directive XREFB.
Regards,
Mac
Hello,
The PRM file, which identifies the addresses of the various section names, is accessed by the linker, but not the assembler. The assembler will normally assume that all variables have 16 bit addresses, by default. Any variables to be specifically located within zero page RAM can be identified with the assembler directive XREFB.
Regards,
Mac
ok thanks a lot !
can you please upload your demo project to showcase us your issue? thanks!