1
0
mirror of https://frontier.innolan.net/github/AmigaExamples.git synced 2025-11-20 04:07:47 +00:00

Cleaning up

This commit is contained in:
alpine9000
2016-03-23 13:59:04 +11:00
parent 057afda8eb
commit 09b5237d6a
6 changed files with 35 additions and 19 deletions

View File

@ -6,7 +6,7 @@ HAM_MODE=1
BOOTBLOCK_ASM=alpine_bootblock.s
OBJS=out/init.o out/utils.o out/trackloader.o out/image.o
OBJS=out/init.o out/utils.o out/trackloader.o out/image.o out/blitter.o
ifeq ($(INTERLACE),0)
NOINTERLACE_EXTRA=mr8.png

View File

@ -1,7 +1,8 @@
include "includes.i"
xref LoadNextImage
xref LoadModule
xdef LoadNextImage
xdef LoadModule
xdef SetupImage
LoadNextImage:
movem.l d0-a6,-(sp)

View File

@ -1,7 +1,7 @@
include "includes.i"
xref Init
xdef Init
section CODE
;; custom chip base globally in a6

View File

@ -1,14 +1,14 @@
include "includes.i"
include "P6112-Options.i"
xref PokeBitplanePointers
xref Level3InterruptHandler
xref copperList
xref copperListAlternate
xref bitplanesp1
xref bitplanesp2
xref bitplanesp3
xref Module1
xdef PokeBitplanePointers
xdef Level3InterruptHandler
xdef copperList
xdef copperListAlternate
xdef bitplanesp1
xdef bitplanesp2
xdef bitplanesp3
xdef Module1
byteMap:
dc.l Entry
@ -36,6 +36,16 @@ Entry:
jsr P61_Init
move.w #(INTF_SETCLR|INTF_VERTB|INTF_INTEN),INTENA(a6)
move.l bitplanesp2,a0 ; setup an empty bitplane
move.l #IMAGESIZE,d0
jsr ClearMemory ; clear it
jsr WaitBlitter ; make sure it's clear
move.l a0,a1
bsr SetupImage ; select it
jsr Init ; enable the playfield
move.l #50*10,d0
.loop:
@ -44,7 +54,7 @@ Entry:
jsr LoadNextImage
jsr Init
.mainLoop:
jsr WaitVerticalBlank

View File

@ -1,6 +1,6 @@
*** MFMLoader.S by Photon *** ;requires a6=$dff002
xref LoadMFMB
xdef LoadMFMB
MFMsync equ $4489 ;AmigaDOS standard sync marker.
MFMlen equ 12980 ;Legacy trackdata read length in bytes

View File

@ -1,6 +1,7 @@
xref WaitVerticalBlank
xref WaitRaster
xref Depack
xdef WaitVerticalBlank
xdef WaitRaster
xdef Depack
WaitVerticalBlank:
movem.l d0-a6,-(sp)
@ -10,7 +11,8 @@ WaitVerticalBlank:
bne.b .loop
movem.l (sp)+,d0-a6
rts
WaitRaster: ;wait for rasterline d0.w. Modifies d0-d2/a0.
movem.l d0-a6,-(sp)
move.l #$1ff00,d2
@ -24,6 +26,7 @@ WaitRaster: ;wait for rasterline d0.w. Modifies d0-d2/a0.
movem.l (sp)+,d0-a6
rts
Depack:
;a0 = input buffer to be decompressed. Must be 16-bit aligned!
;a1 = output buffer. Points to the end of the data at exit
@ -33,4 +36,6 @@ Depack:
rts
;; this is one FAST decompression routine!
include "../tools/external/doynamite68k/depacker_doynax.asm"
include "../tools/external/doynamite68k/depacker_doynax.asm"