Browse Source

* rtl/m68k/m68k.inc, move:
add a check for "count = 0" which happens e.g. inside of System.Assign if called with '' as filename (which is the case inside OpenStdIO)

git-svn-id: trunk@22841 -

svenbarth 12 years ago
parent
commit
58d9b0853c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/m68k/m68k.inc

+ 2 - 0
rtl/m68k/m68k.inc

@@ -249,6 +249,8 @@ begin
   asm
     clr.l      d0
     move.l   16(a6),d0   {  number of bytes }
+    tst.l  d0            { anything to copy at all? }
+    beq    @LMOVE5
   @LMOVE0:
     move.l   12(a6),a1   {  destination          }
     move.l   8(a6),a0      {  source               }