Skip to navigation


Save and load: rsect

[Apple II version]

Name: rsect [Show more] Type: Subroutine Category: Save and load Summary: Read a specific sector from disk into the buffer
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * gettsl calls rsect * rentry calls rsect * rfile calls rsect

Arguments: track The track number sector The sector number
Returns: buffer Contains the sector
.rsect CLC ; Clear the C flag to denote that this is a read ; operation (this value will be read throughout the ; RWTS code that follows) BCC wsect2 ; Jump to wsect2 to read the specified sector