		DEVICE ZXSPECTRUM48
		org $8000	
          di
          ld sp,0
          ld hl,level1
          ld a,(hl)

        maplist: DEFW level1, level2, 0

level1: DEFB 5, 19  ; Map Size Y, Size X
        DEFB 2, 1  ; Initial man position Y,X
        DEFB 1  ; number of goals for this level
        DEFB $08, $08, $08, $08, $08, $08, $08, $08, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80  ; Map data, 1 DEFB per map row
        DEFB $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $40, $80
        DEFB $80, $10, $00, $00, $00, $00, $00, $00, $00, $00, $20, $80, $80, $80, $80, $80, $80, $80, $80
        DEFB $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $80, $08, $08, $08, $08, $08, $08, $08
        DEFB $08, $08, $08, $08, $08, $08, $08, $08, $80, $80, $80, $80, $08, $08, $08, $08, $08, $08, $08

        ;               ###########
        ;       #########        .#
        ;       #@        $########
        ;       #########  #
        ;               #### 


level2: DEFB 11, 19  ; Map Size Y, Size X
        DEFB 8, 11  ; Initial man position Y,X
        DEFB 6  ; number of goals for this level
        DEFB $08, $08, $08, $08, $80, $80, $80, $80, $80, $08, $08, $08, $08, $08, $08, $08, $08, $08, $08  ; Map data, 1 DEFB per map row
        DEFB $08, $08, $08, $08, $80, $00, $00, $00, $80, $08, $08, $08, $08, $08, $08, $08, $08, $08, $08
        DEFB $08, $08, $08, $08, $80, $20, $00, $00, $80, $08, $08, $08, $08, $08, $08, $08, $08, $08, $08
        DEFB $08, $08, $80, $80, $80, $00, $00, $20, $80, $80, $08, $08, $08, $08, $08, $08, $08, $08, $08
        DEFB $08, $08, $80, $00, $00, $20, $00, $20, $00, $80, $08, $08, $08, $08, $08, $08, $08, $08, $08
        DEFB $80, $80, $80, $00, $80, $00, $80, $80, $00, $80, $08, $08, $08, $80, $80, $80, $80, $80, $80
        DEFB $80, $00, $00, $00, $80, $00, $80, $80, $00, $80, $80, $80, $80, $80, $00, $00, $40, $40, $80
        DEFB $80, $00, $20, $00, $00, $20, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $40, $40, $80
        DEFB $80, $80, $80, $80, $80, $00, $80, $80, $80, $00, $80, $10, $80, $80, $00, $00, $40, $40, $80
        DEFB $08, $08, $08, $08, $80, $00, $00, $00, $00, $00, $80, $80, $80, $80, $80, $80, $80, $80, $80
        DEFB $08, $08, $08, $08, $80, $80, $80, $80, $80, $80, $80, $08, $08, $08, $08, $08, $08, $08, $08

        ;           #####
        ;           #   #
        ;           #$  #
        ;         ###  $##
        ;         #  $ $ #
        ;       ### # ## #   ######
        ;       #   # ## #####  ..#
        ;       # $  $          ..#
        ;       ##### ### #@##  ..#
        ;           #     #########
        ;           ####### 