kolibrios-fun/programs/games/rstearth/show_base.inc
Marat Zakiyanov (Mario79) 0ce1475dad Rusty Earth - prototype of the game
git-svn-id: svn://kolibrios.org@5253 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-12-21 20:22:09 +00:00

50 lines
1000 B
PHP

;---------------------------------------------------------------------
;copy_base_24bpp:
; DEBUGF 1, "copy_base_24bpp\n"
; push ecx
; mov esi,[eax+28] ; RAW area
; add esi,eax
; add esi,ebp
; mov edi,buffer_area
; mov ecx,SPRITE_SIZE_X*SPRITE_SIZE_Y
; cld
;--------------------------------------
;@@:
; lodsd
; and eax,0xffffff
; dec esi
; stosd
; dec ecx
; jnz @b
;
; pop ecx
; DEBUGF 1, "copy_base_24bpp end\n"
; ret
;---------------------------------------------------------------------
copy_base_8bpp:
; DEBUGF 1, "copy_base_8bpp\n"
push ecx
mov esi,[eax+28] ; RAW area
add esi,eax
add esi,ebp
mov ebp,[eax+20] ; RAW palette
add ebp,eax
mov edi,buffer_area
mov ecx,SPRITE_SIZE_X*SPRITE_SIZE_Y
cld
;--------------------------------------
@@:
lodsb
movzx eax,al
shl eax,2
mov eax,[eax+ebp]
stosd
dec ecx
jnz @b
pop ecx
; DEBUGF 1, "copy_base_8bpp end\n"
ret
;---------------------------------------------------------------------