Click to See Complete Forum and Search --> : Is there a linux assembler interpreter?


duncanbojangles
10-10-2004, 09:59 PM
Hello again, folks at JustLinux. I'm looking for an assembler interpreter similar to "debug" on DOS. I've been trying to learn assembly for linux but it's really hard to find good information on assembly in linux, not to mention having to deal with differences in assemblers (fasm, nasm, gas). So I was wondering if there's any sort of interpreter out there that can do simple stuff.

It doesn't have to be fancy. I just want the ability write some code, execute it, maybe single step it, and see the contents of the registers and memory. I've been playing with the Ersatz PDP-11 simulator and it had an assembler like what I'm talking about, but the dang program hogs the CPU.

I was trying to think how this could be done in C/C++ 'cause I could write it if I needed to. I don't know how to do it yet, but with further googling, I may. If someone has information on placing code in memory and executing it, that would help. I know you have to make the memory the code is located in executable, and converting assembly into machine code would be difficult, but if it doesn't exist, I'll try to make my own.

duncanbojangles
10-11-2004, 04:18 AM
I hate to reply to myself, but I've found something similar to what I'm looking for. It is the Assembly Language Debugger (http://ald.sourceforge.net/) and is pretty darn nifty. It allows you to load and run programs, disassemble programs, examine memory, examine registers, single step, change memory, and a host of other nifty features.

So I'll still be on the lookout, but for the time being, this will do nicely.

phlipant
10-11-2004, 11:40 AM
If I understand you`re question, I think you are looking for gdb.

duncanbojangles
10-12-2004, 01:53 AM
Close, but not quite. I'll read through GDB's documentation a little more thoroughly, though, if you think it would be helpful. The program I listed above is really great, so I'm not really looking anymore for another program. Thanks for the suggestion, though.