.JAMESON LDY #94 ; We want to copy 94 bytes from the default commander ; at NA2% to the buffer at currentSlot, so set a byte ; counter in Y .jame1 LDA NA2%,Y ; Copy the Y-th byte of NA2% to the Y-th byte of STA currentSlot,Y ; currentSlot DEY ; Decrement the byte counter BPL jame1 ; Loop back until we have copied all 94 bytes RTS ; Return from the subroutineName: JAMESON [Show more] Type: Subroutine Category: Save and load Summary: Copy the default "JAMESON" commander to the buffer at currentSlotContext: See this subroutine in context in the source code References: This subroutine is called as follows: * JAMESON_b6 calls JAMESON * ResetCommander calls JAMESON
[X]
Variable NA2% (category: Save and load)
The data block for the default commander
[X]
Variable currentSlot in workspace Cartridge WRAM
The save slot for the currently selected commander file
[X]
Label jame1 is local to this routine