I'm trying to reserve space for my kernel, so that kernel would be exactly 128 kB long. But the last 30 kB's of the total 128 kB kernel size must be reserved for "external programs linkage" - sssh, its a secret
![Razz :P](./images/smilies/icon_razz.gif)
Code: Select all
include 'system\blahblah'
...
include 'blah\blahblah'
...some small code here...
times (100352-($-$$)) db 0 ;grew into 98 kBs
TheSecret:
rb 30720 ;the reserved 30 kBs
flat assembler version 1.64
KRNL386.ASM [349]:
times (100352-($-$$)) db 0
error: invalid value.
But if I move that "times" code along with the "TheSecret" label + "rb 30720" instruction above the "include" section, it works
![Shocked :shock:](./images/smilies/icon_eek.gif)
I saw this limitation in real mode, when kernel was too long in real mode (addressing above 0xFFFF), it freezed.
What should I do?
Thank you for your answer.
Regards
inflater