initial commit

This commit is contained in:
undergroundmonorail 2019-08-03 20:53:27 -04:00 committed by GitHub
parent f37f43c845
commit 1b65cc6f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1779 additions and 0 deletions

1385
BudgetBuster.z80 Normal file

File diff suppressed because it is too large Load Diff

4
compile.bat Normal file
View File

@ -0,0 +1,4 @@
rgbasm -o%~n1.obj %1
rgblink -m%~n1.map -n%~n1.sym -o%~n1.gb %~n1.obj
rgbfix -p255 -v %~n1.gb
pause

83
game over.z80 Normal file
View File

@ -0,0 +1,83 @@
; GAME OVER.Z80
;
; Map Source File.
;
; Info:
; Section : GameOver
; Bank : 0
; Map size : 32 x 18
; Tile set : D:\Desktop\gameboy dev\only one\tiles.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
GameOverLabelWidth EQU 32
GameOverLabelHeight EQU 18
GameOverLabelBank EQU 0
SECTION "GameOver", ROM0
GameOverLabel::
DB $06,$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 $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,$05,$00,$05
DB $00,$00,$05,$05,$00,$00,$05,$00,$00,$05
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$05
DB $00,$05,$00,$05,$00,$00,$05,$00,$05,$00
DB $00,$05,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$05,$00,$05,$00,$05,$00,$00,$05,$00
DB $05,$00,$00,$05,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$05,$00,$00,$05,$00,$00
DB $05,$00,$05,$00,$00,$05,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$05,$00,$00,$05
DB $00,$00,$05,$00,$05,$00,$00,$05,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$05,$00
DB $00,$00,$05,$05,$00,$00,$00,$05,$05,$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 $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 $00,$05,$00,$00,$00,$00,$05,$05,$00,$00
DB $00,$05,$05,$00,$00,$05,$05,$05,$05,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$05,$00,$00,$00,$05,$00,$00
DB $05,$00,$05,$00,$00,$05,$00,$05,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$05,$00,$00,$00,$05
DB $00,$00,$05,$00,$05,$05,$00,$00,$00,$05
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$05,$00,$00
DB $00,$05,$00,$00,$05,$00,$00,$00,$05,$05
DB $00,$05,$05,$05,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$05
DB $00,$00,$00,$05,$00,$00,$05,$00,$05,$00
DB $00,$05,$00,$05,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$05,$05,$05,$00,$00,$05,$05,$00,$00
DB $00,$05,$05,$00,$00,$05,$05,$05,$05,$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 $00,$00,$00,$00,$07,$08,$09,$0A,$0B,$0F
DB $00,$00,$00,$00,$00,$0C,$0D,$0E,$0C,$0F
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00
; End of GAME OVER.Z80

128
map.z80 Normal file
View File

@ -0,0 +1,128 @@
; MAP.Z80
;
; Map Source File.
;
; Info:
; Section : Map
; Bank : 0
; Map size : 32 x 32
; Tile set : D:\Desktop\gameboy dev\only one\tiles.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
MapLabelWidth EQU 32
MapLabelHeight EQU 32
MapLabelBank EQU 0
SECTION "Map", ROM0
MapLabel::
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $05,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$05,$00,$05,$05,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$05
DB $05,$00,$05,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$05,$00,$05,$05,$00,$00,$00
DB $00,$00,$05,$05,$05,$05,$00,$00,$00,$00
DB $00,$05,$05,$00,$05,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$05,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$05,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$05,$00,$00
DB $00,$00,$05,$05,$05,$00,$00,$00,$00,$00
DB $00,$05,$05,$05,$00,$00,$00,$00,$05,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$05
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $05,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$05,$00,$05,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $05,$00,$05,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$05,$00,$05,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$05,$00,$05,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$05,$00,$05,$00,$00
DB $00,$00,$05,$00,$00,$00,$00,$00,$00,$05
DB $00,$00,$00,$00,$05,$00,$05,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$05,$00,$05
DB $00,$00,$00,$00,$05,$00,$00,$00,$00,$00
DB $00,$05,$00,$00,$00,$00,$05,$00,$05,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$05
DB $00,$05,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$05,$00
DB $05,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$05,$00,$05,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $05,$00,$05,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$05,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$05,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$05,$00,$00,$00,$00
DB $05,$05,$05,$00,$00,$00,$00,$00,$00,$05
DB $05,$05,$00,$00,$00,$00,$05,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$05,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$05,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$05
DB $00,$05,$05,$00,$00,$00,$00,$00,$05,$05
DB $05,$05,$00,$00,$00,$00,$00,$05,$05,$00
DB $05,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$05,$00,$05,$05,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$05
DB $05,$00,$05,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$05,$07,$08,$09,$0A,$0B,$0F
DB $00,$00,$00,$00,$00,$0C,$0D,$0E,$0C,$0F
DB $00,$00,$00,$00,$05,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$05,$05,$05,$05,$05
DB $05,$05,$05,$05,$05,$05,$05,$05,$05,$05
DB $05,$05,$05,$05,$05,$05,$05,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$05,$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 $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 $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 $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 $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 $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 $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 $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 $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 $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$05,$05,$05,$05,$05,$05,$05,$05
DB $05,$05,$05,$05,$05,$05,$05,$05,$05,$05
DB $05,$05,$05,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00
; End of MAP.Z80

50
memory.z80 Normal file
View File

@ -0,0 +1,50 @@
;*
;* MEMORY.ASM - Memory Manipulation Code
;* by GABY. Inspired by Carsten Sorensen & others.
;*
;* V1.0 - Original release
;*
;If all of these are already defined, don't do it again.
IF !DEF(MEMORY_ASM)
MEMORY_ASM SET 1
SECTION "Memory Code",ROM0
mem_Set::
inc b
inc c
jr .skip
.loop ld [hl+],a
.skip dec c
jr nz,.loop
dec b
jr nz,.loop
ret
;***************************************************************************
;*
;* mem_Copy - "Copy" a memory region
;*
;* input:
;* hl - pSource
;* de - pDest
;* bc - bytecount
;*
;***************************************************************************
mem_Copy::
inc b
inc c
jr .skip
.loop ld a,[hl+]
ld [de],a
inc de
.skip dec c
jr nz,.loop
dec b
jr nz,.loop
ret
ENDC ;MEMORY1_ASM

49
sprite.inc Normal file
View File

@ -0,0 +1,49 @@
DMACODELOC EQU $ff80
OAMDATALOC EQU _RAM ; must be multiple of $100
OAMDATALOCBANK EQU OAMDATALOC/$100
OAMDATALENGTH EQU $A0
LoRamBase SET OAMDATALOC + OAMDATALENGTH ; low area of RAM for storing variables
LoByteVar: MACRO
\1 EQU LoRamBase
LoRamBase SET LoRamBase+1
ENDM
RSSET OAMDATALOC
SpriteAttr: MACRO
\1YAddr RB 1
\1XAddr RB 1
\1TileNum RB 1
\1Flags RB 1
ENDM
;set XAddr of sprite.
;format:
; PutSpriteXAddr SpriteName,r8
; PutSpriteXAddr SpriteName,n8
PutSpriteXAddr: MACRO
push af
ld a,\2
ld [\1XAddr],a
pop af
ENDM
;set YAddr of sprite.
;format:
; PutSpriteYAddr SpriteName,r8
; PutSpriteYAddr SpriteName,n8
PutSpriteYAddr: MACRO
push af
ld a,\2
ld [\1YAddr],a
pop af
ENDM
GetSpriteXAddr: MACRO
ld a,[\1XAddr]
ENDM
GetSpriteYAddr: MACRO
ld a,[\1YAddr]
ENDM

80
tiles.z80 Normal file
View File

@ -0,0 +1,80 @@
; EXPORT.Z80
;
; Tile Source File.
;
; Info:
; Section : Tiles
; Bank : 0
; Form : All tiles as one unit.
; Format : Gameboy 4 color.
; Compression : None.
; Counter : None.
; Tile size : 8 x 8
; Tiles : 0 to 25
;
; Palette colors : None.
; SGB Palette : None.
; CGB Palette : None.
;
; Convert to metatiles : No.
;
; This file was generated by GBTD v2.2
SECTION "Tiles", ROM0
; Start of tile array.
TileLabel::
DB $00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00
DB $FF,$FF,$81,$FF,$FF,$81,$FF,$81
DB $7E,$42,$7E,$42,$24,$24,$18,$18
DB $0F,$0F,$3D,$33,$7D,$43,$BD,$83
DB $BD,$83,$7D,$43,$3D,$33,$0F,$0F
DB $00,$00,$00,$00,$18,$18,$24,$3C
DB $24,$3C,$18,$18,$00,$00,$00,$00
DB $FF,$FF,$81,$A5,$81,$99,$A5,$A5
DB $81,$81,$99,$99,$81,$81,$FF,$FF
DB $FF,$FF,$85,$D1,$8B,$A1,$9D,$D9
DB $9B,$B9,$85,$D1,$8B,$A1,$FF,$FF
DB $00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$00,$00,$00,$00,$00,$00
DB $00,$00,$7E,$7E,$40,$40,$7E,$7E
DB $02,$02,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$40,$40,$40,$40
DB $40,$40,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$42,$42,$42,$42
DB $42,$42,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$42,$42,$7E,$7E
DB $48,$48,$6E,$6E,$6E,$6E,$00,$00
DB $00,$00,$7E,$7E,$40,$40,$7E,$7E
DB $40,$40,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$42,$42,$42,$42,$7E,$7E
DB $7E,$7E,$42,$42,$42,$42,$00,$00
DB $00,$00,$7E,$7E,$10,$10,$10,$10
DB $10,$10,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$40,$40,$4E,$4E
DB $42,$42,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$60,$60,$00,$00,$00,$00
DB $00,$00,$60,$60,$60,$60,$00,$00
DB $00,$00,$7E,$7E,$42,$42,$42,$42
DB $42,$42,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$70,$70,$50,$50,$10,$10
DB $10,$10,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$02,$02,$7E,$7E
DB $40,$40,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$02,$02,$7E,$7E
DB $02,$02,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$42,$42,$42,$42,$7E,$7E
DB $7E,$7E,$02,$02,$02,$02,$00,$00
DB $00,$00,$7E,$7E,$40,$40,$7E,$7E
DB $02,$02,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$40,$40,$7E,$7E
DB $42,$42,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$06,$06,$06,$06
DB $06,$06,$06,$06,$06,$06,$00,$00
DB $00,$00,$7E,$7E,$42,$42,$7E,$7E
DB $42,$42,$7E,$7E,$7E,$7E,$00,$00
DB $00,$00,$7E,$7E,$42,$42,$7E,$7E
DB $02,$02,$7E,$7E,$7E,$7E,$00,$00
; End of tiles.Z80