Is there a DOS memory documentation available? (Users)
> I've never messed with bootloaders, but what are NSYM & NDEB? I've never
> heard of those before.
They are simply what I chose to call the headers that bootable lDebug creates for itself. As depicted in the linked sources, NDEB has four letters as a signature, then two digits for a version number (always "00" so far), a checksum for the image identification, and a size. (The size must be given as an amount of paragraphs; the comments could be clearer on that.)
align 16, db 0
; Image identification
; First dword: signature
; Next word: version, two ASCII digits
; Next word: checksum. adding up all words of the paragraph gives zero
; Next word: size of image (including this paragraph)
; Three words reserved, zero.
imageident:
db "NDEB00"
.check: dw 0
.size: dw 0
times 3 dw 0
While NDEB covers the allocation of the bootloaded debugger instance / 'process' as such (not really a DOS application process of course), NSYM is used for an allocation of symbol tables when symbolic bootable lDebug is running. Other than the differing name, the definition of the NSYM block is similar to NDEB's.
The NSYM allocation will always be done using the int 12h / word 413h memory size mechanism as well. A single bootloaded debugger instance will only allocate exactly one NDEB and at most one NSYM. But the debugger can load another instance of the debugger, so there can be multiple NDEB for instance. This can be useful to debug the debugger itself, in which the inner debugger should be debuggable or conditionally debuggable.
The naming choice of NDEB stems from the internal, pre-release-0 times of when lDebug used to be called NDebug, inspired by the "Netwide Assembler". Unfortunately "NDEBUG" seems to be taken for a C-language-style preprocessor macro, which I seem to recall is one of the reasons I changed the name.
---
l
Complete thread:
- Is there a DOS memory documentation available? - fritz.mueller, 07.01.2024, 21:20 (Users)
- Is there a DOS memory documentation available? - SuperIlu, 08.01.2024, 00:35
- Is there a DOS memory documentation available? - mceric, 08.01.2024, 00:58
- Is there a DOS memory documentation available? - Rugxulo, 08.01.2024, 09:46
- Is there a DOS memory documentation available? - marcov, 08.01.2024, 22:40
- Is there a DOS memory documentation available? - tauro, 18.01.2024, 06:22
- Is there a DOS memory documentation available? - mceric, 18.01.2024, 10:47
- Is there a DOS memory documentation available? - Rugxulo, 19.01.2024, 01:25
- Is there a DOS memory documentation available? - mceric, 19.01.2024, 10:42
- Is there a DOS memory documentation available? - Japheth, 19.01.2024, 11:57
- Is there a DOS memory documentation available? - ecm, 19.01.2024, 16:42
- Is there a DOS memory documentation available? - mceric, 19.01.2024, 18:02
- Is there a DOS memory documentation available? - mceric, 19.01.2024, 10:42
- Is there a DOS memory documentation available? - Rugxulo, 19.01.2024, 01:25
- Is there a DOS memory documentation available? - mceric, 18.01.2024, 10:47
- Is there a DOS memory documentation available? - Rugxulo, 08.01.2024, 09:46
- Is there a DOS memory documentation available? - bretjohn, 08.01.2024, 18:17
- Is there a DOS memory documentation available? - fritz.mueller, 08.01.2024, 20:30
- Is there a DOS memory documentation available? - tom, 08.01.2024, 21:20
- Is there a DOS memory documentation available? - marcov, 08.01.2024, 23:22
- Is there a DOS memory documentation available? - ecm, 09.01.2024, 00:00
- Is there a DOS memory documentation available? - bretjohn, 09.01.2024, 01:03
- Is there a DOS memory documentation available? - ecm, 09.01.2024, 09:38
- Is there a DOS memory documentation available? - bretjohn, 09.01.2024, 17:35
- Is there a DOS memory documentation available? - Oso2k, 09.01.2024, 20:09
- Is there a DOS memory documentation available? - fritz.mueller, 09.01.2024, 22:21
- Is there a DOS memory documentation available? - Zyzzle, 10.01.2024, 04:47
- Is there a DOS memory documentation available? - mceric, 10.01.2024, 11:56
- Is there a DOS memory documentation available? - ecm, 10.01.2024, 21:14
- Is there a DOS memory documentation available? - bretjohn, 12.01.2024, 04:42
- Is there a DOS memory documentation available? - ecm, 12.01.2024, 18:00
- Is there a DOS memory documentation available? - bretjohn, 12.01.2024, 04:42
- Is there a DOS memory documentation available? - ecm, 10.01.2024, 21:14
- Is there a DOS memory documentation available? - mceric, 10.01.2024, 11:56
- Is there a DOS memory documentation available? - Zyzzle, 10.01.2024, 04:47
- Is there a DOS memory documentation available? - fritz.mueller, 09.01.2024, 22:21
- Is there a DOS memory documentation available? - Oso2k, 09.01.2024, 20:09
- Is there a DOS memory documentation available? - bretjohn, 09.01.2024, 17:35
- Is there a DOS memory documentation available? - ecm, 09.01.2024, 09:38
- Is there a DOS memory documentation available? - marcov, 09.01.2024, 09:42
- Is there a DOS memory documentation available? - bretjohn, 09.01.2024, 01:03
- Is there a DOS memory documentation available? - ecm, 09.01.2024, 00:00
- Is there a DOS memory documentation available? - fritz.mueller, 08.01.2024, 20:30
- Is there a DOS memory documentation available? - boeckmann, 19.01.2024, 10:09