diff options
| author | Javier Degirolmo | 2012-08-14 22:49:32 -0300 |
|---|---|---|
| committer | Javier Degirolmo | 2012-08-14 22:49:32 -0300 |
| commit | 6ab75ecb612fbbe2ec939bd758bbbe620e6d5040 (patch) | |
| tree | 8122e6eeeacf4912b439dc77e48ea30181b48c01 /tester/video/bg.68k | |
| parent | 416f24632deee748d4789982262063bda598a1ef (diff) | |
Renamed Echo Tester directory from src-68k to tester
Diffstat (limited to 'tester/video/bg.68k')
| -rw-r--r-- | tester/video/bg.68k | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tester/video/bg.68k b/tester/video/bg.68k new file mode 100644 index 0000000..c64e287 --- /dev/null +++ b/tester/video/bg.68k @@ -0,0 +1,43 @@ +;**************************************************************************** +; DrawBG +; Draws the background +;**************************************************************************** + +DrawBG: + lea ($C00004), a2 + lea ($C00000), a1 + + lea (@BGData), a0 + move.l #$60000003, d0 + moveq #28-1, d6 +@YLoop: + move.l d0, (a2) + moveq #40-1, d7 +@XLoop: + move.w (a0)+, (a1) + dbf d7, @XLoop + add.l #$00800000, d0 + dbf d6, @YLoop + + lea (@BGData), a0 + move.l #$60000002, d0 + moveq #28-1, d6 +@YLoop2: + move.l d0, (a2) + moveq #40-1, d7 +@XLoop2: + move.w (a0)+, d1 + bset.l #11, d1 + move.w d1, (a1) + dbf d7, @XLoop2 + add.l #$00800000, d0 + dbf d6, @YLoop2 + + rts ; End of subroutine + +;**************************************************************************** +; Background data +;**************************************************************************** + +@BGData: + incbin "data/bg.bin" |
