|
|
@ -0,0 +1,120 @@ |
|
|
|
INCLUDE "hardware.inc" |
|
|
|
|
|
|
|
; SCENE.Z80 |
|
|
|
; |
|
|
|
; Map Source File. |
|
|
|
; |
|
|
|
; Info: |
|
|
|
; Section : ROM0 |
|
|
|
; Bank : 0 |
|
|
|
; Map size : 20 x 18 |
|
|
|
; Tile set : C:\Users\case\Downloads\woods.gbr |
|
|
|
; Plane count : 1 plane (8 bits) |
|
|
|
; Plane order : Tiles are continues |
|
|
|
; Tile offset : 0 |
|
|
|
; Split data : No |
|
|
|
; |
|
|
|
; This file was generated by GBMB v1.8 |
|
|
|
|
|
|
|
sceneWidth EQU 20 |
|
|
|
sceneHeight EQU 18 |
|
|
|
|
|
|
|
SECTION "BG0", ROM0 |
|
|
|
|
|
|
|
bg: |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $01,$02,$02,$03,$00,$00,$00,$00,$01,$02 |
|
|
|
DB $02,$02,$02,$02,$02,$0A,$03,$00,$00,$00 |
|
|
|
DB $07,$09,$09,$08,$00,$00,$00,$00,$07,$09 |
|
|
|
DB $09,$09,$09,$09,$09,$0B,$08,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$0C,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$0A,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$0B,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$0C,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$0A,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$01,$02,$02,$02,$02,$02 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$07,$09,$09,$09,$09,$09 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$01,$02,$02,$02 |
|
|
|
DB $02,$02,$03,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$07,$09,$09,$09 |
|
|
|
DB $09,$09,$08,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $01,$02,$02,$02,$02,$02,$02,$02,$02,$02 |
|
|
|
DB $02,$02,$02,$02,$02,$02,$02,$02,$02,$02 |
|
|
|
DB $04,$06,$06,$06,$06,$06,$06,$06,$06,$06 |
|
|
|
DB $06,$06,$06,$06,$06,$06,$06,$06,$06,$06 |
|
|
|
bg_end: |
|
|
|
|
|
|
|
bg_tiles: |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $FF,$FF,$DF,$80,$FD,$80,$77,$40 |
|
|
|
DB $3F,$3F,$22,$3D,$20,$3F,$28,$37 |
|
|
|
DB $FF,$FF,$DF,$00,$FD,$00,$F7,$00 |
|
|
|
DB $FF,$FF,$40,$BF,$01,$FE,$10,$EF |
|
|
|
DB $FF,$FF,$FB,$01,$BF,$01,$EE,$02 |
|
|
|
DB $FC,$FC,$44,$BC,$04,$FC,$14,$EC |
|
|
|
DB $22,$3D,$30,$2F,$24,$3B,$20,$3F |
|
|
|
DB $20,$3F,$32,$2D,$20,$3F,$28,$37 |
|
|
|
DB $44,$BC,$0C,$F4,$24,$DC,$04,$FC |
|
|
|
DB $04,$FC,$4C,$B4,$04,$FC,$14,$EC |
|
|
|
DB $40,$BF,$02,$FD,$20,$DF,$00,$FF |
|
|
|
DB $08,$F7,$40,$BF,$02,$FD,$10,$EF |
|
|
|
DB $20,$3F,$22,$3D,$10,$1F,$0F,$0F |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $04,$FC,$44,$BC,$08,$F8,$F0,$F0 |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $40,$BF,$02,$FD,$20,$DF,$FF,$FF |
|
|
|
DB $00,$00,$00,$00,$00,$00,$00,$00 |
|
|
|
DB $FF,$FF,$FF,$81,$FF,$81,$FF,$81 |
|
|
|
DB $FF,$FF,$FF,$FF,$FF,$FF,$FF,$81 |
|
|
|
DB $FF,$81,$FF,$81,$FF,$FF,$FF,$FF |
|
|
|
DB $FF,$FF,$FF,$81,$FF,$81,$FF,$81 |
|
|
|
DB $FF,$FF,$FF,$FF,$FF,$FF,$FF,$81 |
|
|
|
DB $FF,$81,$FF,$81,$FF,$FF,$FF,$FF |
|
|
|
bg_tiles_end: |
|
|
|
|
|
|
|
BG_Init:: |
|
|
|
; copy map |
|
|
|
ld e, 18 |
|
|
|
ld bc, _SCRN0 |
|
|
|
ld hl, bg |
|
|
|
.copy_map_row: |
|
|
|
ld d, 20 |
|
|
|
call memcpy |
|
|
|
dec e |
|
|
|
jr z, .done |
|
|
|
ld d, 32 - 20 |
|
|
|
.skip: |
|
|
|
; skip over trailing part in vram |
|
|
|
inc c |
|
|
|
jr nz, .nocarry |
|
|
|
inc b |
|
|
|
.nocarry: |
|
|
|
dec d |
|
|
|
jr nz, .skip |
|
|
|
jr .copy_map_row |
|
|
|
.done: |
|
|
|
|
|
|
|
; copy tiles |
|
|
|
ld hl, bg_tiles |
|
|
|
ld bc, _VRAM |
|
|
|
ld d, bg_tiles_end - bg_tiles |
|
|
|
call memcpy |
|
|
|
|
|
|
|
ret |