-
|
I'm new to assembly development and have found the classic MS-DOS DEBUG program to be quite instructive. Do you know if a similar program has been compiled for ELKS? I noticed the elkscmd/debug directory in the source tree but didn't see anything in there that looked to an interactive interpreter which could examine memory, set registers etc. I'm not concerned with gdb level of debugging, just looking to poke around memory, run a few instructions, and in general see what's going on. Thanks for any pointers, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Hello @cpiker, Thanks for your interest in ELKS. We don't have a DEBUG-like program for interactively poking around memory and assembling instructions, but that would be nice to have. I've looked at the DOS DEBUG source and unfortunately it's written in MASM (Microsoft ASM) itself and thus not an easy port to ELKS. If we could find something like DEBUG written in C, that would be a good start. We do have a number of tools that are still very useful for looking around memory and disassembling it: There is also the -S option to produce ASM output from the Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Mostly I'm looking to probe ports and see what I get in order to add support for various old machines I have around. Nice to do interactively if I can. I suppose it's not hard to make a thin wrapper on inb(), outb(), you've provided all the tools to do so easily. On a side note, in what way is a MASM dialect program incompatible with ELKS? Is it just that it doesn't fit well with the existing toolchain or are there much deeper problems because output objects can't be coerced into a.out executable? Could the project JWasm be of some assistance? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the long thoughful answers :-) I'm learning a bit of ELKS history. So consulting the public MS-DOS archive it turns out that debug.com's size on disk is about ~11K and the sources are around 6K lines (with comments and spaces). In the source code I spotted a little over 20 All in all that's a bit more then I want to deal with porting. Better to start with a new program using the current tool-chain that would let me examine memory and perform interactive port I/O, I don't actually need a debugger, just a small real-mode hardware exploration tool. |
Beta Was this translation helpful? Give feedback.
-
|
FYI ELKS basic can do inpb, outb. https://github.com/ghaerr/elks/blob/master/elkscmd/basic/README.md |
Beta Was this translation helpful? Give feedback.
FYI
ELKS basic can do inpb, outb.
I sometimes use it for debug.
https://github.com/ghaerr/elks/blob/master/elkscmd/basic/README.md