I'm having trouble coming up with the concept for parsing an LC3 assembly string. I want the user to input a string: "4 + 3 = " or "22 * 33 = ", and have the program run it like a calculator. I need a space in between each operand/operator, and my understanding is that I use the time between two GETC functions allows me to manipulate the data I have, but I'm just lost on the concept on what needs to be done.

I had to google what this LC3 is with https://www.google.com/search?&q=parse+an+LC3+assembly+string and this appears to be homework or some class assignment. As such you get to show your work but few may respond with code to do what you ask as it appears to be something only in academia.

That aside, with prior discussions you can read a few for ideas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.