First word: total_count (of segments) repeat Next word: offset Next word: run_count Run_count bytes: image data for total_count times |
push ds mov es,Sega000 mov di,offset ;{y*320+x} lds si,blit lodsw ; {total count} mov dx,ax @@lop: lodsw ; {load offset} add di,ax ; {add offset} lodsw ; {load run_count} mov cx,ax ; {store in cx for rep} rep movsb dec dx ; {dec totalcount, if not zero then more runs} jnz @@lop pop ds |