;+--------------------------------------------
;|  mobileTunes v1.0 Song: ALOUETTE
;+--------------------------------------------
.nolist				;defines, includes, and equates
#DEFINE equ .equ
#DEFINE EQU .equ
#DEFINE end 
.end
#include "DoorsCS.inc"		;ROM call definitions
.list
PROGOBJ equ 05h
pendfile equ 0FF08h
    .org 9327h                  ;start address of program
;---------------------------------------------
INIT:
	xor d
	jr Start
	.dw 0
	.db $05,$00
	.dw Icon
	.dw 0
Start:
	ld hl,SongName
	rst 20h
	call _chkfindsym
	ld hl,ProgDataStart-Init+2
	add hl,de
	ld (pendfile+1),hl
	call _op1toop2
	ld hl,ProgMain
	rst 20h
	call _chkfindsym
	ret c
	ex de,hl
	ld (pendfile+6),hl
	ld a,1
	ld (pendfile),a
	ld a,8+1
	ld (pendfile+5),a
	ret
ProgMain:
	.db 05h,"MTUNES",0
SongName:
	.db 05h,"ALOUETTE",0
;------------
Icon:				;a 16x16 icon
	.db 00h,00h
	.db 00h,9eh
	.db 01h,92h
	.db 02h,92h
	.db 04h,0b6h
	.db 78h,80h
	.db 48h,80h
	.db 48h,80h
	.db 48h,98h
	.db 7ch,94h
	.db 7eh,94h
	.db 07h,90h
	.db 03h,0b0h
	.db 01h,80h
	.db 00h,80h
	.db 00h,00h
;-----------------------------------------------
PROGDATASTART:
  .dw 739d,160d
  .dw 658d,63d
  .dw 586d,134d
  .dw 586d,134d
  .dw 658d,63d
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 739d,56d
  .dw 987d,80d
  .dw 739d,160d
  .dw 658d,63d
  .dw 586d,134d
  .dw 586d,134d
  .dw 658d,63d
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 739d,106d
  .dw 1d,19443d
;----line 2
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 697d,59d
  .dw 998d,112d
  .dw 998d,112d
  .dw 998d,213d
  .dw 998d,112d
  .dw 553d,75d
  .dw 998d,112d
  .dw 697d,59d
  .dw 586d,71d
  .dw 658d,63d
  .dw 739d,106d
  .dw 998d,112d
  .dw 998d,112d
  .dw 998d,213d
  .dw 987d,42d
  .dw 987d,42d
  .dw 987d,80d
  .dw 998d,112d
  .dw 998d,112d
  .dw 998d,213d
  .dw 987d,42d
  .dw 987d,42d
  .dw 987d,80d
;----line 3
  .dw 739d,160d
  .dw 658d,63d
  .dw 586d,134d
  .dw 586d,134d
  .dw 658d,63d
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 739d,56d
  .dw 987d,80d
  .dw 739d,160d
  .dw 658d,63d
  .dw 586d,134d
  .dw 586d,134d
  .dw 658d,63d
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 739d,106d
  .dw 1d,19443d
;----line 2
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 697d,59d
  .dw 998d,112d
  .dw 998d,112d
  .dw 998d,213d
  .dw 998d,112d
  .dw 553d,75d
  .dw 998d,112d
  .dw 697d,59d
  .dw 586d,71d
  .dw 658d,63d
  .dw 739d,106d
  .dw 998d,112d
  .dw 998d,112d
  .dw 998d,213d
  .dw 987d,42d
  .dw 987d,42d
  .dw 987d,80d
  .dw 998d,112d
  .dw 998d,112d
  .dw 998d,213d
  .dw 987d,42d
  .dw 987d,42d
  .dw 987d,80d
;----line 3
  .dw 739d,160d
  .dw 658d,63d
  .dw 586d,134d
  .dw 586d,134d
  .dw 658d,63d
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 739d,56d
  .dw 987d,80d
  .dw 739d,160d
  .dw 658d,63d
  .dw 586d,134d
  .dw 586d,134d
  .dw 658d,63d
  .dw 739d,56d
  .dw 658d,63d
  .dw 586d,71d
  .dw 739d,106d
  .dw 1d,19443d
  .dw 0d,0d
.end
END