Array: Difference between revisions

Content added Content deleted
mNo edit summary
Line 79: Line 79:
ld de,userRam ;load the address of work RAM into de
ld de,userRam ;load the address of work RAM into de
ld bc,myArrayEnd-myArray ;assembler directive that auto-calculates the array size using labels placed at the beginning and end.
ld bc,myArrayEnd-myArray ;assembler directive that auto-calculates the array size using labels placed at the beginning and end.
ldir ;copy the entire contents of the array to work RAM
ldir ;copy the entire contents of the array to work RAM</lang>