I basically represented every command as sub and had to fiddle out how to represent addressing modes as arguments.
Like sub LDA {...}
You'd need to transform the ASM syntax a little to make it valid Perl code.
Can't tell much about x86, always hated addressing there after learning 68000.
Not sure I understand what your goals are, but I hope this helps giving you an idea.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: Interpreting Assembly
by LanX
in thread Interpreting Assembly
by misc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |