Commit Graph

52159 Commits

Author SHA1 Message Date
nickysn
b571f48735 * fixed the return type of FarAddr(), so that it is assignment compatible to
typed far pointers as well

git-svn-id: trunk@37629 -
2017-11-27 19:42:36 +00:00
nickysn
78e0f6c68b + added an i8086-specific FarAddr() function, similar to Addr(), but always
returns a far pointer, regardless of the current memory model

git-svn-id: trunk@37628 -
2017-11-27 16:41:48 +00:00
florian
7741b495bd - duplicate defintion of TBoundArray removed, resolves #32530
git-svn-id: trunk@37627 -
2017-11-26 21:03:52 +00:00
florian
04738ff2a6 + shlobj: SHGetKnownFolderPath
* correctly search font files on windows, resolves #32495

git-svn-id: trunk@37626 -
2017-11-26 17:37:11 +00:00
florian
a650d346f1 * optimized for speed UpCase/LowerCase for UnicodeChar, based on a patch by AlexeyT, resolves #32638
git-svn-id: trunk@37625 -
2017-11-26 15:28:45 +00:00
florian
46ab35edb3 * apply MovOpMov2Op also to inc and dec
* made core more readable

git-svn-id: trunk@37624 -
2017-11-26 15:28:44 +00:00
florian
8e3d23a23e + patch by Florian Immenroth: MagickSetResolution added
git-svn-id: trunk@37623 -
2017-11-26 15:26:07 +00:00
florian
32f305d2a8 o patch by Ondrej Pokorny: adds a simple box/pixelate interpolation to fcl-image, resolves #32665
git-svn-id: trunk@37622 -
2017-11-26 15:20:41 +00:00
florian
2be94d3c78 * fix building on win64 with FPC_SOFT_FPUX80 defined, resolves #32502
git-svn-id: trunk@37621 -
2017-11-26 15:16:37 +00:00
florian
0c07db3904 * made libcups initialization/finalization more threadsafe
git-svn-id: trunk@37620 -
2017-11-26 09:42:04 +00:00
florian
4b8dcd676c * libcups interface unit included in FPC, resolves #32729
git-svn-id: trunk@37619 -
2017-11-26 09:33:34 +00:00
nickysn
44f04d39a4 + added asm optimized implementations of StrLower() and StrUpper() for i8086
git-svn-id: trunk@37618 -
2017-11-24 16:11:18 +00:00
nickysn
51489f9186 + added test for the StrUpper() and StrLower() functions in the strings unit
git-svn-id: trunk@37617 -
2017-11-24 15:59:20 +00:00
nickysn
5595a74609 + i8086 asm implementation of StrEnd()
git-svn-id: trunk@37616 -
2017-11-23 17:06:06 +00:00
nickysn
39dc58de09 - removed one asm instruction from i386's StrEnd() implementation
git-svn-id: trunk@37615 -
2017-11-23 16:43:51 +00:00
nickysn
3d108d5e51 + enabled the i386 asm optimized strcomp (was previously disabled due to wrong ifndef)
git-svn-id: trunk@37614 -
2017-11-23 16:16:05 +00:00
nickysn
c464f7fa56 * fixed the SEG inline asm directive when used with 32-bit registers on the i8086 target
git-svn-id: trunk@37613 -
2017-11-22 15:04:30 +00:00
marco
89da7ad63e * zero out timeval/zone before use. zoneinfo of gettimeofday is often
no longer authorative and it fixes at least haiku. (mantis #32718 by Olivier)

git-svn-id: trunk@37612 -
2017-11-22 13:58:53 +00:00
pierre
c63981e5b5 Fix msdos failure due to copy/paste error in previous commit
git-svn-id: trunk@37611 -
2017-11-20 21:45:29 +00:00
Mattias Gaertner
5d943aeeed fcl-passrc: resolver: fixed procedure modifier overload with multiple units
git-svn-id: trunk@37610 -
2017-11-20 16:42:14 +00:00
florian
0f637434a3 * disable test on avr
git-svn-id: trunk@37609 -
2017-11-19 18:05:22 +00:00
florian
cb087279d6 * do not generate an andi if the constant is 255
git-svn-id: trunk@37608 -
2017-11-19 18:05:21 +00:00
florian
366360d36c * LdiMov/Cp2Ldi/Cpi may not be performed if reg0=reg1
* cleanup of MovOp2Op
* fixed MovMov2Mov

git-svn-id: trunk@37607 -
2017-11-19 18:05:19 +00:00
florian
010a6f5016 + shift by 8 and 16 on 8 and 16 bit cpus by simple register moves
git-svn-id: trunk@37606 -
2017-11-19 18:05:18 +00:00
florian
3352311124 * disable test on avr as it works only with table driven init/final code
git-svn-id: trunk@37605 -
2017-11-19 18:05:16 +00:00
florian
ad01f059e8 * after a LdiMov/Cp2Ldi/Cpi optimization, the compiler should not continue to optimize this instruction because then reg. alloc info is wrong
git-svn-id: trunk@37604 -
2017-11-19 18:05:14 +00:00
Mattias Gaertner
81b15d213d pastojs: updated tests
git-svn-id: trunk@37603 -
2017-11-19 12:50:16 +00:00
Mattias Gaertner
107439bf37 fcl-passrc: resolver: system.builtin, check hidden proc overloads
git-svn-id: trunk@37602 -
2017-11-19 12:50:01 +00:00
nickysn
4fc2fa7899 * alloc/dealloc NR_DEFAULTFLAGS in the a_cmp_* methods in the i8086 code
generator

git-svn-id: trunk@37601 -
2017-11-17 19:28:37 +00:00
nickysn
e49569d049 * extracted the common setup routines for VESA 16, 256, 32k and 64k color modes
git-svn-id: trunk@37600 -
2017-11-17 15:11:15 +00:00
Károly Balogh
4b113579a5 some tabs to spaces indentation cleanup. no functional change
git-svn-id: trunk@37599 -
2017-11-17 11:31:49 +00:00
Károly Balogh
e6aed467b5 renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin
git-svn-id: trunk@37598 -
2017-11-17 11:27:19 +00:00
Mattias Gaertner
bfb89bfd0f fcl-passrc: scanner: added modeswitch prefixedattributes, parser: skip attributes
git-svn-id: trunk@37597 -
2017-11-17 09:49:23 +00:00
nickysn
19bf7df3fb * extracted the common 16-color ega/vga mode setup code to a common procedure
FillCommonEGAVGA16

git-svn-id: trunk@37594 -
2017-11-16 17:58:53 +00:00
nickysn
a6db15dfeb * extracted the common cga/mcga 320x200 and 640x200 setup code to separate
procedures in unit ptcgraph

git-svn-id: trunk@37593 -
2017-11-16 15:54:24 +00:00
Mattias Gaertner
9e6330ae2f fcl-passrc: skip attribute behind proc type
git-svn-id: trunk@37592 -
2017-11-16 13:34:04 +00:00
Mattias Gaertner
d045d1888d fcl-js: fixed tests
git-svn-id: trunk@37591 -
2017-11-14 11:42:46 +00:00
florian
7fa9d267e3 * correctly set cpu defines after r37582, even if architecture and cpu type defines are equal (like CPUMIPS32), resolves #32687
git-svn-id: trunk@37590 -
2017-11-13 21:13:53 +00:00
Mattias Gaertner
a808ae29a8 pastojs: for c in string do
git-svn-id: trunk@37589 -
2017-11-13 13:37:05 +00:00
Mattias Gaertner
429f5346fc fcl-passrc: resolver: for in array do
git-svn-id: trunk@37588 -
2017-11-13 13:36:33 +00:00
nickysn
fd83afb808 * factored out repeating code that prints 'Error: Not in graphics mode'... to a common
procedure (based on a patch by James Richters)

git-svn-id: trunk@37587 -
2017-11-13 00:57:00 +00:00
nickysn
f35c28e3c0 + fast GetImage, PutImage and GetScanLine implementations, based on a patch by James Richters
git-svn-id: trunk@37586 -
2017-11-13 00:48:47 +00:00
florian
f22a6629c1 * set types correctly for char -> shortstring conversions, resolves #32686
git-svn-id: trunk@37585 -
2017-11-12 22:14:23 +00:00
florian
b086b10adf * enable more features for avr6
* ifdef'ed uncompilable procedures

git-svn-id: trunk@37584 -
2017-11-12 22:14:21 +00:00
florian
7debc7920a * enable more features if avr6 is defined
git-svn-id: trunk@37583 -
2017-11-12 22:14:19 +00:00
florian
826f208e45 * define CPU and FPU type macros before the second parsing of the parameters so they can be used in config files
git-svn-id: trunk@37582 -
2017-11-12 22:14:18 +00:00
florian
6cd65d9511 * avrsim also provided when SUBARCH is avr6
git-svn-id: trunk@37581 -
2017-11-12 22:14:16 +00:00
Mattias Gaertner
d3a15022d4 pastojs: for-do for char, bool, and constant start/end expression
git-svn-id: trunk@37580 -
2017-11-12 14:16:02 +00:00
Mattias Gaertner
c96f19339f fcl-passrc: resolver: TResExprEvaluator.OrdValue cna return UInt
git-svn-id: trunk@37579 -
2017-11-12 14:15:12 +00:00
Mattias Gaertner
2a57480fff fcl-js: no brackets in var-comma
git-svn-id: trunk@37578 -
2017-11-12 14:14:04 +00:00