Table of Contents Previous topic Next topic
CROSS ASSEMBLER->Memory Bank Switching->Using the Section Directive
Code and data sections are made bankable by specifying the BANK relocation type and a bank number in the SECTION directive.
For example:
SECTION MYCODE,C,BANK,1
NOP
NOP
This creates a bankable code section numbered bank 1.
SECTION MYDATA,D,BANK,1
DEFS 10
This creates a bankable data section numbered bank 1.