Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    You forgot to ask a question. Commented Jun 16, 2019 at 2:05
  • Here's the thing about bugs. If you don't know what they are, how do you know what is the relevant code? Heck, what is the relevant problem? Commented Jun 16, 2019 at 2:05
  • Side note: you probably don't need any dynamic allocations, and if you do, avoid new. Use a smart pointer. Commented Jun 16, 2019 at 2:09
  • lol @JohnZwinck. Sorry have been working on simulator whole night :) Updated it now. Commented Jun 16, 2019 at 2:10
  • @user4581301, I updated the question. I need to access read_word() from execute (). Commented Jun 16, 2019 at 2:11