This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change value of ?B_NBANKS

I want to change the ?B_NBANKS from 8 to 16, but i got this error A80: BANK SWITCH CODE IS BIGGER THAN 256 BYTES.
How to solve this problem?

Akram

Parents
  • Early versions of the L51_BANK file did not support custom bank-switch code that was larger than 256 bytes.

    Later versions DO support that. The latest version of the tools provides the following information in the L51_BANK file:

    ; 2. If the bank switch macros and the additional control code generate more  *
    ;    than 256 bytes, you need to set the LONG_MACRO flag below.  The error    *
    ;    message "BANK SWITCH CODE BIGGER THAN 256 BYTES, SET LONG_MACRO TO 1"    *
    ;    is generated in case that this is required.                              *
    ;                                                                             *
    LONG_MACRO      EQU  0    ; 0 default, for normal macros and up to 8 banks    *
    ;                         ; 1 big macro code or many banks                    *
    

    You should download a newer version of the tools--V6.02 is about 2 years old.

    Jon

Reply
  • Early versions of the L51_BANK file did not support custom bank-switch code that was larger than 256 bytes.

    Later versions DO support that. The latest version of the tools provides the following information in the L51_BANK file:

    ; 2. If the bank switch macros and the additional control code generate more  *
    ;    than 256 bytes, you need to set the LONG_MACRO flag below.  The error    *
    ;    message "BANK SWITCH CODE BIGGER THAN 256 BYTES, SET LONG_MACRO TO 1"    *
    ;    is generated in case that this is required.                              *
    ;                                                                             *
    LONG_MACRO      EQU  0    ; 0 default, for normal macros and up to 8 banks    *
    ;                         ; 1 big macro code or many banks                    *
    

    You should download a newer version of the tools--V6.02 is about 2 years old.

    Jon

Children