# Protocol:
#
# ? far FIRE_BLIT_PICTURE(...);
#
# DESC:
# (mirror-flip) is a combination of following flags,
# DO_MIRROR=1
# DO_FLIP  =2
_44c8_1101:
						% 1st:word [bp+06] off src
						% 2nd:word [bp+08] seg src
						% 3rd:word [bp+0a] off dst
						% 4th:word [bp+0c] seg dst
						% 5th:word [bp+0e] off bp_p_0e
						% 6th:word [bp+10] seg bp_p_0e
						% 7th:word [bp+12] src-x
						% 8th:word [bp+14] src-y
						% 9th:word [bp+16] src-pitch
						%10th:word [bp+18] dst-pitch
						%11th:word [bp+1a] color-key
						%12th:word [bp+1c] mirror-flip
						%13th:word [bp+1e] src_bpp
						%14th:word [bp+20] dst_bpp
						%15th:word [bp+22] off local_pal
						%16th:word [bp+24] seg local_pal
44C8:1101  55                   push bp
44C8:1102  8BEC                 mov  bp,sp
44C8:1104  56                   push si
44C8:1105  57                   push di
44C8:1106  8B7E16               mov  di,[bp+16]
44C8:1109  8B761A               mov  si,[bp+1A]
44C8:110C  8B460A               mov  ax,[bp+0A]
44C8:110F  0B460C               or   ax,[bp+0C]			if dst!=0
44C8:1112  752B                 jne  0000113F ($+2b)		then JMP _113f
_blit_to_screen_xto8:
44C8:1114  FF761E               push word [bp+1E]		>11th:src_bpp
44C8:1117  FF7624               push word [bp+24]		>10th:seg local_pal
44C8:111A  FF7622               push word [bp+22]		> 9th:off local_pal
44C8:111D  56                   push si				> 8th:color-key
44C8:111E  57                   push di				> 7th:src-pitch
44C8:111F  FF7614               push word [bp+14]		> 6th:src-y
44C8:1122  FF7612               push word [bp+12]		> 5th:src-x
44C8:1125  FF7610               push word [bp+10]		> 4th:seg bp_p_0e
44C8:1128  FF760E               push word [bp+0E]		> 3rd:off bp_p_0e
44C8:112B  FF7608               push word [bp+08]		> 2nd:seg src
44C8:112E  FF7606               push word [bp+06]		> 1st:off src
44C8:1131  C41E885E             les  bx,[5E88]
44C8:1135  26FF5F08             call far word es:[bx+08]	call IBMIO_BLIT_TO_SCREEN_xTO8BPP
44C8:1139  83C416               add  sp,0016
44C8:113C  E9BF00               jmp  000011FE ($+bf)
_blit_to_memory_xtox:
_113f:
44C8:113F  837E1E04             cmp  word [bp+1E],0004		if (src_bpp)!=4
44C8:1143  755B                 jne  000011A0 ($+5b)		then JMP _11a0
44C8:1145  837E2004             cmp  word [bp+20],0004		if (dst_bpp)!=4
44C8:1149  7526                 jne  00001171 ($+26)		then JMP _1171
_blit_to_memory_4to4:
44C8:114B  FF761C               push word [bp+1C]		>12th:mirror-flip
44C8:114E  56                   push si				>11th:color-key
44C8:114F  FF7618               push word [bp+18]		>10th:dst-pitch
44C8:1152  57                   push di				> 9th:src-pitch
44C8:1153  FF7614               push word [bp+14]		> 8th:src-y
44C8:1156  FF7612               push word [bp+12]		> 7th:src-x
44C8:1159  FF7610               push word [bp+10]		> 6th:seg bp_p_0e
44C8:115C  FF760E               push word [bp+0E]		> 5th:off bp_p_0e
44C8:115F  FF760C               push word [bp+0C]		> 4th:seg dst
44C8:1162  FF760A               push word [bp+0A]		> 3rd:off dst
44C8:1165  FF7608               push word [bp+08]		> 2nd:seg src
44C8:1168  FF7606               push word [bp+06]		> 1st:off src
44C8:116B  0E                   push cs
44C8:116C  E83FF4               call 000005AE ($-bc1)		call FIRE_BLIT_TO_MEMORY_4TO4BPP
44C8:116F  EB5B                 jmp  short 000011CC ($+5b)
_blit_to_memory_4to8:
_1171:
44C8:1171  FF7624               push word [bp+24]		>14th:seg local_pal
44C8:1174  FF7622               push word [bp+22]		>13th:off local_pal
44C8:1177  FF761C               push word [bp+1C]		>12th:mirror-flip
44C8:117A  56                   push si				>11th:color-key
44C8:117B  FF7618               push word [bp+18]		>10th:dst-pitch
44C8:117E  57                   push di				> 9th:src-pitch
44C8:117F  FF7614               push word [bp+14]		> 8th:src-y
44C8:1182  FF7612               push word [bp+12]		> 7th:src-x
44C8:1185  FF7610               push word [bp+10]		> 6th:seg bp_p_0e
44C8:1188  FF760E               push word [bp+0E]		> 5th:off bp_p_0e
44C8:118B  FF760C               push word [bp+0C]		> 4th:seg dst
44C8:118E  FF760A               push word [bp+0A]		> 3rd:off dst
44C8:1191  FF7608               push word [bp+08]		> 2nd:seg src
44C8:1194  FF7606               push word [bp+06]		> 1st:off src
44C8:1197  0E                   push cs
44C8:1198  E83CF8               call 000009D7 ($-7c4)		call FIRE_BLIT_TO_MEMORY_4TO8BPP
44C8:119B  83C41C               add  sp,001C
44C8:119E  EB5E                 jmp  short 000011FE ($+5e)
_blit_to_memory_8to8:
_11a0:
44C8:11A0  8B4622               mov  ax,[bp+22]
44C8:11A3  0B4624               or   ax,[bp+24]			if (local_pal)!=0
44C8:11A6  7529                 jne  000011D1 ($+29)		then JMP _11d1
44C8:11A8  FF761C               push word [bp+1C]		>12th:mirror-flip
44C8:11AB  56                   push si				>11th:color-key
44C8:11AC  FF7618               push word [bp+18]		>10th:dst-pitch
44C8:11AF  57                   push di				> 9th:src-pitch
44C8:11B0  FF7614               push word [bp+14]		> 8th:src-y
44C8:11B3  FF7612               push word [bp+12]		> 7th:src-x
44C8:11B6  FF7610               push word [bp+10]		> 6th:seg bp_p_0e
44C8:11B9  FF760E               push word [bp+0E]		> 5th:off bp_p_0e
44C8:11BC  FF760C               push word [bp+0C]		> 4th:seg dst
44C8:11BF  FF760A               push word [bp+0A]		> 3rd:off dst
44C8:11C2  FF7608               push word [bp+08]		> 2nd:seg src
44C8:11C5  FF7606               push word [bp+06]		> 1st:off src
44C8:11C8  0E                   push cs
44C8:11C9  E8A8FA               call 00000C74 ($-558)		call FIRE_BLIT_TO_MEMORY_8TO8BPP
44C8:11CC  83C418               add  sp,0018
44C8:11CF  EB2D                 jmp  short 000011FE ($+2d)
_11d1:
44C8:11D1  FF7624               push word [bp+24]
44C8:11D4  FF7622               push word [bp+22]
44C8:11D7  FF761C               push word [bp+1C]
44C8:11DA  56                   push si
44C8:11DB  FF7618               push word [bp+18]
44C8:11DE  57                   push di
44C8:11DF  FF7614               push word [bp+14]
44C8:11E2  FF7612               push word [bp+12]
44C8:11E5  FF7610               push word [bp+10]
44C8:11E8  FF760E               push word [bp+0E]
44C8:11EB  FF760C               push word [bp+0C]
44C8:11EE  FF760A               push word [bp+0A]
44C8:11F1  FF7608               push word [bp+08]
44C8:11F4  FF7606               push word [bp+06]
44C8:11F7  0E                   push cs
44C8:11F8  E82EFD               call 00000F29 ($-2d2)		call ?
44C8:11FB  83C41C               add  sp,001C
_11fe:
44C8:11FE  5F                   pop  di
44C8:11FF  5E                   pop  si
44C8:1200  5D                   pop  bp
44C8:1201  CB                   retf