m68k.inc 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1998-2000 by Carl-Eric Codere,
  5. member of the Free Pascal development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {****************************************************************************
  13. m68k.inc : Processor dependent implementation of system unit
  14. For Motorola 680x0 Processor.
  15. *****************************************************************************}
  16. {****************************************************************************}
  17. { Credit where credit is due: }
  18. { -Some of the copy routines taken from the Atari dlib source code: }
  19. { Dale Schumacher (alias: Dalnefre') [email protected] }
  20. { 399 Beacon Ave. St. Paul, MN 55104,USA }
  21. { -Some of the routines taken from the freeware ATARI Sozobon C compiler }
  22. { 1988 by Sozobon, Limited. Author: Johann Ruegg (freeware) }
  23. { Thanks to all these people wherever they maybe today! }
  24. {****************************************************************************}
  25. { Don't call the following routines directly. }
  26. Procedure Hlt;[public,alias: 'FPC_HALT_ERROR'];
  27. { called by code generator on run-time errors. }
  28. { on entry contains d0 = error code. }
  29. var
  30. b:byte; { only byte is used... }
  31. begin
  32. asm
  33. move.b d0,b
  34. end;
  35. HandleError(b);
  36. end;
  37. Procedure FillChar(var x;count:longint;value:byte);[public,alias: 'FPC_FILL_OBJECT'];
  38. begin
  39. asm
  40. move.l 8(a6), a0 { destination }
  41. move.l 12(a6), d1 { number of bytes to fill }
  42. move.b 16(a6),d0 { fill data }
  43. cmpi.l #65535, d1 { check, if this is a word move }
  44. ble @LMEMSET3 { use fast dbra mode }
  45. bra @LMEMSET2
  46. @LMEMSET1:
  47. move.b d0,(a0)+
  48. @LMEMSET2:
  49. subq.l #1,d1
  50. cmp.l #-1,d1
  51. bne @LMEMSET1
  52. bra @LMEMSET5 { finished slow mode , exit }
  53. @LMEMSET4: { fast loop mode section 68010+ }
  54. move.b d0,(a0)+
  55. @LMEMSET3:
  56. dbra d1,@LMEMSET4
  57. @LMEMSET5:
  58. end ['d0','d1','a0'];
  59. end;
  60. Procedure FillObject(var x; count: longint; value: byte);
  61. begin
  62. asm
  63. move.l 8(a6), a0 { destination }
  64. move.l 12(a6), d1 { number of bytes to fill }
  65. move.w 16(a6),d0 { fill data }
  66. cmp.l #65535, d1 { check, if this is a word move }
  67. ble @LMEMSET3 { use fast dbra mode }
  68. bra @LMEMSET2
  69. @LMEMSET1:
  70. move.b d0,(a0)+
  71. @LMEMSET2:
  72. subq.l #1,d1
  73. cmp.l #-1,d1
  74. bne @LMEMSET1
  75. bra @LMEMSET5 { finished slow mode , exit }
  76. @LMEMSET4: { fast loop mode section 68010+ }
  77. move.b d0,(a0)+
  78. @LMEMSET3:
  79. dbra d1,@LMEMSET4
  80. @LMEMSET5:
  81. end ['d0','d1','a0'];
  82. end;
  83. procedure int_help_constructor;[public,alias:'FPC_HELP_CONSTRUCTOR'];
  84. begin
  85. asm
  86. { Entry without preamble, since we need the ESP of the
  87. constructor }
  88. { Stack (relative to %ebp):
  89. 12 Self
  90. 8 VMT-Address
  91. 4 main programm-Addr
  92. 0 %ebp
  93. }
  94. { do we have to initialize self }
  95. { we just need to check for zero }
  96. move.l a5,d0
  97. tst.l d0 { set flags }
  98. bne @LHC_4
  99. { get memory, but save register first }
  100. { temporary variable }
  101. subq.l #4,sp
  102. move.l sp,a5
  103. { Save Registers }
  104. movem.l d0-a7,-(sp)
  105. { Memory size }
  106. move.l 8(a6),a0
  107. move.l (a0),-(sp)
  108. { push method pointer }
  109. move.l a5,-(sp)
  110. jsr FPC_GETMEM
  111. { Restore all registers in the correct order }
  112. movem.l (sp)+,d0-a7
  113. { Memory position to a5 }
  114. move.l (a5),a5
  115. addq.l #4,sp
  116. { If no memory available : fail() }
  117. move.l a5,d0
  118. tst.l d0 { set flags for a5 }
  119. beq @LHC_5
  120. { init self for the constructor }
  121. move.l a5,12(a6)
  122. @LHC_4:
  123. { is there a VMT address ? }
  124. move.l 8(a6),d0
  125. or.l d0,d0
  126. bne @LHC_7
  127. { In case the constructor doesn't do anything, the Zero-Flag }
  128. { can't be put, because this calls Fail() }
  129. add.l #1,d0
  130. rts
  131. @LHC_7:
  132. { set zero inside the object }
  133. { Save Registers }
  134. movem.l d0-a7,-(sp)
  135. move.w #0,-(sp)
  136. move.l 8(a6),a0
  137. move.l (a0),-(sp)
  138. move.l a5,-(sp)
  139. { }
  140. jsr FPC_FILLOBJECT
  141. { Restore all registers in the correct order }
  142. movem.l (sp)+,d0-a7
  143. { set the VMT address for the new created object }
  144. {$ifdef OBJECTVMTOFFSET}
  145. { the offset is in %edi since the calling and has not been changed !! }
  146. move.l 8(a6),d1
  147. move.l d1,(a5,d0.l)
  148. {$else OBJECTVMTOFFSET}
  149. move.l 8(a6),d0
  150. move.l d0,(a5)
  151. {$endif OBJECTVMTOFFSET}
  152. or.l d0,d0
  153. @LHC_5:
  154. rts
  155. end;
  156. end;
  157. procedure help_fail;
  158. begin
  159. asm
  160. end;
  161. end;
  162. procedure int_help_destructor;[public,alias:'FPC_HELP_DESTRUCTOR'];
  163. begin
  164. asm
  165. { Stack (relative to %ebp):
  166. 12 Self
  167. 8 VMT-Address
  168. 4 Main program-Addr
  169. 0 %ebp
  170. d0 contains vmt_offset
  171. }
  172. { temporary Variable }
  173. subq.l #4,sp
  174. move.l sp,d6
  175. { Save Registers }
  176. movem.l d0-a7,-(sp)
  177. move.l 8(a6),d1 { Get the address of the vmt }
  178. or.l d1,d1 { Check if there is a vmt }
  179. beq @LHD_3
  180. { Yes, get size from SELF! }
  181. move.l 12(a6),a0
  182. { get VMT-pointer (from Self) to %ebx }
  183. {$ifdef OBJECTVMTOFFSET}
  184. { the offset is in d0 since the calling and has not been changed !! }
  185. move.l (a0,d0.l),a1
  186. {$else OBJECTVMTOFFSET}
  187. move.l (a0),a1
  188. {$endif OBJECTVMTOFFSET}
  189. { And put size on the Stack }
  190. move.l (a1),-(sp)
  191. { SELF }
  192. { I think for precaution }
  193. { that we should clear the VMT here }
  194. clr.l (a0)
  195. { get address of local variable into }
  196. { address register }
  197. move.l d6,a1
  198. move.l a0,(a1)
  199. move.l a1,-(sp)
  200. jsr FPC_FREEMEM
  201. @LHD_3:
  202. { Restore all registers in the correct order }
  203. movem.l (sp)+,d0-a7
  204. add.l #4,sp
  205. rts
  206. end;
  207. end;
  208. procedure new_class;assembler;[public,alias:'FPC_NEW_CLASS'];
  209. asm
  210. { create class ? }
  211. move.l 8(a6), d0
  212. tst.l d0
  213. { check for nil... }
  214. beq @NEW_CLASS1
  215. { a5 contains vmt }
  216. move.l a5,-(sp)
  217. { call newinstance (class method!) }
  218. jsr 16(a5)
  219. { new instance returns a pointer to the new created }
  220. { instance in d0 }
  221. { load a5 and insert self }
  222. move.l d0,8(a6)
  223. move.l d0,a5
  224. bra @end
  225. @NEW_CLASS1:
  226. move.l a5,8(a6)
  227. @end:
  228. end;
  229. procedure dispose_class;assembler;[public,alias:'FPC_DISPOSE_CLASS'];
  230. asm
  231. { destroy class ? }
  232. move.l 8(a6),d0
  233. { save self }
  234. move.l a5,8(a6)
  235. tst.l d0
  236. beq @DISPOSE_CLASS
  237. { no inherited call }
  238. move.l (a5),d0
  239. { push self }
  240. move.l a5,-(sp)
  241. { call freeinstance }
  242. move.l d0,a0
  243. jsr 20(a0)
  244. @DISPOSE_CLASS:
  245. { load self }
  246. move.l 8(a6),a5
  247. end;
  248. { checks for a correct vmt pointer }
  249. procedure int_check_object;assembler;[public,alias:'FPC_CHECK_OBJECT'];
  250. { ON ENTRY: a0 -> Pointer to the VMT }
  251. { Nota: All registers must be preserved including }
  252. { A0 itself! }
  253. asm
  254. move.l d0,-(sp)
  255. tst.l a0
  256. { z flag set if zero }
  257. beq @co_re
  258. move.l (a0),d0
  259. add.l 4(a0),d0
  260. bne @co_re
  261. bra @end
  262. @co_re:
  263. move.l (sp)+,d0
  264. move.b #210,d0
  265. jsr FPC_HALT_ERROR
  266. @end:
  267. move.l (sp)+,d0
  268. end;
  269. function get_frame : longint; assembler;
  270. asm
  271. move.l a6,d0
  272. end;
  273. function get_caller_addr(framebp:longint):longint;
  274. begin
  275. asm
  276. move.l FRAMEBP,a0
  277. cmp.l #0,a0
  278. beq @Lnul_address
  279. move.l 4(a0),a0
  280. @Lnul_address:
  281. move.l a0,@RESULT
  282. end ['a0'];
  283. end;
  284. function get_caller_frame(framebp:longint):longint;
  285. begin
  286. asm
  287. move.l FRAMEBP,a0
  288. cmp.l #0,a0
  289. beq @Lnul_frame
  290. move.l (a0),a0
  291. @Lnul_frame:
  292. move.l a0,@RESULT
  293. end ['a0'];
  294. end;
  295. { procedure strcopy(dstr,sstr : pointer;len : longint);[public,alias: 'STRCOPY'];}
  296. procedure strcopy; assembler;[public,alias: 'FPC_STRCOPY'];
  297. {---------------------------------------------------}
  298. { Low-level routine to copy a string to another }
  299. { string with maximum length. Never call directly! }
  300. { On Entry: }
  301. { a1.l = string to copy to }
  302. { a0.l = source string }
  303. { d0.l = maximum length of copy }
  304. { registers destroyed: a0,a1,d0,d1 }
  305. {---------------------------------------------------}
  306. asm
  307. { move.l 12(a6),a0
  308. move.l 16(a6),a1
  309. move.l 8(a6),d1 }
  310. move.l d0,d1
  311. move.b (a0)+,d0 { Get source length }
  312. and.w #$ff,d0
  313. cmp.w d1,d0 { This is a signed comparison! }
  314. ble @LM4
  315. move.b d1,d0 { If longer than maximum size of target, cut
  316. source length }
  317. @LM4:
  318. andi.l #$ff,d0 { zero extend d0-byte }
  319. move.l d0,d1 { save length to copy }
  320. move.b d0,(a1)+ { save new length }
  321. { Check if copying length is zero - if so then }
  322. { exit without copying anything. }
  323. tst.b d1
  324. beq @Lend
  325. bra @LMSTRCOPY55
  326. @LMSTRCOPY56: { 68010 Fast loop mode }
  327. move.b (a0)+,(a1)+
  328. @LMSTRCOPY55:
  329. dbra d1,@LMSTRCOPY56
  330. @Lend:
  331. end;
  332. { Concatenate Strings }
  333. { PARAMETERS ARE REVERSED COMPARED TO NORMAL! }
  334. { therefore online assembler may not parse the params as normal }
  335. procedure strconcat(s1,s2 : pointer);[public,alias: 'STRCONCAT'];
  336. begin
  337. asm
  338. move.b #255,d0
  339. move.l s1,a0 { a0 = destination }
  340. move.l s2,a1 { a1 = source }
  341. sub.b (a0),d0 { copyl:= 255 -length(s1) }
  342. move.b (a1),d6
  343. and.w #$ff,d0 { Sign flags are checked! }
  344. and.w #$ff,d6
  345. cmp.w d6,d0 { if copyl > length(s2) then }
  346. ble @Lcontinue
  347. move.b (a1),d0 { copyl:=length(s2) }
  348. @Lcontinue:
  349. move.b (a0),d6
  350. and.l #$ff,d6
  351. lea 1(a0,d6),a0 { s1[length(s1)+1] }
  352. add.l #1,a1 { s2[1] }
  353. move.b d0,d6
  354. { Check if copying length is zero - if so then }
  355. { exit without copying anything. }
  356. tst.b d6
  357. beq @Lend
  358. bra @ALoop
  359. @Loop:
  360. move.b (a1)+,(a0)+ { s1[i] := s2[i]; }
  361. @ALoop:
  362. dbra d6,@Loop
  363. move.l s1,a0
  364. add.b d0,(a0) { change to new string length }
  365. @Lend:
  366. end ['d0','d1','a0','a1','d6'];
  367. end;
  368. { Compares strings }
  369. { DO NOT CALL directly. }
  370. { a0 = pointer to first string to compare }
  371. { a1 = pointer to second string to compare }
  372. { ALL FLAGS are set appropriately. }
  373. { ZF = strings are equal }
  374. { REGISTERS DESTROYED: a0, a1, d0, d1, d6 }
  375. procedure strcmp; assembler;[public,alias:'FPC_STRCMP'];
  376. asm
  377. move.b (a0)+,d0 { Get length of first string }
  378. move.b (a1)+,d6 { Get length of 2nd string }
  379. move.b d6,d1 { Save length of string for final compare }
  380. cmp.b d0,d6 { Get shortest string length }
  381. ble @LSTRCONCAT1
  382. move.b d0,d6 { Set length to shortest string }
  383. @LSTRCONCAT1:
  384. tst.b d6 { Both strings have a length of zero, exit }
  385. beq @LSTRCONCAT2
  386. andi.l #$ff,d6
  387. subq.l #1,d6 { subtract first attempt }
  388. { if value is -1 then don't loop and just compare lengths of }
  389. { both strings before exiting. }
  390. bmi @LSTRCONCAT2
  391. or.l d0,d0 { Make sure to set Zerfo flag to 0 }
  392. @LSTRCONCAT5:
  393. { Workaroung for GAS v.134 bug }
  394. { old: cmp.b (a1)+,(a0)+ }
  395. cmpm.b (a1)+,(a0)+
  396. @LSTRCONCAT4:
  397. dbne d6,@LSTRCONCAT5 { Repeat until not equal }
  398. bne @LSTRCONCAT3
  399. @LSTRCONCAT2:
  400. { If length of both string are equal }
  401. { Then set zero flag }
  402. cmp.b d1,d0 { Compare length - set flag if equal length strings }
  403. @LSTRCONCAT3:
  404. end;
  405. Function strpas(p: pchar): string;
  406. { only 255 first characters are actually copied. }
  407. var
  408. counter : byte;
  409. str: string;
  410. Begin
  411. counter := 0;
  412. str := '';
  413. while (ord(p[counter]) <> 0) and (counter < 255) do
  414. begin
  415. counter:=counter+1;
  416. str[counter] := char(p[counter-1]);
  417. end;
  418. str[0] := char(counter);
  419. strpas := str;
  420. end;
  421. function strlen(p : pchar) : longint;
  422. var
  423. counter : longint;
  424. Begin
  425. counter := 0;
  426. repeat
  427. counter:=counter+1;
  428. until ord(p[counter]) = 0;
  429. strlen := counter;
  430. end;
  431. procedure move(var source;var dest;count : longint);
  432. { base pointer+8 = source }
  433. { base pointer+12 = destination }
  434. { base pointer+16 = number of bytes to move}
  435. begin
  436. asm
  437. clr.l d0
  438. move.l 16(a6),d0 { number of bytes }
  439. @LMOVE0:
  440. move.l 12(a6),a1 { destination }
  441. move.l 8(a6),a0 { source }
  442. cmpi.l #65535, d0 { check, if this is a word move }
  443. ble @LMEMSET00 { use fast dbra mode 68010+ }
  444. cmp.l a0,a1 { check copy direction }
  445. bls @LMOVE4
  446. add.l d0,a0 { move pointers to end }
  447. add.l d0,a1
  448. bra @LMOVE2
  449. @LMOVE1:
  450. move.b -(a0),-(a1) { (s < d) copy loop }
  451. @LMOVE2:
  452. subq.l #1,d0
  453. cmpi.l #-1,d0
  454. bne @LMOVE1
  455. bra @LMOVE5
  456. @LMOVE3:
  457. move.b (a0)+,(a1)+ { (s >= d) copy loop }
  458. @LMOVE4:
  459. subq.l #1,d0
  460. cmpi.l #-1,d0
  461. bne @LMOVE3
  462. bra @LMOVE5
  463. @LMEMSET00: { use fast loop mode 68010+ }
  464. cmp.l a0,a1 { check copy direction }
  465. bls @LMOVE04
  466. add.l d0,a0 { move pointers to end }
  467. add.l d0,a1
  468. bra @LMOVE02
  469. @LMOVE01:
  470. move.b -(a0),-(a1) { (s < d) copy loop }
  471. @LMOVE02:
  472. dbra d0,@LMOVE01
  473. bra @LMOVE5
  474. @LMOVE03:
  475. move.b (a0)+,(a1)+ { (s >= d) copy loop }
  476. @LMOVE04:
  477. dbra d0,@LMOVE03
  478. { end fast loop mode }
  479. @LMOVE5:
  480. end ['d0','a0','a1'];
  481. end;
  482. procedure fillword(var x;count : longint;value : word);
  483. begin
  484. asm
  485. move.l 8(a6), a0 { destination }
  486. move.l 12(a6), d1 { number of bytes to fill }
  487. move.w 16(a6),d0 { fill data }
  488. bra @LMEMSET21
  489. @LMEMSET11:
  490. move.w d0,(a0)+
  491. @LMEMSET21:
  492. subq.l #1,d1
  493. cmp.b #-1,d1
  494. bne @LMEMSET11
  495. end ['d0','d1','a0'];
  496. end;
  497. function abs(l : longint) : longint;
  498. begin
  499. asm
  500. move.l 8(a6),d0
  501. tst.l d0
  502. bpl @LMABS1
  503. neg.l d0
  504. @LMABS1:
  505. move.l d0,@RESULT
  506. end ['d0'];
  507. end;
  508. function odd(l : longint) : boolean;
  509. begin
  510. if (l and $01) = $01 then
  511. odd := TRUE
  512. else
  513. odd := FALSE;
  514. end;
  515. function sqr(l : longint) : longint;
  516. begin
  517. sqr := l*l;
  518. end;
  519. procedure int_str(l : longint;var s : string);
  520. var
  521. value: longint;
  522. negative: boolean;
  523. begin
  524. negative := false;
  525. s:='';
  526. { Workaround: }
  527. if l=$80000000 then
  528. begin
  529. s:='-2147483648';
  530. exit;
  531. end;
  532. { handle case where l = 0 }
  533. if l = 0 then
  534. begin
  535. s:='0';
  536. exit;
  537. end;
  538. If l < 0 then
  539. begin
  540. negative := true;
  541. value:=abs(l);
  542. end
  543. else
  544. value:=l;
  545. { handle non-zero case }
  546. while value>0 do
  547. begin
  548. s:=char((value mod 10)+ord('0'))+s;
  549. value := value div 10;
  550. end;
  551. if negative then
  552. s := '-' + s;
  553. end;
  554. Function Sptr : Longint;
  555. begin
  556. asm
  557. move.l sp,d0
  558. add.l #8,d0
  559. move.l d0,@RESULT
  560. end ['d0'];
  561. end;
  562. Procedure BoundsCheck;assembler;[public,alias:'FPC_RE_BOUNDS_CHECK'];
  563. { called by code generator with R+ state to }
  564. { determine if a range check occured. }
  565. { Only in 68000 mode, in 68020 mode this is }
  566. { inline. }
  567. { On Entry: }
  568. { A1 = address contaning min and max indexes }
  569. { D0 = value of current index to check. }
  570. asm
  571. cmp.l (A1),D0 { lower bound ... }
  572. bmi @rebounderr { is index lower ... }
  573. add.l #4,A1
  574. cmp.l (A1),D0
  575. bmi @reboundend
  576. beq @reboundend
  577. @rebounderr:
  578. move.l #201,d0
  579. jsr FPC_HALT_ERROR
  580. @reboundend:
  581. end;
  582. {****************************************************************************
  583. IoCheck
  584. ****************************************************************************}
  585. procedure int_iocheck(addr : longint);[public,alias: {$ifdef FPCNAMES}'FPC_'+{$endif}'IOCHECK'];
  586. var
  587. l : longint;
  588. begin
  589. asm
  590. movem.l d0-a7,-(sp)
  591. end;
  592. if InOutRes<>0 then
  593. begin
  594. l:=InOutRes;
  595. InOutRes:=0;
  596. If ErrorProc<>Nil then
  597. TErrorProc(Errorproc)(l,pointer(addr));
  598. {$ifndef RTLLITE}
  599. writeln('IO-Error ',l,' at 0x',HexStr(addr,8));
  600. {$endif}
  601. Halt(byte(l));
  602. end;
  603. asm
  604. movem.l (sp)+,d0-a7
  605. end;
  606. end;
  607. {
  608. $Log$
  609. Revision 1.16 2000-01-07 16:32:29 daniel
  610. * copyright 2000 added
  611. Revision 1.15 1998/10/17 14:34:37 carl
  612. * FillChar and FillObject bugfix, count was compared with byte
  613. Revision 1.14 1998/10/16 13:37:45 pierre
  614. * added code for vmt_offset in destructors
  615. Revision 1.13 1998/10/15 11:35:03 pierre
  616. + first step of variable vmt offset
  617. offset is stored in R_EDI (R_D0)
  618. if objectvmtoffset is defined
  619. Revision 1.12 1998/10/13 08:00:06 pierre
  620. * some bugs related to FPC_ prefix fixed
  621. * problems with pbyte sometimes defined and sometimes not for rttip.inc solved
  622. Revision 1.11 1998/09/14 10:48:29 peter
  623. * FPC_ names
  624. * Heap manager is now system independent
  625. Revision 1.10 1998/08/17 12:26:04 carl
  626. + simple cleanup of comments
  627. Revision 1.9 1998/07/30 13:26:14 michael
  628. + Added support for ErrorProc variable. All internal functions are required
  629. to call HandleError instead of runerror from now on.
  630. This is necessary for exception support.
  631. Revision 1.8 1998/07/10 11:02:41 peter
  632. * support_fixed, becuase fixed is not 100% yet for the m68k
  633. Revision 1.7 1998/07/02 12:20:58 carl
  634. + Io-Error and overflow print erroraddr in hex now
  635. Revision 1.6 1998/07/01 14:25:57 carl
  636. * strconcat was copying one byte too much
  637. * strcopy bugfix was using signed comparison
  638. + STRCOPY uses register calling conventions
  639. * FillChar bugfix was loading a word instead of a byte
  640. }