From 17662a6e812d24ff3bcdf969a936b6411ff35bb8 Mon Sep 17 00:00:00 2001 From: alpine9000 Date: Sat, 27 Feb 2016 14:18:43 +1100 Subject: [PATCH] Removed some emacs auto-save files --- .gitignore | 4 ++- 001.simple_image/#image.s# | 71 -------------------------------------- 001.simple_image/.#image.s | 1 - 3 files changed, 3 insertions(+), 73 deletions(-) delete mode 100644 001.simple_image/#image.s# delete mode 120000 001.simple_image/.#image.s diff --git a/.gitignore b/.gitignore index bb875a0..cfa0b43 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ out/ bin/ -*~ \ No newline at end of file +*~ +#*# +.#* \ No newline at end of file diff --git a/001.simple_image/#image.s# b/001.simple_image/#image.s# deleted file mode 100644 index bb432ca..0000000 --- a/001.simple_image/#image.s# +++ /dev/null @@ -1,71 +0,0 @@ - include ../include/registers.i - include hardware/dmabits.i - include hardware/intbits.i - -LVL3_INT_VECTOR equ $6c -SCREEN_WIDTH_BYTES equ (320/8) -SCREEN_BIT_DEPTH equ 4 - - -entry: - lea level3InterruptHandler,a3 - move.l a3,LVL3_INT_VECTOR - - ;; install copper list and enable DMA - lea CUSTOM,a1 - lea copper(pc),a0 - move.l a0,cop1lc(a1) - move.w COPJMP1(a1),d0 - move.w #(DMAF_SETCLR!DMAF_COPPER!DMAF_RASTER!DMAF_MASTER),dmacon(a1) - -.mainLoop: - bra.b .mainLoop - -level3InterruptHandler: - movem.l d0-a6,-(sp) - -.checkVerticalBlank: - lea CUSTOM,a5 - move.w INTREQR(a5),d0 - and.w #INTF_VERTB,d0 - beq.s .checkCopper - -.verticalBlank: - move.w #INTF_VERTB,INTREQ(a5) ; Clear interrupt bit - -.resetBitplanePointers: - lea bitplanes,a1 - lea $dff0e0,a2 - moveq #SCREEN_BIT_DEPTH,d0 -.bitplaneloop: - move.l a1,(a2) - lea SCREEN_WIDTH_BYTES(a1),a1 ; Bit plane data is interleaved - addq #4,a2 - dbra d0,.bitplaneloop - -.checkCopper: - lea CUSTOM,a5 - move.w INTREQR(a5),d0 - and.w #INTF_COPER,d0 - beq.s .interruptComplete -.copperInterrupt: - move.w #INTF_COPER,INTREQ(a5) ; Clear interrupt bit - -.interruptComplete: - movem.l (sp)+,d0-a6 - rte - -copper: - dc.w DIWSTRT,$2c81 - dc.w DIWSTOP,$2cc1 - dc.w BPLCON0,(SCREEN_BIT_DEPTH<<12)|$200 ; Set color depth and enable COLOR - dc.w BPL1MOD,SCREEN_WIDTH_BYTES*SCREEN_BIT_DEPTH-SCREEN_WIDTH_BYTES - dc.w BPL2MOD,SCREEN_WIDTH_BYTES*SCREEN_BIT_DEPTH-SCREEN_WIDTH_BYTES - - include "out/image-copper.s" - - dc.l $fffffffe - -bitplanes: - incbin "out/image-data.bin" - \ No newline at end of file diff --git a/001.simple_image/.#image.s b/001.simple_image/.#image.s deleted file mode 120000 index 2a49d9d..0000000 --- a/001.simple_image/.#image.s +++ /dev/null @@ -1 +0,0 @@ -alex@blizzard.local.78583 \ No newline at end of file