how to overwrite in the memory of lc3 -


i writing program in assembly lc3 , although know how read letter stored in memory don't know how overwrite letter one. don't want using .stringz because "0" added after letter , lose word. see reading word, letter letter , want replace letters, letter letter.

thank ;)

the best command use str command:

lea r2, string str r3, r2, #0      ; stores value of r3                     ; memory stored r2,                      ; offset of #0  ; can create loop cycles through many char ; store  string  .blkw 10 

str best storing characters of string because can increment value stored in r2 store each char 1 after another.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -