Skip to content

Copy Chunk of Memory

	LDA #$00
	STA $FC
	STA $FE
	LDA #$80 ;copies from $8000
	STA $FF
	LDA #$20 ;copies to $2000
	STA $FD
LOOP 	LDY #0
MOV256	LDA ($FE),Y
	STA ($FC),Y
	INY
	BNE MOV256
	INC $FD
	INC $FF
	LDA $FF
	CMP #$84 ;ending address goes here.. right now it stops at $8400
	BNE LOOP
	RTS