Function: Writes back the copy of Wheels' expansion RAM's 'BAM' to its original buffer.
Pass: Nothing.
Uses: Expansion RAM's BAM homespace at $5025-44 and workspace at $5045-64. RAM BAM's checksum at $5024.
Return: .Y = $FF
Destroyed: .A & .Y
Synopsis: First of all, it copies 32 bytes from $5045-64 to $5025-44. I assume that the 32-byte buffer at $5045 contains a copy of the Wheels' expansion RAM BAM and this copy is written back to the original 32-byte buffer at $5025-44. Essentially the opposite of the GetRAMBam routine. An application can ensure that whatever changes are made to this copy of the Wheels' expansion RAM BAM are confirmed and written back to its original buffer.
Secondly, the routine creates a checksum byte value (stored at $5024), computing the entire memory range from $5025-$5105. This entire memory range is swapped in/out along with the entire Group 0 module from Wheels' expansion RAM.
See Also: GetRAMBam.