我想添加两个存储的值 x 和 y 但我只想使用 1 寻址模式。
以下是示例:
lda x
sta x
// store the final result in x
lda y
sta y
// store the final result in y
//now I want to add x and y like x+y. Is the following pattern correct? whats wrong?
lda x
lda y
add x
sta x
Run Code Online (Sandbox Code Playgroud)