RosettaCodeData/Task/Copy-a-string/Computer-zero-Assembly/copy-a-string.computer

29 lines
383 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
ldsrc: LDA src
stdest: STA dest
BRZ done ; 0-terminated
LDA ldsrc
ADD one
STA ldsrc
LDA stdest
ADD one
STA stdest
JMP ldsrc
done: STP
one: 1
src: 82 ; ASCII
111
115
101
116
116
97
0
dest: