Commit Graph

39625 Commits

Author SHA1 Message Date
nickysn
848eeceded * use min and max in defutil.get_common_intdef
git-svn-id: branches/i8086@24120 -
2013-04-01 20:25:42 +00:00
nickysn
949210e808 + added min and max functions for Tconstexprint
git-svn-id: branches/i8086@24119 -
2013-04-01 20:23:14 +00:00
nickysn
a8d72cc11a * bug fix in defutil.get_common_intdef
git-svn-id: branches/i8086@24115 -
2013-04-01 19:25:11 +00:00
nickysn
8a1178e4e9 * regenerated makefiles
git-svn-id: branches/i8086@24114 -
2013-04-01 17:30:11 +00:00
nickysn
0fe3bee97e * set STATICLIBPREFIX to empty for the msdos target in fpcmake.ini
git-svn-id: branches/i8086@24113 -
2013-04-01 17:27:28 +00:00
nickysn
873d5f7d05 * makefiles regenerated
git-svn-id: branches/i8086@24103 -
2013-04-01 02:02:53 +00:00
nickysn
592dcc5b83 * compile the RTL with -CX when running the testsuite for msdos
git-svn-id: branches/i8086@24102 -
2013-04-01 02:01:00 +00:00
nickysn
a05823b8bf * updated fpcmake.inc after the changes in fpcmake.inc from my previous commit
git-svn-id: branches/i8086@24101 -
2013-03-31 23:21:42 +00:00
nickysn
f3690daf95 * set the msdos staticlibext (.lib) and short suffix (d16) in fpcmake.ini
git-svn-id: branches/i8086@24100 -
2013-03-31 23:20:06 +00:00
florian
74880f639a * msdos is a 8.3 target as well
git-svn-id: branches/i8086@24097 -
2013-03-31 19:20:20 +00:00
florian
259e9757a7 * for the time being, skip units which do not build on i8086-msdos
git-svn-id: branches/i8086@24096 -
2013-03-31 19:13:18 +00:00
florian
7120d416f5 * enable only units which build on msdos
git-svn-id: branches/i8086@24095 -
2013-03-31 18:42:09 +00:00
nickysn
96fd997a97 - rm unported code from go32v2, generate runtime 304 if an unimplemented function is called
git-svn-id: branches/i8086@24094 -
2013-03-31 18:06:27 +00:00
nickysn
3d6dbfe1f7 * regenerated the testsuite makefiles with the new fpcmake, which supports i8086-msdos
git-svn-id: branches/i8086@24093 -
2013-03-31 17:12:13 +00:00
nickysn
526c3b9c9b * val, str and read/write(ln) now use is_oversizedint/ord to determine which helper function to use; this also clears the warnings that prevented compilation of the 64-bit targets
git-svn-id: branches/i8086@24092 -
2013-03-31 16:27:26 +00:00
nickysn
9c435a0bcb + added is_8/16bit and is_oversizedint/is_oversizedord helper functions in defutil.pas
git-svn-id: branches/i8086@24091 -
2013-03-31 16:25:22 +00:00
nickysn
7b8e18ba40 * updated aint to tcgint in jvm/hlcgcpu.pas as well (needed after r23761)
git-svn-id: branches/i8086@24088 -
2013-03-31 12:52:56 +00:00
nickysn
8cf0f5db89 + a very quick and dirty script for running tests in dosbox and passing the exit code back
git-svn-id: branches/i8086@24087 -
2013-03-31 01:04:43 +00:00
nickysn
91038d6d0a * prevent compilation warning due to function result not being set in tinlinenode.first_seg
git-svn-id: branches/i8086@24084 -
2013-03-30 20:32:52 +00:00
nickysn
be761ba232 * sequences that check for cpu64bitaddr made to also check for cpu32bitaddr instead of cpu32bitalu. this fixes ppcjvm compilation
git-svn-id: branches/i8086@24083 -
2013-03-30 20:31:52 +00:00
nickysn
c44f760015 * i8086 near heap renamed 'tiny heap', moved to the inc/ directory
git-svn-id: branches/i8086@24082 -
2013-03-30 19:57:21 +00:00
nickysn
599d5d74ca + implemented Randomize for msdos
git-svn-id: branches/i8086@24081 -
2013-03-30 16:40:37 +00:00
nickysn
efa90dd1f3 * fixed potential buffer overflow in GetDir()
git-svn-id: branches/i8086@24080 -
2013-03-30 16:34:54 +00:00
nickysn
af751145b7 + msdos directory functions implemented, based on go32v2
git-svn-id: branches/i8086@24079 -
2013-03-30 16:26:02 +00:00
nickysn
bca3cd6160 + implemented all the remaining msdos file functions
git-svn-id: branches/i8086@24078 -
2013-03-30 15:46:41 +00:00
nickysn
620dc8cb64 * close all open files on exit
git-svn-id: branches/i8086@24077 -
2013-03-30 15:31:39 +00:00
nickysn
a463c1f558 + implemented file routines do_open and do_close for msdos, based on the go32v2 code
git-svn-id: branches/i8086@24076 -
2013-03-30 15:27:36 +00:00
nickysn
bbcd3506b3 + call initvariantmanager on msdos system unit startup
git-svn-id: branches/i8086@24075 -
2013-03-30 15:05:20 +00:00
nickysn
28545f2fad + implemented near heap for i8086-msdos, based on the embedded target heap
git-svn-id: branches/i8086@24074 -
2013-03-30 14:54:01 +00:00
nickysn
aab6df13ba * use Seg() instead of DSeg in the msdos rtl
git-svn-id: branches/i8086@24072 -
2013-03-30 13:05:30 +00:00
nickysn
4d8adbf5ff + implemented Seg() for i8086 (small/tiny memory model)
git-svn-id: branches/i8086@24071 -
2013-03-30 13:04:58 +00:00
nickysn
917a1eb0f2 * the default Seg() handling moved to virtual methods, so that they can be overriden in the i8086 code generator
git-svn-id: branches/i8086@24070 -
2013-03-30 12:08:24 +00:00
nickysn
27559aa5f8 * use Ofs() instead of typecasting to word for getting the offset of a pointer
git-svn-id: branches/i8086@24068 -
2013-03-30 11:41:07 +00:00
nickysn
2fd729cb4d + added CheckLFN to the msdos rtl
git-svn-id: branches/i8086@24067 -
2013-03-30 11:37:29 +00:00
nickysn
f270263d3d * default stack size for msdos changed to 4096 bytes
git-svn-id: branches/i8086@24066 -
2013-03-30 11:00:46 +00:00
nickysn
8f71f3b5fd + initialize more stuff in the msdos system unit startup
git-svn-id: branches/i8086@24065 -
2013-03-30 03:02:14 +00:00
nickysn
324b4a8a0a * declare the .bss sections with class=bss, so wlink treats them as bss sections and leaves them out of the executable
git-svn-id: branches/i8086@24064 -
2013-03-30 00:49:11 +00:00
nickysn
47342630e0 + allocate space for stack and heap dynamically on program startup for i8086-msdos
git-svn-id: branches/i8086@24063 -
2013-03-30 00:36:31 +00:00
florian
9edacdc9b4 + mem declarations
git-svn-id: branches/i8086@24060 -
2013-03-29 16:02:46 +00:00
florian
5ab9742c22 + start of dos unit (derived from go32v2)
* adapated Makefiles

