View Single Post
  #4 (permalink)  
Old 10-30-2007, 12:14 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,392
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

I would do something like the following:
Create a map between instruction numbers and instructions.
Load the instructions into the map.
Create another map between "memory" locations and text representations of their values.
Have a variable to store the current instruction.
Have an instruction processor based on what counts as a valid statement.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Reply With Quote