projects
/
retrocrawl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sprite test
[retrocrawl]
/
src
/
amiga
/
main.c
diff --git
a/src/amiga/main.c
b/src/amiga/main.c
index
354f1d6
..
44112f5
100644
(file)
--- a/
src/amiga/main.c
+++ b/
src/amiga/main.c
@@
-4,7
+4,7
@@
#include "gfx.h"
#include "game.h"
#include "gfx.h"
#include "game.h"
-static uint32_t coplist[32];
+static uint32_t coplist[64];
int main(void)
{
int main(void)
{
@@
-23,21
+23,20
@@
int main(void)
wait_vblank();
wait_vblank();
- uint32_t *copptr = coplist;
+ init_copper(coplist, 32, COPPER_SINGLE);
for(i=0; i<NBPL; i++) {
uint32_t addr = (intptr_t)bplptr[i];
int reg = REGN_BPL1PTH + i * 4;
for(i=0; i<NBPL; i++) {
uint32_t addr = (intptr_t)bplptr[i];
int reg = REGN_BPL1PTH + i * 4;
- *copptr++ = COPPER_MOVE(reg, addr >> 16);
- *copptr++ = COPPER_MOVE(reg + 2, addr);
+ add_copper(COPPER_MOVE(reg, addr >> 16));
+ add_copper(COPPER_MOVE(reg + 2, addr));
}
}
- *copptr = COPPER_END;
- REG32_COP1LC = (uint32_t)coplist;
- REG_COPJMP1 = 0;
-
- REG_DMACON = SETBITS(DMA_BPL | DMA_COPPER | DMA_BLITTER | DMA_MASTER);
+ *copperlist_end = COPPER_END;
game_init();
game_init();
+ wait_vblank();
+ REG_DMACON = SETBITS(DMA_BPL | DMA_COPPER | DMA_BLITTER | DMA_SPRITE | DMA_MASTER);
+
for(;;) {
wait_vblank();
game_draw();
for(;;) {
wait_vblank();
game_draw();