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.
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.