From 58d9b0853ce570cb6030877c1a5f08b484fdd9a4 Mon Sep 17 00:00:00 2001 From: svenbarth Date: Wed, 24 Oct 2012 05:03:08 +0000 Subject: [PATCH] * 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 - --- rtl/m68k/m68k.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtl/m68k/m68k.inc b/rtl/m68k/m68k.inc index 8a28cc3590..506583930f 100644 --- a/rtl/m68k/m68k.inc +++ b/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 }