this actually works:
This code snippet copies a bunch of bytes to a different location in codespace.
simple, when you know...
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@
I var byte ' Loop count
D var word ' Data
A var word ' Address
Y var word
x var byte
Y=$0000 'Location to copy data from
A=$04F0 ' Location to copy data to
main
For x = 0 to 9
Lcdout $fe,1,"Copying Data ! "
For I = 0 To 14 ' Loop 14 times
Readcode Y,D ' Read Data and copy it to new location
Writecode A,D ' Send value in D to code space location A
A = A + 1 ' Increment Address
y = Y + 1
pause 10
Next I
Pause 1
Next x
goto showme
showme:
A= $04F0
For I = 0 To 72 ' Loop 72 times
Readcode A,D ' Get data in location A
Lcdout $fe,1,"Data:",hex A,":",hex D ' Display the location and data
Pause 1000
A = A + 1 ' Increment Address
Next
End
goto main
Bookmarks