View Single Post
Old 31 October 2022, 08:42   #8
earok
Registered User
 
Join Date: Dec 2013
Location: Auckland
Posts: 3,543
New update: Added a "Name Table" copy function that copies an arbitrary rectangle of tiles.

What was previously coded as:

Code:
;Load each row	
VDPDestination.l = $c000
NameTableSource.l = ?NameTable
for row = 0 to 31
	MD_CopyTo_VDP NameTableSource,40,VDPDestination,2
	VDPDestination + 64*2
	NameTableSource + 40*2
next
Is now

Code:
;Source Address,Dest Address,XSize,YSize,Source Modulo,Dest Modulo
MD_CopyTo_NameTable ?NameTable,$c000,40,32,40,64

Basically it's one line that you could use for copy an entire row, column, or rectangle of tiles.
earok is offline  
 
Page generated in 0.04236 seconds with 11 queries