--- hatari/src/convert/med640x16.c 2019/04/01 07:09:50 1.1.1.3 +++ hatari/src/convert/med640x16.c 2019/04/01 07:10:26 1.1.1.4 @@ -5,7 +5,7 @@ void ConvertMediumRes_640x16Bit(void) { Uint32 *edi, *ebp; Uint16 *esi; - Uint32 eax, ebx, ecx; + Uint32 eax; Convert_StartFrame(); /* Start frame, track palettes */ ScrY = STScreenStartHorizLine; /* Starting line in ST screen */ @@ -18,9 +18,9 @@ void ConvertMediumRes_640x16Bit(void) esi = (Uint16 *)pPCScreenDest; /* PC format screen */ if( (AdjustLinePaletteRemap()&0x00030000)==0 ) /* Change palette table */ - Line_ConvertLowRes_640x16Bit(edi, ebp, (Uint32 *)esi, eax, ebx, ecx); + Line_ConvertLowRes_640x16Bit(edi, ebp, (Uint32 *)esi, eax); else - Line_ConvertMediumRes_640x16Bit(edi, ebp, esi, eax, ebx, ecx); + Line_ConvertMediumRes_640x16Bit(edi, ebp, esi, eax); pPCScreenDest = (void *)(((Uint8 *)pPCScreenDest)+PCScreenBytesPerLine*2); /* Offset to next line */ ScrY += 1; @@ -30,8 +30,9 @@ void ConvertMediumRes_640x16Bit(void) } -void Line_ConvertMediumRes_640x16Bit(Uint32 *edi, Uint32 *ebp, Uint16 *esi, Uint32 eax, Uint32 ebx, Uint32 ecx) +void Line_ConvertMediumRes_640x16Bit(Uint32 *edi, Uint32 *ebp, Uint16 *esi, Uint32 eax) { + register Uint32 ebx, ecx; ScrX=STScreenWidthBytes>>2; /* Amount to draw across in 16-pixels (4 bytes) */