Code: Select all
SSIZE = 128 ; sector size in bytes
NBUF = 8 ; number of buffers desired in RAM
; (SSIZE*NBUF >= 1024 bytes)
BMAG = 1056 ; total buffer magnitude, in bytes
; expressed by SSIZE+4*NBUFBut when I increase the sector site like this:
Code: Select all
SSIZE = 512 ; sector size in bytes
NBUF = 4 ; number of buffers desired in RAM
; (SSIZE*NBUF >= 1024 bytes)
BMAG = 2064 ; total buffer magnitude, in bytes
; expressed by SSIZE+4*NBUF
The definition of B/SCR is :
Code: Select all
;
; B/SCR
; SCREEN 35 LINE 10
; Blocks per screen
;
L992 .BYTE $85,"B/SC",$D2
.WORD L984 ; link to B/BUF
BSCR .WORD DOCON
.WORD 1024/SSIZE ; blocks to make one screenThe reason is that the buffer of my sd card is also 512 bytes.
My SD-Card interface is working with the sector of 128 bytes, but when the sector is 512 bytes the write operations are reduced by a factor 4.