[fpc-devel]Support for 16-bit assembler ?

Michael Van Canneyt michael.vancanneyt at wisa.be
Tue Dec 5 09:05:37 CET 2000


On Tue, 5 Dec 2000, Davor Dundovic wrote:

> At 02:36 04. 12. 00 +0100, you wrote:
> >It's ok that the program crashes ... :-)
> 
> 
> ;-))
> 
> 
> >that should work
> >
> >uses go32v2;
> >
> >var p:^byte;
> >
> >begin
> >   set_segment_limit(get_ds,$ffffffff);
> >
> >p:=pointer(get_linear_addr($f0000000,1)-get_segment_base_address(get_ds));
> >   writeln(p^);
> >end.
> 
> 
> 
> Very complicated. :-((   I have over 3 MB of Turbo pascal code, some of it 
> written in BASM, which I would like to port to FP. It's not going to be an 
> easy task.
> 
> I use absolute addresses mostly for fast writing characters to video 
> memory. How do I do that in FP ?  Is there a unit that I could use ?

Yes, the video unit.

It's not yet documented, though.

But the IDE uses it so it performs well..

Michael.





More information about the fpc-devel mailing list