We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
It works fine for me. What version of the tools are you using? Did you make any other changes in the L51_BANK.A51 file? Jon
I have made some changed on L51_bank file. I used ?B_MODE equ 4, so i need to add some code for switch the bank. I have try to minimize the switch bank code that i added. how to solve this problem? my C51 compiler is 6.02, A51 - 6.02, BL51 - 4.02 and OH51 - 2.5 Thanks akram
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 *
Thank you for your information Mr. Jon. What version i should download? the latest? right now i have use version 6.20 is it OK? Best regards, Akram
What version i should download I'm not sure exactly when the LONG macro was added. I'd download the latest V7 update and use it. Jon
Thank you again Mr. Jon, for your help. bye, akram