mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 03:32:31 +02:00
+ very simple implementation of do_write for i8086-msdos. 'Hello World' now works!!!
git-svn-id: branches/i8086@23992 -
This commit is contained in:
parent
f24f119822
commit
e3ce68612c
@ -34,6 +34,15 @@ end;
|
||||
|
||||
function do_write(h:thandle;addr:pointer;len : longint) : longint;
|
||||
begin
|
||||
{ TODO: add error checking }
|
||||
asm
|
||||
mov ah, 40h
|
||||
mov bx, h
|
||||
mov cx, len
|
||||
mov dx, addr
|
||||
int 21h
|
||||
end ['ax','bx','cx','dx'];
|
||||
do_write := len;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user