1
2
3
            /* Do not cross a bank boundary in a single transfer loop */
            if((transfer + bank_start) >= BLOCKS_PER_BANK)
                transfer = BLOCKS_PER_BANK - bank_start;