lc3 - LC-3 Print string from user input -


I am working on an assignment and IM is currently trapped. This is part of the question:

Actually accepts 7 characters and resonates them in the console. After 7 characters after 7 lines without waiting for the return to proceed.

Therefore Iive created a loop which is 7 times holes, the input and display on the screen and stores the characters (I think) too. But I'm unable to print the strings saved on the next line.

This is my current code:
  L-E-R2, memory spaces; Strawing Storage LD R1 allocates R2 to memory for Apollops; Loop position (Loops 7 times) loop GETC PUTC STR R0, R2, # 0; R -> (Stored in Memory Address R2 + 0) Add to RD2, R2, # 1; Increases memory pointer R1, R1, # -1; Curved loop brows loop apolup 7 Memory Spaces Blockow 100;    

The empty space to store can only see the characters that I type .. I print the letter as 1 string on the next line Want to

So far you have taken characters and created a string. Now you need to print the string. You do this by supplying R0 with the initial address of this string and calling the PUTS trap. Note that the last character of the string must be taped. Then, after the loop:

  LER R, Memory space PUTS    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -