Recent

Author Topic: Problems compiling with 8086 fpc  (Read 293 times)

toncho11

  • New member
  • *
  • Posts: 6
Problems compiling with 8086 fpc
« on: October 04, 2020, 11:19:59 pm »
I compile with: ppcross8086.exe ibmlogo.pas

I have two problems:

- Error: Identifier not found "SetUseACP"
- Error: Code segment "_TEXT" too large (exceeds 64k by 83965 bytes)

Code is:

Code: Pascal  [Select][+][-]
  1. uses
  2.  
  3.   Crt,
  4.   classes, sysutils, strutils;
  5.  
  6. var
  7.    Line1 : string;
  8.    c : string;
  9.  
  10. Begin
  11.  
  12. SetUseACP(False);
  13.  
  14. TextColor(LightBlue);
  15.  
  16. c:=chr(219);
  17.  
  18. Line1:='   77777777777777  7777777777777777777     777777777777         777777777777';
  19.  
  20. Line1 := StringReplace(Line1, '7', c, [ rfReplaceAll ]);
  21.  
  22. ClrScr;
  23. writeln(Line1);
  24.  
  25. readln();
  26. end.
« Last Edit: October 04, 2020, 11:22:15 pm by toncho11 »

Bart

  • Hero Member
  • *****
  • Posts: 4030
    • Bart en Mariska's Webstek
Re: Problems compiling with 8086 fpc
« Reply #1 on: October 04, 2020, 11:33:53 pm »
I answered the first question in your prevous thread about StringReplace.

Bart

toncho11

  • New member
  • *
  • Posts: 6
Re: Problems compiling with 8086 fpc
« Reply #2 on: October 05, 2020, 09:14:36 am »
I got it.

If you have "classes" unit in your code it will never compile with the 8086 fpc.

PascalDragon

  • Hero Member
  • *****
  • Posts: 2405
  • Compiler Developer
Re: Problems compiling with 8086 fpc
« Reply #3 on: October 05, 2020, 09:21:17 am »
To use the Classes unit you need to use another memory model. The default is Small.

 

TinyPortal © 2005-2018