git-svn-id: branches/i8086@24059 -
2013-03-29 15:58:21 +00:00
nickysn
102f929e99 - do not initialize the flags register on entry to the interrupt in the Intr/MsDos procedure (which is the TP-compatible behavior)
git-svn-id: branches/i8086@24058 -
2013-03-29 15:50:57 +00:00
nickysn
b61a9ba6a6 + implemented GetProcessID for i8086-msdos (returns the PSP)
git-svn-id: branches/i8086@24057 -
2013-03-29 15:23:32 +00:00
florian
1ab42714c3 + fix compilation by adding a Int32 type, no sure why it is needed
git-svn-id: branches/i8086@24055 -
2013-03-29 15:15:12 +00:00
florian
fef7832790 * enable absolute for i8086-msdos
git-svn-id: branches/i8086@24054 -
2013-03-29 15:13:29 +00:00
florian
40af7b2817 + add msdos target to ppudump
git-svn-id: branches/i8086@24051 -
2013-03-29 10:46:34 +00:00
nickysn
615d6e4a51 * internal compiler handling of Val() fixed for 16/8-bit CPUs
git-svn-id: branches/i8086@24049 -
2013-03-29 01:38:21 +00:00
nickysn
cac6ac38d0 + added RTL helpers for Val() for longint/dword on 16/8-bit CPUs
git-svn-id: branches/i8086@24048 -
2013-03-29 01:19:14 +00:00
nickysn
8b6b832677 + added helper functions for read/readln longint/longword on 16/8-bit cpus
git-svn-id: branches/i8086@24047 -
2013-03-28 23:56:47 +00:00
nickysn
9b79c52f32 * fixed bug in FPC_INTR and FPC_MSDOS
git-svn-id: branches/i8086@24046 -
2013-03-28 22:49:14 +00:00
nickysn
d8af51fdab + implemented do_read for i8086-msdos
git-svn-id: branches/i8086@24045 -
2013-03-28 22:22:47 +00:00