.CopyTrackSector LDY #0 ; Set Y = 0 to use as a byte counter .cpts1 LDA buffer,Y ; Copy the Y-th byte of buffer to the Y-th byte of STA trackSector,Y ; trackSector INY ; Increment the byte counter BNE cpts1 ; Loop back until we have copied a whole page of data RTS ; Return from the subroutineName: CopyTrackSector [Show more] Type: Subroutine Category: Loader Summary: Copy the track/sector list from the disk buffer to trackSectorContext: See this subroutine in context in the source code References: This subroutine is called as follows: * LoadFile calls CopyTrackSector
[X]
Variable buffer in workspace Disk operations workspace 2
A 256-byte sector buffer, where we can load sectors from the disk, such as the track/sector list, or the commander file contents
[X]
Label cpts1 is local to this routine
[X]
Variable trackSector (category: Loader)
The track/sector list for the file we are loading