; Program to Create Sound .org $E000 .db $b6, $b7, $24, $2a, $8d, $9c, $42, $b0 .db $53, $6c, $90, $64, $89, $a8, $f9, $70 MAIN: ld hl, SAMPLE ; Memory Location to ROM Sample ld bc, 1377 ; Number of Samples push bc replay: ld d, 8 ; Sub-Samples ld a, (hl) ; load an 8 bit set ld e, a ; store a into e subsamp: ld a,e ; grab e into a out ($fc),a delay: ld bc, 50 dec bc ld a,c or b jp nz, delay RLA ; shift left dec d ; countdown ld e, a ; drop a into e ld a, d ; check on d jp nz, subsamp ; repeat until 8 samples pop bc dec bc ; Decrement Sample Counter push bc ld a, c ; Load C or b ; Is BC Zero jp nz, replay ; If it isn't zero, keep playing FINISH: jp FINISH SAMPLE: .db $6B,$51,$59,$99,$95,$8D,$99,$35,$95,$53,$55,$53,$55,$36,$2D,$32 .db $D3,$96,$53,$6A,$66,$96,$36,$58,$E8,$E6,$4C,$E6,$2D,$2C,$B5,$93 .db $52,$C9,$65,$A6,$B3,$39,$39,$A9,$C5,$4B,$53,$33,$36,$33,$35,$66 .db $99,$94,$D3,$64,$CA,$AC,$A7,$2A,$D6,$34,$B3,$32,$A9,$6B,$36,$63 .db $95,$63,$93,$5A,$66,$8E,$65,$56,$33,$55,$33,$4B,$4C,$9C,$AC,$D4 .db $B4,$B3,$47,$32,$AA,$B3,$39,$59,$56,$65,$1B,$4B,$4B,$59,$55,$55 .db $52,$99,$AA,$CA,$A6,$66,$71,$65,$55,$69,$5A,$B5,$4C,$D5,$32,$AA .db $73,$54,$CB,$2B,$35,$36,$63,$19,$CA,$A9,$9A,$65,$94,$E6,$6B,$34 .db $AA,$73,$19,$CE,$35,$9C,$63,$31,$CA,$D6,$AA,$94,$9C,$C6,$73,$54 .db $D3,$49,$A6,$34,$D7,$39,$54,$A4,$CE,$33,$9A,$CB,$59,$66,$31,$96 .db $B5,$9A,$A5,$26,$63,$AC,$E5,$32,$CE,$51,$8C,$B5,$AD,$4A,$A8,$CC .db $E6,$B3,$58,$CD,$2C,$A6,$59,$9B,$5A,$A4,$A5,$54,$E7,$39,$49,$65 .db $96,$63,$32,$CD,$AD,$52,$A8,$D7,$31,$CE,$32,$9B,$2B,$98,$D2,$B5 .db $65,$99,$4A,$53,$39,$CC,$69,$A5,$95,$CA,$69,$65,$35,$9A,$CA,$95 .db $56,$B9,$C6,$63,$4A,$B4,$D5,$54,$96,$AB,$55,$4A,$A5,$66,$AB,$4A .db $99,$59,$66,$59,$9A,$AA,$6A,$CD,$33,$4B,$4D,$2A,$AA,$AC,$CB,$53 .db $53,$2A,$AA,$6A,$6A,$AA,$AA,$AC,$A9,$96,$96,$5B,$4B,$39,$54,$D2 .db $AA,$A6,$AA,$B5,$65,$95,$65,$94,$A6,$9A,$CA,$59,$6A,$A5,$AA,$AA .db $AB,$2A,$CA,$5A,$A9,$A6,$B3,$53,$4B,$2D,$4D,$2B,$4B,$54,$B2,$CA .db $5A,$96,$A5,$A5,$AC,$A6,$5A,$53,$4D,$65,$69,$6A,$CC,$D3,$52,$5B .db $4B,$29,$69,$AC,$D5,$54,$B2,$96,$55,$55,$4D,$55,$55,$95,$55,$55 .db $69,$59,$69,$69,$69,$69,$66,$9A,$9A,$AA,$A9,$A6,$AA,$55,$55,$55 .db $55,$54,$D3,$53,$55,$65,$53,$4D,$34,$D6,$69,$A9,$AA,$96,$59,$65 .db $A5,$A5,$AA,$96,$95,$59,$54,$B4,$D5,$53,$52,$D5,$53,$4B,$65,$55 .db $56,$A5,$66,$AA,$AA,$A5,$55,$56,$55,$A5,$A9,$95,$4D,$4B,$2D,$2A .db $CB,$32,$D2,$B5,$54,$B2,$CB,$55,$65,$96,$CA,$5A,$5A,$6A,$A6,$99 .db $95,$65,$A5,$55,$55,$35,$34,$D2,$CB,$4D,$35,$4C,$AD,$36,$9A,$5A .db $6A,$65,$55,$65,$A5,$AA,$AA,$AA,$9A,$59,$55,$35,$2B,$55,$55,$54 .db $D5,$4D,$55,$55,$59,$55,$96,$AA,$6A,$AA,$AC,$A6,$A5,$AA,$AA,$AA .db $AA,$65,$65,$55,$55,$55,$55,$55,$55,$55,$55,$55,$66,$AA,$55,$56 .db $99,$65,$AA,$AA,$AA,$9A,$96,$55,$55,$55,$55,$35,$55,$55,$55,$55 .db $55,$55,$65,$55,$6D,$2A,$54,$D6,$AA,$AA,$A6,$66,$53,$69,$2A,$77 .db $32,$32,$57,$56,$A5,$52,$A9,$95,$DA,$4A,$CF,$69,$12,$95,$DB,$2A .db $56,$65,$38,$BB,$41,$9B,$9D,$41,$1A,$D7,$A9,$4A,$D5,$29,$99,$DA .db $13,$AF,$68,$84,$D6,$ED,$24,$D6,$59,$1C,$6F,$80,$9E,$F6,$40,$2E .db $db,$68,$9A,$B5,$48,$B5,$9E,$42,$7F,$B4,$20,$AF,$AD,$24,$B6,$A9 .db $15,$E3,$6C,$82,$FF,$28,$4,$FB,$99,$45,$B5,$92,$55,$C9,$EC,$7 .db $FD,$40,$1D,$ED,$81,$6F,$52,$46,$E5,$C1,$F4,$0F,$B6,$80,$B5,$BA .db $43,$ED,$48,$56,$AD,$83,$F0,$3E,$7E,$1,$D3,$E8,$2E,$D6,$82,$D5 .db $5E,$7,$E0,$73,$F8,$7,$17,$C2,$D5,$DA,$0B,$35,$5E,$0F,$C0,$E3 .db $F8,$1C,$1F,$83,$8B,$F0,$4D,$36,$9C,$1F,$81,$C7,$F8,$18,$3F,$7 .db $0F,$E0,$C9,$D9,$3C,$1F,$83,$87,$F0,$58,$3F,$0E,$0F,$C5,$49,$E4 .db $B8,$3F,$3,$87,$F0,$60,$FE,$14,$5F,$8A,$8D,$C9,$98,$3F,$0B,$0F .db $E0,$C0,$FE,$50,$7F,$1A,$0F,$0D,$9C,$1F,$0A,$8F,$E1,$80,$FE,$50 .db $3F,$9C,$0F,$8E,$87,$0F,$C1,$63,$F8,$60,$7E,$B0,$3E,$B8,$0D,$9B .db $82,$E0,$FC,$30,$7F,$18,$1F,$9C,$7,$BF,$4,$57,$E2,$4B,$87,$C3 .db $83,$F3,$C0,$B1,$F0,$53,$F8,$42,$7E,$34,$57,$0F,$8E,$7,$EE,$3 .db $3F,$84,$2F,$D6,$5,$B6,$98,$E3,$1F,$8C,$0F,$BE,$0,$3F,$98,$1F .db $B5,$3,$B3,$94,$A3,$8F,$8E,$0F,$7E,$10,$3D,$CA,$27,$D3,$13,$4D .db $CA,$93,$87,$9E,$8,$7E,$70,$39,$E3,$23,$CF,$85,$1C,$DC,$A2,$C7 .db $B7,$0,$FE,$70,$23,$F3,$83,$8F,$8E,$0C,$7C,$70,$B1,$E7,$C1,$0F .db $BE,$8,$3C,$F4,$71,$E3,$A2,$97,$59,$29,$8F,$7C,$10,$FC,$E1,$81 .db $B7,$95,$0E,$9D,$31,$5A,$B1,$63,$1D,$F4,$21,$F7,$C2,$6,$DF,$4A .db $8C,$AD,$55,$53,$94,$AB,$1E,$B2,$14,$EE,$71,$0C,$73,$B6,$38,$A9 .db $65,$AB,$52,$99,$C7,$CD,$41,$1D,$EA,$A2,$A5,$95,$D6,$CA,$52,$8D .db $4D,$55,$96,$73,$35,$16,$6C,$A9,$4C,$E6,$AB,$55,$65,$54,$9A,$6D .db $54,$D3,$4E,$A4,$5A,$69,$A9,$C6,$A5,$57,$1D,$55,$44,$A7,$6A,$CD .db $32,$AD,$65,$2A,$6B,$56,$A5,$25,$5B,$75,$94,$49,$55,$66,$AA,$A9 .db $9D,$65,$25,$59,$CA,$D4,$A5,$35,$AD,$5A,$54,$56,$B4,$B5,$56,$54 .db $D4,$A6,$AC,$AA,$AA,$A5,$35,$6D,$55,$44,$CA,$D6,$D5,$52,$96,$B5 .db $4A,$6B,$55,$35,$4A,$6A,$D5,$AA,$64,$55,$55,$6B,$2A,$99,$6A,$A9 .db $55,$6A,$AA,$A9,$55,$5A,$D6,$A9,$49,$55,$AA,$D5,$32,$D2,$AD,$52 .db $55,$57,$55,$2A,$55,$5A,$B4,$AA,$52,$AB,$5A,$AA,$AA,$AA,$AB,$54 .db $95,$6A,$D3,$2A,$96,$9A,$D6,$95,$28,$CA,$DA,$AA,$95,$55,$36,$AA .db $92,$D5,$AA,$AA,$95,$AB,$56,$A9,$26,$55,$5B,$55,$4A,$AA,$AB,$34 .db $A4,$AB,$57,$52,$92,$AA,$DD,$65,$25,$2A,$AE,$B2,$D4,$B2,$B1,$E6 .db $34,$C9,$E5,$98,$A6,$56,$D6,$64,$A9,$4D,$56,$99,$95,$6A,$E3,$8E .db $46,$3C,$EC,$91,$57,$36,$65,$53,$54,$CB,$55,$52,$66,$B4,$72,$CC .db $47,$BA,$92,$2B,$6A,$CD,$2A,$AA,$A9,$AB,$54,$C9,$AC,$E3,$8E,$4A .db $79,$CA,$52,$9C,$D5,$53,$2A,$A6,$55,$AA,$CA,$69,$AB,$0E,$71,$A5 .db $CE,$65,$29,$6D,$55,$55,$54,$D2,$AA,$AD,$4A,$6A,$AC,$C3,$9C,$63 .db $53,$9A,$52,$CD,$AA,$AA,$9A,$CA,$A9,$AB,$4A,$6A,$AA,$A8,$E7,$19 .db $55,$AA,$98,$AB,$56,$59,$58,$E6,$31,$D5,$94,$B3,$5A,$9C,$C7,$19 .db $95,$AC,$71,$95,$6B,$31,$9C,$63,$35,$59,$4C,$B3,$56,$69,$52,$CC .db $CB,$33,$55,$55,$55,$9A,$66,$AA,$65,$55,$66,$AC,$65,$66,$65,$58 .db $CC,$B2,$D5,$35,$4B,$2C,$E6,$38,$CC,$C7,$34,$CE,$35,$56,$AA,$A9 .db $55,$59,$55,$56,$A6,$65,$A5,$55,$33,$4C,$AA,$AA,$AB,$2A,$CB,$35 .db $32,$D5,$4C,$CC,$D5,$55,$59,$33,$35,$4D,$55,$55,$4D,$4D,$32,$AA .db $AA,$B3,$2A,$AA,$AA,$AA,$A6,$AA,$AB,$2D,$55,$55,$55,$55,$55,$55 .db $4E,$55,$58,$E5,$55,$32,$B2,$A6,$69,$A9,$A6,$AA,$AA,$AA,$AA,$B2 .db $CA,$AD,$33,$33,$4C,$D4,$D3,$4D,$53,$55,$53,$2A,$AA,$AA,$AA,$AA .db $AA,$AA,$AA,$A9,$5A,$69,$AA,$AA,$AC,$D5,$54,$CC,$AB,$4C,$AC,$B5 .db $35,$2C,$CC,$AA,$B2,$9A,$55,$96,$A6,$AA,$A6,$A5,$55,$AA,$AB,$2A .db $CD,$4B,$2A,$B2,$CB,$2A,$AA,$B4,$CC,$AA,$9A,$59,$69,$59,$65,$55 .db $59,$55,$55,$55,$56,$66,$AA,$AB,$2A,$AA,$AA,$A9,$9A,$6A,$AA,$AA .db $AA,$95,$55,$55,$55,$55,$55,$55,$55,$56,$55,$95,$A6,$A6,$AA,$AA .END