yesterday i was thinking about a way for interpretting assembly code of ARM
(and maybe other architectures) while defining a grammar for its assembly.

This way it will be possible to embed parrot on a debugger and let't interact
between the code and the debugger implementing in this way a pseudo-assembly-
language for multiple architectures.

The only thing that will be needed is the hardware interaction that can be
extended with libraries and so, but atm i'm just interested on interpretting
a sequence of opcodes and emulate them. Registers can be directly mapped into
parrot registers and atm i'm only thinking on supporting text-based assembly,
binary one can be added later.

Here my questions: 

I think it would be rather simple to do it, but i don't have the skills yet
for doing it. What's the 'easiest' language to start working on as a template?

It is possible to define a binary grammar or i should write a parser for it
in pure parrot and passing this code to a function that interprets a one
line of assembly code.

Should be better to implement everything in parrot instead of using a grammar?

PD: I was trying to implement some hooks on the exception layer, but I saw
that the interface it's not yet defined and I'll wait for it to continue this
work.

Thanks!

  --pancake

Reply via email to