Skip to navigation


Loader: SetFilename

[Apple II version, Loader]

Name: SetFilename [Show more] Type: Subroutine Category: Loader Summary: Set the filename in comnam to ELB1
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * Elite loader calls SetFilename
.SetFilename LDY #0 ; Set Y = 0 to use as a character counter .name1 LDA filename,Y ; Copy the Y-th character of filename to the Y-th STA comnam,Y ; character of comnam INY ; Increment the character counter CPY #4 ; Loop back until we have copied all four characters of BNE name1 ; filename to comnam RTS ; Return from the subroutine