Mercurial > repos > ghero
changeset 13:30f1d4c90900
Get direct color sample working
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 08 Sep 2013 12:12:41 -0700 |
parents | 580b64af2241 |
children | 166d58b234c3 |
files | directcolor.s68 |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/directcolor.s68 Fri Sep 06 19:13:46 2013 -0700 +++ b/directcolor.s68 Sun Sep 08 12:12:41 2013 -0700 @@ -109,9 +109,15 @@ - move #$2300, SR + ;move #$2300, SR + move.b #0, $a10003 +WaitStart: + btst.b #5, $a10003 + bne.s WaitStart Top: + move.l #$40000000, (a5) ;Setup VRAM writes + lea BgData(pc), a0 ;set DMA source address move.l a0, d7 sub.l #258, d7 @@ -133,10 +139,7 @@ move.w #$8F00, (a5) ;set auto-increment to 0 - move.w #$8174, (a5) - - - move.l #$40000000, (a5) ;Setup VRAM writes + move.w #$8154, (a5) addq #1, a5 WaitVBlank: btst.b #3, (a5)