projects
/
ld45_start_nothing
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
at last sprites "work"
[ld45_start_nothing]
/
src
/
gfx.asm
diff --git
a/src/gfx.asm
b/src/gfx.asm
index
ca5cf74
..
06ff5e4
100644
(file)
--- a/
src/gfx.asm
+++ b/
src/gfx.asm
@@
-17,8
+17,8
@@
bits 32
section .text
bits 32
section .text
-VIDMEM_ADDR equ 0a0000h
-FRAMEBUF_ADDR equ 090000h
+%define GFX_ASM_
+%include "gfx.inc"
REG_CRTC_STATUS equ 3dah
CRTC_VBLANK_BIT equ 08h
REG_CRTC_STATUS equ 3dah
CRTC_VBLANK_BIT equ 08h
@@
-26,9
+26,8
@@
CRTC_VBLANK_BIT equ 08h
REG_DAC_ADDR equ 3c8h
REG_DAC_DATA equ 3c9h
REG_DAC_ADDR equ 3c8h
REG_DAC_DATA equ 3c9h
+ extern sprsheet
extern sprsheet_cmap
extern sprsheet_cmap
- extern sprsheet_tiles
-
global init_gfx
init_gfx:
global init_gfx
init_gfx:
@@
-119,7
+118,7
@@
slow_sprite:
add edi, eax ; di <- (y - 16) * 320 + (x - 16)
add edi, FRAMEBUF_ADDR
add edi, eax ; di <- (y - 16) * 320 + (x - 16)
add edi, FRAMEBUF_ADDR
- mov esi, sprsheet_tiles
+ mov esi, sprsheet
; calculate sprite id offset (each spr is 32*32=1k)
mov eax, [ebp + 8]
shl eax, 10
; calculate sprite id offset (each spr is 32*32=1k)
mov eax, [ebp + 8]
shl eax, 10