<br><br>
<div><span class="gmail_quote">On 1/11/07, <b class="gmail_sendername">Daniël Mantione</b> <<a href="mailto:daniel.mantione@freepascal.org">daniel.mantione@freepascal.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>This the situation:<br>* The Dos port is without a maintainer.<br>* We are still providing it because many people have need for a Dos
<br>version<br>* Bugs in the Dos port are not being fixed so it is of poor quality.</blockquote>
<div> </div>
<div>well, if so i'm a volunteer to mantain the DOS port...</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Yes, it is a protected mode app, using the go32v2 extender. You need a<br>dpmi service on your system. Normally on real Dos you use cwsdpmi, but any
<br>DPMI will do. However, WinNT/2000/XP is troublesome because their DPMI support<br>is buggy.</blockquote>
<div> </div>
<div>i was not trying to use it in win nt/xp/2000...its freedos inside a MS Virtual PC....since i don't have a pentium 100 or a 486 i cannot test this on a real machine...</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>go32v2 is the extender, cwsdpmi the dpmi host that comes with it. So you<br>have used go32v2 before, and the procedure is the same with FPC programs.
</blockquote>
<div> </div>
<div>ok...when exactly the go32v2 gets linked with my code? is this done automatically by the compiler??? </div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">The code you should contains 16 bit assembler. FPC is a 32 bit<br>application. So the assembler needs to be rewritten in 32-bit assembler.
<br>Other than that, FPC is compatible with TP. So, just put the compiler in<br>TP mode an compile.</blockquote>
<div> </div>
<div>thanks</div>
<div> </div>
<div>can this be compiled directly in a 32bit assembler like nasm (or directly assembled by the fpc internal assembler using directives to use asm inside pascal source)????</div>
<div> </div>
<div>i was also looking for a way to rewrite this in clean Pascal language...is this possible in pmode using fpc (note the code contains an interrupt call for a low level operation)???</div>
<div> </div>
<div>here is the small assembly source that generates the code i posted:</div>
<div> </div>
<div>------------------code start-----------------------------</div>
<p> {diskwrite}<br> asm<br> push bp<br> mov bp, sp<br> add bp, 8<br> push ds<br> mov bx, [bp]<br> mov ax, [bp+2]
<br> mov ds, ax<br> mov cx, [bp+4]<br> mov dx, [bp+6]<br> mov al, [bp+8]<br> push bp<br> int 26h<br> jnc ok
<br> popf<br> pop bp<br> mov [bp+10], ax<br> jmp cont<br> ok: popf<br> pop bp<br> xor ax, ax<br> mov [bp+10], ax
<br> cont: pop ds<br> pop bp<br> mov ax, 13h<br> int 21h<br> ret</p>
<div>------------------code end-----------------------------</div>
<p> </p><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Local labels need to start with a @. Please read the manuals, this is well<br>documented.</blockquote>
<div> </div>
<div>sorry...my bad about this...reading the manuals right now, while writing this</div>
<div> </div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Daniël</blockquote>
<div> </div>
<div>Daniel</div></div>