// ============================================
// output - Disassembled Source
// ============================================
// KickAssembler syntax
// Generated by Restore 64 v0.2.1 alpha build 298, 2026-04-11 21:35:13
// https://restore64.dev by datucker / Rabenauge
//
// Load address: $0700  End: $2a73  (9076 bytes)
// Crunched with Exomizer v2/v3 — depacked by emulation
// Packer entry: $080b (via BASIC SYS 2059)
// Entry point:  $20f9 (8441)
//
// Code: 3032 bytes, Data: 6044 bytes
// Labels: 299, Subroutines: 30
//
// Cross-references: all OK
// ============================================


// --- Region $1090-$16d0 ---
.pc = $1090 "sub_1090"
// Referenced by: jsr from $22d4

sub_1090:
        jsr sub_135f
        lda #$0f
        sta smc_10dc                                // SMC: modifies $10dc
        lda #$00
        sta smc_10e1                                // SMC: modifies $10e1
        sta smc_10da                                // SMC: modifies $10da
        ldy #$0f

loc_10a2:
        sta $1006,y
        dey
        bpl loc_10a2
        ldy #$0b

loc_10aa:
        sta.abs $00f2,y
        dey
        bpl loc_10aa
        ldy #$02

loc_10b2:
        lda #$fe
        sta $1019,y
        lda #$04
        sta.abs $00f5,y
        lda #$01
        sta $101c,y
        sta $1025,y
        sta $101f,y
        sta $1022,y
        dey
        bpl loc_10b2
        sta $1014
        sta $1028

loc_10d3:
        rts
// Referenced by: jsr from $2107, $2114, $2159, $2186

sub_10d4:
        lda $1014
        beq loc_10d3
.label smc_10da = * + 1
        lda #$30                                    // !SMC: modified by $109d, $15ec
.label smc_10dc = * + 1
        ora #$0f                                    // !SMC: modified by $1095
        sta $d418
.label smc_10e1 = * + 1
        lda #$f4                                    // !SMC: modified by $109a, $121b
        sta $d417
.label smc_10e6 = * + 1
        lda #$2c                                    // !SMC: modified by $15f2, $1630
        sta $d416
        clc
        ldx #$02

loc_10ed:
        ldy $1016,x
        lda $105c,x
        adc $100d,x
        sta $d400,y
        lda $105f,x
        adc #$00
        sta $d401,y
        lda $1065,x
        sta $d403,y
        lda $1062,x
        sta $d402,y
        lda $106e,x
        sta $d406,y
        lda $106b,x
        sta $d405,y
        lda $1068,x
        and $1019,x
        sta $d404,y
        dex
        bpl loc_10ed
        ldy $1006
        beq loc_1137
        dec $1028
        bne loc_1137
        sty $1028
        dec smc_10dc
        bmi loc_117e

loc_1137:
        lda #$00
        sta $1013
        dec $1015
        bpl loc_1149
        lda #$0b
        sta $1015
        dec $1013

loc_1149:
        ldx #$02

loc_114b:
        lda $1025,x
        beq loc_117a
        lda $1013
        bpl loc_116c
        lda $100a,x
        bne loc_1167
        lda $101f,x
        cmp $1035,x
        bne loc_1167
        lda #$fe
        sta $1019,x

loc_1167:
        dec $101f,x
        beq loc_1192

loc_116c:
        lda $103b,x
        cmp #$ff
        beq loc_1176
        jsr sub_1375

loc_1176:
        lda #$00
        sta $fb,x

loc_117a:
        dex
        bpl loc_114b
        rts

loc_117e:
        ldx #$02

loc_1180:
        lda #$00
        ldy $1016,x
        sta $d401,y
        sta $d400,y
        dex
        bpl loc_1180
        sta $1014
        rts

loc_1192:
        ldy $f2,x
        lda $1797,y
        sta $f0
        lda $1798,y
        sta $f1
        lda #$00
        sta $1044,x
        ldy $f5,x
        lda ($f0),y
        cmp #$ff
        beq loc_11ae
        jmp loc_1214

loc_11ae:
        dec $1022,x
        beq loc_11bc
        ldy #$00
        sty $f5,x
        lda ($f0),y
        jmp loc_1214

loc_11bc:
        txa
        asl
        tay
        lda $1791,y
        sta $f0
        lda $1792,y
        sta $f1
        ldy $f8,x
        lda ($f0),y
        cmp #$e0
        bcc loc_11db
        and #$1f
        tay
        sty $f8,x
        lda ($f0),y
        jmp loc_11ec

loc_11db:
        cmp #$fe
        beq loc_117e
        cmp #$fc
        bne loc_11ec
        iny
        lda ($f0),y
        sta $1006
        iny
        lda ($f0),y

loc_11ec:
        cmp #$80
        bcc loc_11f8
        and #$7f
        sta $1007,x
        iny
        lda ($f0),y

loc_11f8:
        cmp #$60
        bcc loc_1204
        and #$0f
        sta $1022,x
        iny
        lda ($f0),y

loc_1204:
        asl
        sta $f2,x
        iny
        sty $f8,x
        lda #$00
        sta $f5,x
        inc $1022,x
        jmp loc_1192

loc_1214:
        cmp #$fe
        bne loc_1221
        iny
        lda ($f0),y
        sta smc_10e1                                // SMC: modifies $10e1
        iny
        lda ($f0),y

loc_1221:
        cmp #$fd
        bne loc_1249
        iny
        lda ($f0),y
        sta $1044,x
        iny
        lda ($f0),y
        clc
        adc $1007,x
        adc #$08
        sta $103b,x
        iny
        lda ($f0),y
        iny
        sty $f5,x
        clc
        adc $1007,x
        adc #$08
        sta $1047,x
        jmp loc_12b9

loc_1249:
        cmp #$f0
        bcc loc_1261
        and #$0f
        clc
        adc $101f,x
        sta $101c,x
        iny
        sty $f5,x
        lda #$ff
        sta $103b,x
        jmp loc_1356

loc_1261:
        cmp #$e0
        bcc loc_1284
        and #$1f
        clc
        adc $101f,x
        sta $101c,x
        lda #$00
        sta $1068,x
        sta $106b,x
        sta $106e,x
        iny
        sty $f5,x
        lda #$ff
        sta $103b,x
        jmp loc_1356

loc_1284:
        cmp #$c0
        bcc loc_1297
        clc
        adc $1010,x
        and #$1f
        asl
        asl
        asl
        sta $1038,x
        iny
        lda ($f0),y

loc_1297:
        cmp #$80
        bcc loc_12ad
        and #$7f
        clc
        adc $101f,x
        sta $101f,x
        sta $101c,x
        iny
        lda ($f0),y
        jmp loc_1221

loc_12ad:
        clc
        adc $1007,x
        adc #$08
        sta $103b,x
        iny
        sty $f5,x

loc_12b9:
        inc $fb,x
        lda $100a,x
        beq loc_12ca
        lda #$00
        sta $100a,x
        sta $104d,x
        beq loc_1336

loc_12ca:
        ldy $1038,x
        lda $107d,x                                 // !SMC: modified by $2118
        bne loc_12dd
        lda $1a13,y
        sta $1062,x
        and #$0f
        sta $1065,x

loc_12dd:
        lda $1a14,y
        sta $1068,x
        lda $1a15,y
        sta $106b,x
        lda $1a16,y
        sta $106e,x
        lda $1a17,y
        sta $1029,x
        and #$f0
        lsr
        lsr
        lsr
        cmp $101c,x
        bcs loc_1304
        sta $1035,x
        bne loc_130a

loc_1304:
        lda $101c,x
        sta $1035,x

loc_130a:
        lda #$ff
        sta $1019,x
        lda #$00
        sta $100d,x
        sta $107d,x
        lda $1a1a,y
        sta $1032,x
        tay
        and #$10
        beq loc_1327
        lda #$10
        sta $100d,x

loc_1327:
        tya
        and #$8f
        beq loc_1336
        lda #$00
        sta $105f,x
        sta $105c,x
        beq loc_133c

loc_1336:
        lda $103b,x
        jsr sub_16c3

loc_133c:
        ldy $f5,x
        lda ($f0),y
        cmp #$f9
        bne loc_134c
        inc $107d,x
        iny
        sty $f5,x
        lda ($f0),y

loc_134c:
        cmp #$fb
        bne loc_1356
        inc $100a,x
        iny
        sty $f5,x

loc_1356:
        lda $101c,x
        sta $101f,x
        jmp loc_117a

// Referenced by: jsr from $1090
sub_135f: {
        lda #$08
        sta $d404
        sta $d40b
        sta $d412
        ldy #$1f
        lda #$00
loop:
        sta $d400,y
        dey
        bpl loop
        rts
}
// Referenced by: jsr from $1173

sub_1375:
        lda $fb,x
        bne loc_137c
        jmp loc_1409

loc_137c:
        lda $1044,x
        beq loc_13a3
        tay
        lsr
        lsr
        lsr
        lsr
        sta $103e,x
        tya
        and #$0f
        sta $1044,x
        lda $101c,x
        sec
        sbc $103e,x
        sta $103e,x
        lda $1047,x
        sec
        sbc $103b,x
        sta $1041,x

loc_13a3:
        lda $1032,x
        bmi loc_13c8
        and #$0f
        beq loc_13c8
        tay
        lda $1aba,y
        sta $108d,x
        lda $1abe,y
        sta $1068,x
        bpl loc_13c2
        lda #$f8
        sta $105f,x
        bne loc_13c8

loc_13c2:
        lda $103b,x
        jsr sub_16c3

loc_13c8:
        lda #$01
        sta $1087,x
        sta $108a,x
        sta $1083,x
        lda #$00
        sta $1080,x
        ldy $1038,x
        lda $1a18,y
        sta $102c,x
        lda $1a19,y
        sta $102f,x
        lsr
        lsr
        lsr
        lsr
        sta $104a,x
        lda $101c,x
        sec
        sbc $104a,x
        bcs loc_13fe
        lda #$00
        sta $102c,x
        bcc loc_1406

loc_13fe:
        sta $104a,x
        lda #$00
        sta $104d,x

loc_1406:
        jmp loc_1518

loc_1409:
        ldy $1044,x
        beq loc_1484
        lda $103e,x
        cmp $101f,x
        bcc loc_1481
        lda #$00
        sta $f1
        lda #$07
        dey

loc_141d:
        dey
        bmi loc_1426
        asl
        rol $f1
        jmp loc_141d

loc_1426:
        sta $f0
        ldy $1041,x
        bmi loc_1452
        lda $105c,x
        clc
        adc $f0
        sta $105c,x
        lda $105f,x
        adc $f1
        sta $105f,x
        lda $105c,x
        ldy $1047,x
        sec
        sbc dat_16d1,y
        lda $105f,x
        sbc $1731,y
        bcc loc_1481
        bcs loc_1475

loc_1452:
        lda $105c,x
        sec
        sbc $f0
        sta $105c,x
        lda $105f,x
        sbc $f1
        sta $105f,x
        ldy $1047,x
        lda $105c,x
        sec
        sbc dat_16d1,y
        lda $105f,x
        sbc $1731,y
        bcs loc_1481

loc_1475:
        tya
        sta $103b,x
        jsr sub_16c3
        lda #$00
        sta $1044,x

loc_1481:
        jmp loc_1518

loc_1484:
        lda $102c,x
        beq loc_14d3
        lda $104a,x
        cmp $101f,x
        bcc loc_14d3
        lda $104d,x
        bne loc_14d6
        lda #$00
        sta $1053,x
        lda $102c,x
        and #$0f
        lsr
        adc #$00
        sta $1050,x
        inc $104d,x
        ldy $103b,x
        lda dat_16d1,y
        sec
        sbc $16d0,y
        sta $1056,x
        lda $1731,y
        sbc $1730,y
        sta $1059,x
        lda $102c,x
        lsr
        lsr
        lsr
        lsr
        tay

loc_14c7:
        dey
        bmi loc_1518
        lsr $1059,x
        ror $1056,x
        jmp loc_14c7

loc_14d3:
        jmp loc_1518

loc_14d6:
        dec $1050,x
        bpl loc_14eb
        lda $102c,x
        and #$0f
        sta $1050,x
        lda $1053,x
        eor #$01
        sta $1053,x

loc_14eb:
        lda $1053,x
        bne loc_1505
        lda $105c,x
        clc
        adc $1056,x
        sta $105c,x
        lda $105f,x
        adc $1059,x
        sta $105f,x
        bcc loc_1518

loc_1505:
        lda $105c,x
        sec
        sbc $1056,x
        sta $105c,x
        lda $105f,x
        sbc $1059,x
        sta $105f,x

loc_1518:
        lda $102f,x
        and #$0f
        bne loc_1522
        jmp loc_15d2

loc_1522:
        ldy $fb,x
        beq loc_1535
        tay
        lda #$00
        sta $1071,x
        sta $1077,x
        lda #$01
        sta $1074,x
        tya

loc_1535:
        asl
        tay
        lda $17c9,y
        sta $f0
        lda $17ca,y
        sta $f1
        ldy #$00
        lda ($f0),y
        lsr
        lsr
        lsr
        lsr
        sta smc_15cc                                // SMC: modifies $15cc
        lda ($f0),y
        and #$0f
        sta smc_15b0                                // SMC: modifies $15b0
        ldy $1071,x
        bne loc_155f
        lda #$02
        sta $1071,x
        bne loc_15d2

loc_155f:
        ldy $1071,x
        lda ($f0),y
        cmp #$fe
        beq loc_1598
        dec $1074,x
        bne loc_1598
        cmp #$ff
        bne loc_1578
        ldy #$01
        lda ($f0),y
        tay
        lda ($f0),y

loc_1578:
        cmp #$fd
        bne loc_158a
        iny
        lda ($f0),y
        sta $1065,x
        lda #$00
        sta $1062,x
        iny
        lda ($f0),y

loc_158a:
        sta $1074,x
        iny
        lda ($f0),y
        sta $107a,x
        iny
        tya
        sta $1071,x

loc_1598:
        lda $1077,x
        bne loc_15b9
        lda $1062,x
        clc
        adc $107a,x
        sta $1062,x
        lda $1065,x
        adc #$00
        sta $1065,x
.label smc_15b0 = * + 1
        cmp #$09                                    // !SMC: modified by $1550
        bcc loc_15d2
        inc $1077,x
        jmp loc_15d2

loc_15b9:
        lda $1062,x
        sec
        sbc $107a,x
        sta $1062,x
        lda $1065,x
        sbc #$00
        sta $1065,x
.label smc_15cc = * + 1
        cmp #$07                                    // !SMC: modified by $1549
        bcs loc_15d2
        dec $1077,x

loc_15d2:
        lda $1029,x
        and #$07
        beq loc_1633
        asl
        tay
        lda $17c5,y
        sta $f0
        lda $17c6,y
        sta $f1
        ldy $1080,x
        bne loc_15fc
        lda ($f0),y
        sta smc_10da                                // SMC: modifies $10da
        iny
        lda ($f0),y
        sta smc_10e6                                // SMC: modifies $10e6
        iny
        tya
        sta $1080,x
        bne loc_1633

loc_15fc:
        dec $1083,x
        bne loc_1629
        lda ($f0),y
        cmp #$fe
        bne loc_160e
        lda #$00
        sta $1029,x
        beq loc_1633

loc_160e:
        cmp #$ff
        bne loc_161b
        ldy #$00
        lda ($f0),y
        and #$0f
        tay
        lda ($f0),y

loc_161b:
        sta $1083,x
        iny
        lda ($f0),y
        sta $1086
        iny
        tya
        sta $1080,x

loc_1629:
        lda smc_10e6
        clc
        adc $1086
        sta smc_10e6                                // SMC: modifies $10e6

loc_1633:
        lda $1032,x
        bmi loc_163b
        jmp loc_16a0

loc_163b:
        and #$0f
        asl
        sta smc_1669                                // SMC: modifies $1669
        tay
        lda $17d1,y
        sta $f0
        lda $17d2,y
        sta $f1
        ldy $1087,x
        lda ($f0),y
        cmp #$fe
        beq loc_1668
        cmp #$ff
        bne loc_1660
        ldy #$00
        lda ($f0),y
        tay
        lda ($f0),y

loc_1660:
        sta $1068,x
        iny
        tya
        sta $1087,x

loc_1668:
.label smc_1669 = * + 1
        ldy #$12                                    // !SMC: modified by $163e
        lda $17e7,y
        sta $f0
        lda $17e8,y
        sta $f1
        ldy $108a,x
        lda ($f0),y
        cmp #$fe
        beq loc_16a0
        cmp #$ff
        bne loc_1688
        ldy #$00
        lda ($f0),y
        tay
        lda ($f0),y

loc_1688:
        sta smc_1691                                // SMC: modifies $1691
        iny
        tya
        sta $108a,x
.label smc_1691 = * + 1
        lda #$00                                    // !SMC: modified by $1688
        bpl loc_1698

dat_1694:
        .byte $29,$7f,$10,$04                       // )...

loc_1698:
        clc
        adc $103b,x
        jsr sub_16c3
        rts

loc_16a0:
        lda $1032,x
        bmi loc_16c2
        and #$0f
        beq loc_16c2
        dec $108d,x
        bne loc_16c2
        lda $1068,x
        bpl loc_16b9
        lda $103b,x
        jsr sub_16c3

loc_16b9:
        ldy $1038,x
        lda $1a14,y
        sta $1068,x

loc_16c2:
        rts
// Referenced by: jsr from $1339, $13c5, $1479, $169c, $16b6

sub_16c3:
        tay
        lda dat_16d1,y
        sta $105c,x
        lda $1731,y
        sta $105f,x
        rts

// --- Region $1f40-$24db ---
.pc = $1f40 "sub_1f40"
// Referenced by: jsr from $1fb0, $1fb6

sub_1f40:
        lda tbl_lo_0ec0,x
        sta $0400,x
        lda tbl_hi_0ee8,x
        sta $0428,x
        lda $0f10,x
        sta $0450,x
        lda $0f38,x
        sta $0478,x
        lda $0f60,x
        sta $04a0,x
        lda $0f88,x
        sta $04c8,x
        lda $0fb0,x
        sta $04f0,x
        lda $0fd8,x
        sta $0518,x
        rts
// Referenced by: jsr from $1fdf, $1fe5

sub_1f71:
        lda #$20
        sta $0400,x
        sta $0428,x
        sta $0450,x
        sta $0478,x
        sta $04a0,x
        sta $04c8,x
        sta $04f0,x
        sta $0518,x
        rts

loc_1f8c:
        sta smc_24d9                                // SMC: modifies $24d9
        rts
// Referenced by: jsr from $1fc4, $1fd2, $22b4

sub_1f90:
        lda $2670,x
        sta $1a
        lda $2678,x
        sta $1b
        lda $2680,x
        sta $1c
        rts
// Referenced by: jsr from $1fb3, $1fe2

sub_1fa0:
        txa
        eor #$1f
        clc
        adc #$08
        tax
        rts

loc_1fa8:
        inc $19
        rts

loc_1fab:
        dec $19
        rts

loc_1fae:
        ldx $19
        jsr sub_1f40
        jsr sub_1fa0
        jsr sub_1f40
        lda $19
        bne loc_1fab
        lda #$c2
        jmp loc_1f8c

loc_1fc2:
        ldx $19
        jsr sub_1f90
        cpx #$07
        bne loc_1fa8
        lda #$d0
        jmp loc_1f8c

loc_1fd0:
        ldx $19
        jsr sub_1f90
        txa
        bne loc_1fab
        lda #$dd
        jmp loc_1f8c

loc_1fdd:
        ldx $19
        jsr sub_1f71
        jsr sub_1fa0
        jsr sub_1f71
        cpx #$14
        bne loc_1fa8
// Referenced by: jsr from $22ad

sub_1fec:
        lda #$8f
        jmp loc_1f8c
// Referenced by: jsr from $2104

sub_1ff1:
        lda #$80
        sta $02
        ldx #$07

loc_1ff7:
        txa
        asl
        tay
        lda $0335,x
        clc
        adc $2688,x
        sta $0335,x
        sta $d000,y
        lda $0334
        bcc loc_2011
        eor $02
        sta $0334

loc_2011:
        sta $d010
        lsr $02
        lda txt_2690,x
        sta $d001,y
        ldy #$04
        lda $2688,x
        cmp #$03
        bcc $2026
        iny

loc_2026:
        cmp #$07
        bcc $202b
        iny

loc_202b:
        tya
        sta $07f8,x
        dex
        bpl loc_1ff7
        rts

// Referenced by: jsr from $2111
sub_2033: {
        lda #$80
        sta $02
        ldx #$07
loop:
        txa
        asl
        tay
        lda $033e,x
        clc
        adc $2698,x
        sta $033e,x
        sta $d000,y
        lda $033d
        bcc skip1
        eor $02
        sta $033d
skip1:
        sta $d010
        lsr $02
        lda $26a0,x
        sta $d001,y
        ldy #$04
        lda $2698,x
        cmp #$03
        bcc skip2
        iny
skip2:
        cmp #$07
        bcc skip3
        iny
skip3:
        tya
        sta $07f8,x
        dex
        bpl loop
        rts
}

// Referenced by: jsr from $2123
sub_2075: {
        lda #$80
        sta $02
        ldx #$07
loop:
        txa
        asl
        tay
        lda $0347,x
        clc
        adc $26a8,x
        sta $0347,x
        sta $d000,y
        lda $0346
        bcc skip1
        eor $02
        sta $0346
skip1:
        sta $d010
        lsr $02
        lda $26b0,x
        sta $d001,y
        ldy #$04
        lda $26a8,x
        cmp #$03
        bcc skip2
        iny
skip2:
        cmp #$07
        bcc skip3
        iny
skip3:
        tya
        sta $07f8,x
        dex
        bpl loop
        rts
}

// Referenced by: jsr from $214c
sub_20b7: {
        lda #$80
        sta $02
        ldx #$07
loop:
        txa
        asl
        tay
        lda $0350,x
        clc
        adc $26b8,x
        sta $0350,x
        sta $d000,y
        lda $034f
        bcc skip1
        eor $02
        sta $034f
skip1:
        sta $d010
        lsr $02
        lda $26c0,x
        sta $d001,y
        ldy #$04
        lda $26b8,x
        cmp #$03
        bcc skip2
        iny
skip2:
        cmp #$07
        bcc skip3
        iny
skip3:
        tya
        sta $07f8,x
        dex
        bpl loop
        rts
}

main_20f9:
        sei
        jsr sub_2246

loc_20fd:
        lda #$27

loc_20ff:
        cmp $d012
        bne loc_20ff
        jsr sub_1ff1
        jsr sub_10d4
        lda #$5a

loc_210c:
        cmp $d012
        bne loc_210c
        jsr sub_2033
        jsr sub_10d4
        lda #$8e

loc_2119:
        cmp $d012
        bne loc_2119
        lda $18
        sta $d021
        jsr sub_2075

loc_2126:
        lda #$a9
        cmp $d012
        bne loc_2126
        ldx #$0e

loc_212f:
        lda $0eb0,x
        ldy $d012

loc_2135:
        cpy $d012
        beq loc_2135
        sta $d021
        dex
        bpl loc_212f
        lda #$bc

loc_2142:
        cmp $d012
        bne loc_2142
        lda #$00
        sta $d021
        jsr sub_20b7
        lda $07
        sta $d016
        lda $0f
        sta $d021
        jsr sub_10d4
        ldx $0c
        lda #$ea

loc_2160:
        cmp $d012
        bne loc_2160
        stx $d016
        lda $10
        sta $d021
        jsr sub_22dd
        lda #$05

loc_2172:
        cmp $d012
        bne loc_2172
        ldx #$02

loc_2179:
        lda $1a,x
        sta $d021,x
        dex
        bpl loc_2179
        lda #$10
        sta $d016
        jsr sub_10d4
        jsr sub_2338
        lda #$1b
        sta $d011
        lda $1032
        cmp #$80
        bne loc_219c
        lda #$01
        sta $12

loc_219c:
        lda $103b
        cmp #$38
        bne loc_21a7
        lda #$01
        sta $13

loc_21a7:
        jsr sub_2424
        jsr sub_244c
        jsr sub_24cf
        ldx $dc01
        inx
        bne loc_21b9
        jmp loc_20fd

loc_21b9:
        lda #$00
        sta $d020
        sta $d021
        jsr $fda3
        ldx #$19
        jsr $e5aa
        inc $0286
        jsr $e544
        ldx #$03

loc_21d1:
        lda txt_0e60,x
        sta $0400,x
        sta $0428,x
        lda $0e84,x
        sta $0424,x
        sta $044c,x
        lda $0e58,x
        sta $d800,x
        sta $d828,x
        lda $0e5c,x
        sta $d824,x
        sta $d84c,x
        dex
        bpl loc_21d1
        lda #$1b
        sta $d011
        inx

loc_21fe:
        lda txt_0e60,x

loc_2201:
        ldy $d012
        iny
        bne loc_2201
        cmp $0400,x
        beq loc_221a
        dec $0400,x
        bcc loc_2201
        tay
        lda #$3f
        sta $0400,x
        tya
        bcs loc_2201

loc_221a:
        inx
        cpx #$50
        bne loc_21fe
        ldx #$17

loc_2221:
        lda $222e,x
        sta $0333,x
        dex
        bne loc_2221
        inc $01
        jmp $0334

loc_222f:
        lda $2a74,x
        sta $0801,x
        inx
        bne loc_222f
.label loc_2239 = * + 1
        inc $0339
        inc $0336
        bne loc_222f
        dec $01
        cli
        jmp $fce2
// Referenced by: jsr from $20fa; branch from $2249

sub_2246:
        ldx $d012
        bne sub_2246
        stx $d011
        stx $d020
        stx $d021
        stx $0286
        dex
        stx $d015
        jsr $e544
        ldx #$a0
        lda #$20

loc_2262:
        sta $035f,x
        dex
        bne loc_2262
        jsr sub_2393
        ldx #$23

loc_226d:
        lda $26c8,x
        sta $0334,x
        dex
        bpl loc_226d
        ldx #$07
        lda #$01

loc_227a:
        sta $d027,x
        dex
        bpl loc_227a
        ldx #$c0
        lda #$00

loc_2284:
        sta.abs $00ff,x
        dex
        bne loc_2284
        lda #$b0
        sta $0180
        asl
        asl
        sta $0140
        asl
        sta $0100
        lda #$00
        ldx #$12
        stx $d018

loc_229f:
        sta $06,x
        dex
        bne loc_229f
        sta $1032
        sta $103b
        sta $105c
        jsr sub_1fec
        lda #$13
        sta $19
        jsr sub_1f90
        lda #$08

loc_22b9:
        sta $d800,x
        inx
        bne loc_22b9

loc_22bf:
        sta $d900,x
        inx
        cpx #$40
        bne loc_22bf
        ldx #$02

loc_22c9:
        lda $0870,x
        sta chr_0800,x
        dex
        bpl loc_22c9
        lda #$00
        jsr sub_1090
        jsr sub_232b
        jmp loc_2386

// Referenced by: jsr from $216d
sub_22dd: {
        lda $07
        sec
        sbc $0d
        and #$07
        sta $07
        bcs done
        ldx #$00
loop:
        lda $0721,x
        sta $0720,x
        lda $0749,x
        sta $0748,x
        inx
        cpx #$26
        bne loop
        dec $05
        bpl skip3
        lda ($dd,x)
        beq sub_232b
        inc $03
        bne skip1
        inc $04
skip1:
        tax
        ldy #$00
        lda $2500,x
        cmp #$80
        bcc skip2
        iny
skip2:
        sty $05
        and #$7f
        sta $06
skip3:
        ldx $06
        inc $06
        lda $2540,x
        sta $0746
        lda $2593,x
        sta $076e
done:
        rts
}
// Referenced by: jsr from $22d7; branch from $2301

sub_232b:
        ldx #$27
        lda #$19
        sta $03
        stx $04
        lda #$00
        sta $05
        rts
// Referenced by: jsr from $2189

sub_2338:
        lda $0c
        sec
        sbc $0e
        and #$07
        sta $0c
        bcs loc_2385
        ldx #$00

loc_2345:
        lda $0799,x
        sta $0798,x
        lda $07c1,x
        sta $07c0,x
        inx
        cpx #$26
        bne loc_2345
        dec $0a
        bpl loc_2375
        lda ($e2,x)
        beq loc_2386
        inc $08
        bne loc_2364
        inc $09

loc_2364:
        tax
        ldy #$00
        lda $2500,x
        cmp #$80
        bcc loc_236f
        iny

loc_236f:
        sty $0a
        and #$7f
        sta $0b

loc_2375:
        ldx $0b
        inc $0b
        lda $2540,x
        sta $07be
        lda $2593,x
        sta $07e6

loc_2385:
        rts

loc_2386:
        ldx #$29
        lda #$83
        sta $08
        stx $09
        lda #$00
        sta $0a
        rts

// Referenced by: jsr from $2268
sub_2393: {
        lda #$25
        sta $0c
        sta $0e
        ldx #$08
        ldy #$03
        lda #$60
loop1:
        sta $00,x
        sty $01,x
        clc
        adc #$28
        dex
        dex
        bne loop1
loop2:
        ldy txt_26ec,x
        beq skip2
        lda $2500,y
        cmp #$80
        ldy #$01
        bcc skip1
        iny
skip1:
        sty $0a
        and #$7f
        clc
        adc #$40
        sta $0b
        adc #$53
        sta $0d
        dey
        tya
        adc $08
        cmp #$88
        bcs skip3
loop3:
        lda ($0b),y
        sta ($08),y
        lda ($0d),y
        sta ($06),y
        dey
        bpl loop3
        lda $08
        adc $0a
        sta $08
        adc #$28
        sta $06
        inx
        bne loop2
skip2:
        inx
skip3:
        ldy txt_26ec,x
        beq done
        lda $2500,y
        cmp #$80
        ldy #$01
        bcc skip4
        iny
skip4:
        sty $0a
        and #$7f
        clc
        adc #$40
        sta $0b
        adc #$53
        sta $0d
        dey
        tya
        adc $04
        cmp #$d8
        bcs done
loop4:
        lda ($0b),y
        sta ($04),y
        lda ($0d),y
        sta ($02),y
        dey
        bpl loop4
        lda $04
        adc $0a
        sta $04
        adc #$28
        sta $02
        inx
        bne skip3
done:
        rts
}

// Referenced by: jsr from $21a7
sub_2424: {
        lda $12
        beq done
        ldx $11
        lda $25f0,x
        sta $0d
        lda $2630,x
        sta $0f
        txa
        clc
        adc #$20
        and #$3f
        tay
        lda $25f0,y
        sta $0e
        lda $2630,y
        sta $10
        inx
        txa
        and #$3f
        sta $11
done:
        rts
}
// Referenced by: jsr from $21aa

sub_244c:
        lda $13
        beq loc_2476
        lda $14
        bne loc_2477
        dec $15
        bpl loc_2476
        lda #$03
        sta $15
        ldx $16
        lda $03b0,x
        sta $0658,x
        lda $03d8,x
        sta $0680,x
        inc $16
        cpx #$27
        bne loc_2476
        lda #$00
        sta $16
        inc $14

loc_2476:
        rts

loc_2477:
        cmp #$01
        bne loc_2486
        dec $16
        bne loc_2485
        lda #$00
        sta $16
        inc $14

loc_2485:
        rts

loc_2486:
        cmp #$02
        bne loc_24a8
        dec $15
        bpl loc_24a8
        lda #$01
        sta $15
        ldx $16
        lda $0360,x
        sta $05e0,x
        lda $0388,x
        sta $0608,x
        inc $16
        cpx #$27
        bne loc_24a8
        inc $14

loc_24a8:
        rts
// Referenced by: jsr from $24cf

sub_24a9:
        inc $17
        lda $17
        and #$0f
        tax
        lda $0eb0,x
        sta $18

// Referenced by: jsr from $24d5
sub_24b5: {
        lda $105c
        cmp #$86
        bne loc_24a8
        ldx #$04
        lda smc_24d9
loop:
        cmp $25e6,x
        bne skip
        lda $25eb,x
        jmp loc_1f8c
skip:
        dex
        bpl loop
}
// Referenced by: jsr from $21ad

sub_24cf:
        jsr sub_24a9
        jsr sub_24d8
        jsr sub_24b5
// Referenced by: jsr from $24d2

sub_24d8:
.label smc_24d9 = * + 1
        jmp loc_1fdd                                // !SMC: modified by $1f8c

dat_24db:
        // === Fill data (1 bytes, $24db-$24db) ===
        .byte $00                                   // .

// ============================================
// Data blocks
// ============================================

// --- Region $0800-$108f ---
.pc = $0800 "chr_0800"

chr_0800:
        // === Charset data (2048 bytes, $0800-$0fff) ===
        .byte $09,$00,$00,$c1,$81,$81,$81,$80       // char 0 @+0
        .byte $1f,$07,$83,$83,$81,$81,$81,$01       // char 1 @+1
        .byte $80,$80,$81,$81,$81,$81,$81,$80       // char 2 @+2
        .byte $1f,$07,$83,$83,$81,$83,$83,$07       // char 3 @+3
        .byte $80,$80,$81,$81,$81,$81,$81,$81       // char 4 @+4
        .byte $1f,$07,$83,$83,$81,$ff,$ff,$ff       // char 5 @+5
        .byte $1f,$07,$83,$83,$81,$81,$81,$81       // char 6 @+6
        .byte $1f,$07,$83,$83,$81,$ff,$ff,$1f       // char 7 @+7
        .byte $01,$01,$81,$81,$81,$ff,$ff,$1f       // char 8 @+8
        .byte $80,$80,$81,$81,$81,$81,$81,$82       // char 9 @+9
        .byte $1f,$07,$83,$83,$81,$ff,$ff,$01       // char 10 @+10
        .byte $81,$81,$81,$81,$81,$81,$81,$80       // char 11 @+11
        .byte $81,$81,$81,$81,$81,$81,$81,$01       // char 12 @+12
        .byte $81,$81,$81,$81,$81,$81,$81,$81       // char 13 @+13
        .byte $f8,$e0,$c1,$c1,$81,$ff,$ff,$ff       // char 14 @+14
        .byte $01,$01,$81,$81,$81,$81,$81,$81       // char 15 @+15
        .byte $81,$81,$81,$81,$81,$81,$83,$07       // char 16 @+16
        .byte $8f,$87,$83,$81,$80,$80,$81,$81       // char 17 @+17
        .byte $f1,$e1,$c1,$81,$01,$01,$81,$81       // char 18 @+18
        .byte $80,$80,$81,$81,$81,$c1,$c1,$e0       // char 19 @+19
        .byte $80,$81,$81,$81,$81,$81,$81,$81       // char 20 @+20
        .byte $01,$81,$81,$81,$81,$81,$81,$81       // char 21 @+21
        .byte $80,$81,$81,$81,$81,$81,$80,$80       // char 22 @+22
        .byte $03,$81,$81,$81,$83,$83,$07,$1f       // char 23 @+23
        .byte $81,$81,$81,$81,$c1,$c1,$e0,$f8       // char 24 @+24
        .byte $ff,$ff,$ff,$81,$81,$81,$01,$01       // char 25 @+25
        .byte $81,$81,$81,$81,$81,$81,$80,$80       // char 26 @+26
        .byte $81,$81,$81,$81,$83,$83,$07,$1f       // char 27 @+27
        .byte $80,$81,$81,$81,$c1,$c1,$e0,$f8       // char 28 @+28
        .byte $1f,$ff,$ff,$81,$81,$81,$01,$01       // char 29 @+29
        .byte $1f,$ff,$ff,$ff,$ff,$ff,$ff,$ff       // char 30 @+30
        .byte $82,$81,$81,$81,$c1,$c1,$e0,$f8       // char 31 @+31
        .byte $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff       // char 32 ' '
        .byte $01,$81,$81,$81,$81,$81,$01,$01       // char 33 '!'
        .byte $ff,$ff,$ff,$81,$81,$81,$80,$80       // char 34 '"'
        .byte $03,$81,$81,$81,$81,$81,$81,$81       // char 35 '#'
        .byte $81,$81,$81,$81,$81,$81,$01,$01       // char 36 '$'
        .byte $81,$81,$81,$81,$81,$81,$00,$08       // char 37 '%'
        .byte $f8,$ff,$ff,$81,$c1,$c1,$e0,$f8       // char 38 '&'
        .byte $07,$83,$83,$81,$81,$81,$01,$01       // char 39 '''
        .byte $80,$80,$81,$81,$81,$ff,$ff,$ff       // char 40 '('
        .byte $81,$81,$81,$81,$81,$81,$c1,$e0       // char 41 ')'
        .byte $81,$81,$81,$81,$81,$c1,$c1,$e0       // char 42 '*'
        .byte $81,$81,$81,$81,$81,$83,$83,$07       // char 43 '+'
        .byte $f8,$e0,$c1,$c1,$81,$ff,$ff,$f8       // char 44 ','
        .byte $01,$01,$81,$81,$81,$83,$83,$07       // char 45 '-'
        .byte $f1,$c1,$81,$81,$83,$8f,$ff,$ff       // char 46 '.'
        .byte $81,$81,$81,$81,$c1,$e1,$f0,$fc       // char 47 '/'
        .byte $81,$81,$81,$81,$83,$87,$0f,$3f       // char 48 '0'
        .byte $81,$81,$80,$80,$81,$83,$87,$8f       // char 49 '1'
        .byte $81,$81,$01,$01,$81,$c1,$e1,$f1       // char 50 '2'
        .byte $c0,$81,$81,$81,$81,$81,$81,$81       // char 51 '3'
        .byte $f8,$f8,$f8,$f8,$f8,$f8,$f8,$f8       // char 52 '4'
        .byte $1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f       // char 53 '5'
        .byte $e0,$c1,$c1,$81,$81,$81,$80,$80       // char 54 '6'
        .byte $81,$81,$c3,$ff,$c3,$81,$81,$c3       // char 55 '7'
        .byte $f8,$e0,$c1,$c1,$81,$81,$81,$81       // char 56 '8'
        .byte $ff,$ff,$ff,$f8,$f8,$f8,$f8,$80       // char 57 '9'
        .byte $ff,$ff,$ff,$1f,$1f,$1f,$1f,$01       // char 58 ':'
        .byte $ff,$ff,$ff,$ff,$ff,$ff,$ff,$80       // char 59 ';'
        .byte $ff,$ff,$ff,$ff,$ff,$ff,$ff,$01       // char 60 '<'
        .byte $80,$80,$81,$81,$81,$80,$80,$ff       // char 61 '='
        .byte $01,$01,$ff,$ff,$ff,$1f,$07,$03       // char 62 '>'
        .byte $01,$01,$81,$81,$81,$81,$81,$03       // char 63 '?'

spr_0a00:
        .byte $f8,$e0,$c1,$c1,$81,$c1,$c1,$e0       // char 64 '@'
        .byte $ff,$ff,$ff,$c3,$81,$81,$c3,$ff       // char 65 'A'
        .byte $80,$f8,$f8,$f8,$f8,$ff,$ff,$ff       // char 66 'B'
        .byte $01,$1f,$1f,$1f,$1f,$ff,$ff,$ff       // char 67 'C'
        .byte $ff,$ff,$ff,$ff,$c1,$81,$83,$8f       // char 68 'D'
        .byte $80,$ff,$ff,$ff,$ff,$ff,$ff,$ff       // char 69 'E'
        .byte $01,$ff,$ff,$ff,$ff,$ff,$ff,$ff       // char 70 'F'
        .byte $ff,$ff,$ff,$ff,$c3,$81,$81,$c3       // char 71 'G'
        .byte $07,$83,$83,$81,$83,$83,$07,$1f       // char 72 'H'
        .byte $f8,$ff,$ff,$ff,$ff,$ff,$ff,$ff       // char 73 'I'
        .byte $ff,$ff,$ff,$81,$c1,$c1,$e0,$f8       // char 74 'J'
        .byte $83,$81,$81,$81,$83,$83,$07,$1f       // char 75 'K'
        .byte $ff,$fe,$fe,$fc,$fc,$f8,$f8,$f8       // char 76 'L'
        .byte $03,$07,$07,$0f,$0f,$1f,$1f,$1f       // char 77 'M'
        .byte $e0,$c1,$c1,$81,$c1,$c1,$e0,$f8       // char 78 'N'
        .byte $01,$81,$81,$81,$83,$83,$07,$1f       // char 79 'O'
        .byte $ff,$c3,$81,$81,$c3,$ff,$ff,$ff       // char 80 'P'
        .byte $ff,$c1,$81,$83,$8f,$ff,$ff,$ff       // char 81 'Q'
        .byte $f8,$e0,$c1,$c1,$81,$ff,$ff,$fe       // char 82 'R'
        .byte $1f,$07,$83,$83,$81,$83,$03,$07       // char 83 'S'
        .byte $fc,$f8,$f8,$ff,$fc,$f8,$f8,$fc       // char 84 'T'
        .byte $0f,$1f,$1f,$ff,$3f,$1f,$1f,$3f       // char 85 'U'
        .byte $ff,$c6,$1a,$2a,$69,$64,$a4,$a0       // char 86 'V'
        .byte $ff,$99,$a5,$95,$01,$04,$01,$31       // char 87 'W'
        .byte $ff,$3f,$4f,$1f,$43,$03,$43,$43       // char 88 'X'
        .byte $ff,$68,$a5,$a4,$a0,$a0,$a0,$a0       // char 89 'Y'
        .byte $ff,$fd,$fe,$fe,$fe,$fe,$fe,$fe       // char 90 'Z'
        .byte $ff,$a3,$97,$93,$83,$83,$83,$83       // char 91 '['
        .byte $ff,$6a,$aa,$aa,$a4,$a0,$a0,$a0       // char 92 '\'
        .byte $ff,$a9,$aa,$aa,$01,$00,$01,$f0       // char 93 ']'
        .byte $ff,$3f,$4f,$9f,$a3,$53,$17,$53       // char 94 '^'
        .byte $ff,$aa,$aa,$aa,$00,$01,$06,$3a       // char 95 '_'
        .byte $ff,$aa,$a9,$a5,$00,$00,$00,$0f       // char 96 '`'
        .byte $ff,$4f,$53,$47,$50,$00,$50,$50       // char 97 'a'
        .byte $ff,$f1,$c6,$ca,$da,$d9,$e9,$e8       // char 98 'b'
        .byte $ff,$aa,$aa,$aa,$40,$00,$00,$0c       // char 99 'c'
        .byte $ff,$4f,$93,$a7,$68,$14,$45,$14       // char 100 'd'
        .byte $ff,$a6,$a9,$a5,$40,$01,$00,$0c       // char 101 'e'
        .byte $a0,$90,$a0,$90,$50,$90,$40,$50       // char 102 'f'
        .byte $fd,$fe,$fe,$fe,$fe,$fd,$ff,$ff       // char 103 'g'
        .byte $83,$43,$83,$83,$43,$03,$ff,$ff       // char 104 'h'
        .byte $fe,$fe,$fe,$fe,$fd,$fe,$fd,$fd       // char 105 'i'
        .byte $83,$43,$83,$43,$43,$43,$03,$43       // char 106 'j'
        .byte $fd,$fe,$fe,$fe,$fd,$fe,$fd,$fd       // char 107 'k'
        .byte $87,$83,$83,$83,$83,$43,$03,$43       // char 108 'l'
        .byte $fa,$f9,$fa,$f9,$f5,$f9,$f4,$f5       // char 109 'm'
        .byte $0f,$0f,$0f,$0f,$0f,$0f,$0f,$0f       // char 110 'n'
        .byte $60,$90,$a0,$90,$50,$90,$40,$50       // char 111 'o'
        .byte $e8,$e4,$e8,$e4,$d4,$e4,$d0,$d4       // char 112 'p'

txt_0b88:
        .byte $3f,$3f,$3f,$3f,$3f,$3f,$3f,$3f       // char 113 'q'
        .byte $61,$a0,$a0,$a0,$60,$90,$40,$50       // char 114 'r'
        .byte $60,$90,$a0,$a0,$90,$40,$ff,$ff       // char 115 's'
        .byte $ff,$ff,$ff,$ff,$fc,$fc,$f1,$f2       // char 116 't'
        .byte $40,$00,$40,$00,$00,$10,$50,$60       // char 117 'u'
        .byte $3f,$3f,$3f,$ff,$ff,$ff,$ff,$ff       // char 118 'v'
        .byte $fd,$fc,$fd,$fc,$00,$00,$00,$00       // char 119 'w'
        .byte $03,$03,$03,$03,$00,$00,$00,$10       // char 120 'x'
        .byte $ff,$ff,$ff,$ff,$fc,$fc,$31,$32       // char 121 'y'
        .byte $fd,$fc,$fd,$f0,$00,$00,$00,$01       // char 122 'z'
        .byte $03,$03,$03,$03,$00,$00,$40,$50       // char 123 '{'
        .byte $fd,$fc,$fd,$fc,$fc,$fd,$fd,$fe       // char 124 '|'
        .byte $f4,$f0,$f4,$f0,$c0,$c1,$c5,$c9       // char 125 '}'
        .byte $0f,$0f,$0f,$0f,$03,$03,$03,$03       // char 126 '~'
        .byte $40,$00,$40,$00,$00,$40,$50,$94       // char 127
        .byte $ff,$ff,$ff,$ff,$3f,$3f,$0c,$0c       // char 128
        .byte $d0,$c0,$d0,$c0,$00,$04,$54,$98       // char 129

txt_0c10:
        .byte $3f,$3f,$3f,$3f,$00,$00,$00,$00       // char 130
        .byte $40,$00,$40,$00,$00,$00,$00,$04       // char 131
        .byte $ff,$ff,$ff,$ff,$ff,$ff,$fc,$fc       // char 132
        .byte $f5,$fa,$fa,$fa,$fa,$fa,$fa,$fa       // char 133
        .byte $90,$a0,$90,$90,$90,$80,$50,$80       // char 134
        .byte $00,$01,$fe,$fe,$fe,$fe,$fe,$fe       // char 135
        .byte $50,$a0,$a0,$a0,$a0,$a0,$90,$a0       // char 136

txt_0c48:
        .byte $35,$3a,$3a,$3a,$3a,$3a,$3a,$3a       // char 137
        .byte $01,$05,$f2,$fe,$fe,$fe,$fe,$fe       // char 138
        .byte $90,$a4,$a4,$a4,$a4,$a0,$94,$a0       // char 139
        .byte $fd,$fe,$fe,$fe,$fe,$fe,$fe,$fe       // char 140
        .byte $90,$60,$90,$a0,$90,$a0,$a0,$a0       // char 141
        .byte $d6,$ea,$ea,$ea,$ea,$ea,$e9,$ea       // char 142
        .byte $03,$03,$03,$03,$03,$03,$03,$03       // char 143
        .byte $64,$98,$a4,$a8,$a4,$a8,$a4,$a8       // char 144
        .byte $0d,$0e,$0e,$0e,$0e,$0e,$0e,$0e       // char 145
        .byte $64,$a8,$a4,$a4,$a4,$a0,$94,$a0       // char 146
        .byte $00,$00                               // char 147 (partial)

txt_0c9a:
        .byte $3f,$3f,$3f,$3f,$3f,$3f               // char 147 (partial)
        .byte $18,$69,$a9,$a9,$a9,$a8,$a5,$a8       // char 148
        .byte $fa,$f9,$fa,$f9,$f5,$f9,$f5,$f5       // char 149
        .byte $40,$40,$40,$40,$40,$00,$40,$00       // char 150
        .byte $ff,$ff,$ff,$ff,$fd,$fe,$fe,$fe       // char 151
        .byte $ff,$ff,$ff,$ff,$a9,$a9,$a4,$a0       // char 152
        .byte $fa,$f9,$fa,$f9,$35,$39,$35,$35       // char 153
        .byte $90,$50,$90                           // char 154 (partial)

txt_0cd3:
        .byte $50,$50,$40,$50,$40                   // char 154 (partial)
        .byte $3a,$39,$3a,$39,$35,$39,$35,$35       // char 155
        .byte $fe,$fe,$fe,$fe,$fe,$fe,$fe,$fe       // char 156
        .byte $a0,$a0,$a0,$a0,$a0,$a0,$a0,$a0       // char 157
        .byte $e9,$e5,$e9,$e5,$d5,$e4,$d5,$d4       // char 158
        .byte $a4,$94,$a4,$94,$54,$90,$54,$50       // char 159
        .byte $0e,$0e,$0e,$0e,$0d,$0e,$0d,$0d       // char 160
        .byte $ff,$ff,$ff,$ff,$6a,$aa,$a9,$a8       // char 161
        .byte $fe,$fe,$fe,$fe,$4d,$4e,$0d,$0d       // char 162
        .byte $ff,$ff,$ff,$ff,$4f,$4f,$0f,$0f       // char 163
        .byte $f4,$f5,$f4,$f1,$f4,$f1,$f4,$f0       // char 164
        .byte $40,$00,$00,$00,$00,$00,$00,$00       // char 165
        .byte $fe,$fe,$fe,$fd,$fe,$31,$05,$01       // char 166
        .byte $a0,$a0,$a0,$a0,$60,$a0,$60           // char 167 (partial)

txt_0d3f:
        .byte $50                                   // char 167 (partial)
        .byte $34,$35,$34,$31,$34,$31,$34,$30       // char 168
        .byte $fd,$fd,$fd,$fc,$fd,$fc,$fd,$fc       // char 169
        .byte $10,$40,$00,$40,$00,$40,$00,$00       // char 170
        .byte $d1,$d4,$d0,$c4,$d0,$c4,$d0,$c0       // char 171
        .byte $44,$50,$40,$10,$40,$00,$40,$00       // char 172
        .byte $0d,$0d,$0d,$0c,$0d,$0c,$0d,$0c       // char 173
        .byte $44,$50,$40,$10,$40,$10,$40,$00       // char 174
        .byte $3f,$3f,$3f,$3f,$3f,$0c,$01,$00       // char 175
        .byte $a8,$a8,$a8,$68,$98,$68,$58,$54       // char 176
        .byte $f0,$f0,$f4,$f0,$f0,$f0,$f0,$f0       // char 177
        .byte $00,$00,$00,$00,$00,$00,$00,$00       // char 178
        .byte $05,$01,$04,$01,$00,$01,$00,$00       // char 179
        .byte $60                                   // char 180 (partial)

txt_0da1:
        .byte $50,$50,$40,$40,$00,$00,$00           // char 180 (partial)

txt_0da8:
        .byte $30,$30,$34,$30,$30,$30,$30,$30       // char 181
        .byte $fc,$fc,$fd,$fc,$fc,$fc,$fc,$fc       // char 182
        .byte $c0,$c0,$d0,$c0,$c0,$c0,$c0,$c0       // char 183
        .byte $0c,$0c,$0d,$0c,$0c,$0c,$0c,$0c       // char 184
        .byte $00,$00,$40,$00,$00,$00,$00,$00       // char 185
        .byte $01,$00,$01,$00,$00,$00,$00,$00       // char 186
        .byte $58,$54,$14,$50,$10,$40,$00,$00       // char 187
        .byte $fc,$fc,$fc,$ff,$ff,$ff,$ff,$ff       // char 188
        .byte $00,$00,$00,$00,$c0,$ff,$ff,$ff       // char 189
        .byte $00,$00,$00,$00,$00,$ff,$ff,$ff       // char 190
        .byte $00,$00,$00,$03,$0f,$ff,$ff,$ff       // char 191
        .byte $f0,$f0,$f0,$f0,$f0,$ff,$ff,$ff       // char 192
        .byte $fc,$fc,$fc,$fc,$fc,$ff,$ff,$ff       // char 193
        .byte $30,$30,$30,$30,$30,$ff,$ff,$ff       // char 194
        .byte $3c,$3c,$3c,$3f,$3f,$ff,$ff,$ff       // char 195
        .byte $c0,$c0,$c0,$c0,$c0,$ff,$ff,$ff       // char 196
        .byte $03,$03,$03,$03,$03,$ff,$ff,$ff       // char 197
        .byte $0c,$0c,$0c,$0c,$0c,$ff,$ff,$ff       // char 198
        .byte $3f,$3f,$3f,$3f,$3f,$ff,$ff,$ff       // char 199
        .byte $0f,$0f,$0f,$0f,$0f,$ff,$ff,$ff       // char 200
        .byte $00,$00,$00,$c0,$f0,$ff,$ff,$ff       // char 201
        .byte $00,$00,$00,$00,$03,$ff,$ff,$ff       // char 202
        .byte $0b,$0c,$0f,$07,$07,$0f,$0c,$0b       // char 203

txt_0e60:
        .byte $2d,$3d,$2a,$3e,$20,$09,$0e,$14       // char 204
        .byte $12,$0f,$20,$02,$19,$20,$01,$0c       // char 205
        .byte $05,$18,$2c,$20,$0d,$15,$13,$09       // char 206
        .byte $03,$20,$02,$19,$20,$0a,$2e,$20       // char 207
        .byte $14,$05,$0c                           // char 208 (partial)

txt_0e83:
        .byte $20,$3c,$2a,$3d,$2d                   // char 208 (partial)
        .byte $2d,$3d,$2a,$3e,$20,$0c,$0f,$07       // char 209
        .byte $0f,$20,$02,$19,$20,$07,$01,$02       // char 210
        .byte $12,$09,$05,$0c,$2c,$20,$03,$08       // char 211
        .byte $01,$12,$13,$20,$02,$19,$20,$01       // char 212
        .byte $0c,$05,$18                           // char 213 (partial)

txt_0eab:
        .byte $20,$3c,$2a,$3d,$2d                   // char 213 (partial)
        .byte $0b,$0c,$0c,$0f,$0f,$07,$07,$01       // char 214
        .byte $07,$07,$03,$03,$0e,$0e,$06,$00       // char 215

tbl_lo_0ec0:
        .byte $20,$20,$56,$57,$58,$20,$59,$5a       // char 216
        .byte $5b,$20,$5c,$5d,$5e                   // char 217 (partial)

txt_0ecd:
        .byte $20,$56,$57                           // char 217 (partial)
        .byte $58,$20,$56,$5f,$60,$61,$20,$62       // char 218
        .byte $63,$64,$20,$62,$65,$61,$20,$62       // char 219
        .byte $65,$61,$20,$62,$65,$61               // char 220 (partial)

txt_0ee6:
        .byte $20,$20                               // char 220 (partial)

tbl_hi_0ee8:
        .byte $20,$20,$66,$67,$68,$20,$66,$69       // char 221
        .byte $6a,$20,$66,$6b,$6c,$20,$66,$6b       // char 222
        .byte $6a,$20,$66,$6d,$6e,$6f,$20,$70       // char 223
        .byte $71,$72,$20,$70,$71,$6f,$20,$70       // char 224
        .byte $71,$73,$20,$70,$71,$73,$20,$20       // char 225
        .byte $20,$74,$75,$20,$20,$74,$75,$77       // char 226
        .byte $78,$79,$75,$7a,$7b,$79,$75,$7c       // char 227
        .byte $7b,$79,$75,$7d,$7e,$7f,$80,$81       // char 228
        .byte $82,$83,$80,$81,$71,$7f,$80,$81       // char 229
        .byte $71,$20,$84,$81,$82                   // char 230 (partial)

txt_0f35:
        .byte $20,$20,$20                           // char 230 (partial)
        .byte $20,$85,$86,$20,$20,$85,$86,$87       // char 231
        .byte $88,$89,$86,$8a,$8b,$89,$86,$8c       // char 232
        .byte $8d,$89,$86,$8e,$8f,$90,$91,$92       // char 233
        .byte $93,$94,$91,$92,$71,$90,$91,$92       // char 234
        .byte $71,$20,$8c,$92,$93                   // char 235 (partial)

txt_0f5d:
        .byte $20,$20,$20                           // char 235 (partial)
        .byte $20,$95,$96,$97,$98,$99,$96,$69       // char 236
        .byte $9a,$9b,$96,$69,$9a,$9b,$96,$9c       // char 237
        .byte $9d,$9b,$96,$9e,$8f,$9f,$a0,$9a       // char 238
        .byte $71,$9f,$a0,$9a,$71,$9f,$a0,$9a       // char 239
        .byte $71,$a1,$a2,$9a,$71,$a1,$a3           // char 240 (partial)

txt_0f87:
        .byte $20                                   // char 240 (partial)
        .byte $20,$a4,$a5,$a6,$a7,$a8,$a5,$a9       // char 241
        .byte $aa,$a8,$a5,$a9,$aa,$a8,$a5,$a6       // char 242
        .byte $a7,$a8,$a5,$ab,$8f,$ac,$ad,$aa       // char 243
        .byte $71,$ae,$ad,$aa,$71,$ae,$ad,$aa       // char 244
        .byte $af,$b0,$ad,$aa,$af,$b0,$6e           // char 245 (partial)

txt_0faf:
        .byte $20                                   // char 245 (partial)
        .byte $20,$b1,$b2,$b3,$b4,$b5,$b2,$b6       // char 246
        .byte $b2,$b5,$b2,$b6,$b2,$b5,$b2,$b3       // char 247
        .byte $b4,$b5,$b2,$b7,$8f,$b2,$b8,$b2       // char 248
        .byte $71,$b9,$b8,$b2,$71,$b9,$b8,$b2       // char 249
        .byte $ba,$bb,$b8,$b2,$ba,$bb,$6e           // char 250 (partial)

txt_0fd7:
        .byte $20                                   // char 250 (partial)
        .byte $20,$bc,$bd,$be,$bf,$c0,$be,$c1       // char 251
        .byte $be,$c2,$be,$c1,$be,$c3,$bd,$be       // char 252
        .byte $bf,$c0,$be,$c4,$c5,$be,$c6,$be       // char 253
        .byte $c7,$be,$c6,$be,$c7,$be,$c8,$c9       // char 254
        .byte $be,$ca,$76,$c9,$be,$ca,$76,$20       // char 255
        .byte $4c,$f9,$20,$4c,$e7,$1e,$00,$0c       // char 256
        .byte $0c,$00,$00,$00,$00,$00,$00,$00       // char 257
        .byte $00,$00,$00,$00,$01,$08,$00,$07       // char 258
        .byte $0e,$ff,$ff,$ff,$02,$02,$04,$02       // char 259
        .byte $02,$02,$07,$01,$01,$01,$01,$01       // char 260
        .byte $01,$10,$f0,$11,$00,$00,$5f,$00       // char 261
        .byte $00,$41,$89,$8a,$85,$02,$02,$02       // char 262
        .byte $68,$78,$38,$4e,$23,$14,$00,$00       // char 263
        .byte $02,$00,$00,$24,$00,$00,$00,$00       // char 264
        .byte $00,$50,$02,$02,$00,$00,$00,$00       // char 265
        .byte $00,$00,$09,$00,$00,$01,$00,$00       // char 266
        .byte $01,$00,$00,$00,$d6,$e9,$53,$5e       // char 267
        .byte $07,$03,$08,$08,$a3,$08,$08,$04       // char 268
        .byte $09,$09,$40,$03,$0d,$0a,$68,$f8       // char 269
        .byte $a9,$00,$04,$04,$00,$01,$01,$00       // char 270
        .byte $01,$00,$00,$ff,$10,$00,$00,$00       // char 271
        .byte $00,$00,$06,$01,$01,$07,$fe,$04       // char 272
        .byte $04,$09,$04,$04,$0b,$00,$00,$00       // char 273

// --- Region $16d1-$1f3f ---
.pc = $16d1 "dat_16d1"

dat_16d1:
        .byte $0c,$1c,$2d,$3e,$51,$66,$7b,$91,$a9,$c3,$dd,$fa,$18,$38,$5a,$7d // ..->Qf{......8Z}
        .byte $a3,$cc,$f6,$23,$53,$86,$bb,$f4,$30,$70,$b4,$fb,$47,$98,$ed,$47 // ...#S...0p..G..G
        .byte $a7,$0c,$77,$e9,$61,$e1,$68,$f7,$8f,$30,$da,$8f,$4e,$18,$ef,$d2 // ..w.a.h..0..N...
        .byte $c3,$c3,$d1,$ef,$1f,$60,$b5,$1e,$9c,$31,$df,$a5,$87,$86,$a2,$df // .....`...1......
        .byte $3e,$c1,$6b,$3c,$39,$63,$be,$4b,$0f,$0c,$45,$bf,$7d,$83,$d6,$79 // >.k<9c.K..E.}..y
        .byte $73,$c7,$7c,$97,$1e,$18,$8b,$7e,$fa,$06,$ac,$f3,$e6,$8f,$f8,$2e // s.|....~........
        .fill 12, $01
        .byte $02,$02,$02,$02,$02,$02,$02,$03,$03,$03,$03,$03,$04,$04,$04,$04 // ................
        .byte $05,$05,$05,$06,$06,$07,$07,$07,$08,$08,$09,$09,$0a,$0b,$0b,$0c // ................
        .byte $0d,$0e,$0e,$0f,$10,$11,$12,$13,$15,$16,$17,$19,$1a,$1c,$1d,$1f // ................

txt_176d:
        .text "!#%'*,/258;?CGKOTY"
        .byte $5e,$64,$6a,$70,$77,$7e,$86,$8e,$96,$9f,$a8,$b3,$bd,$c8,$d4,$e1 // ^djpw~..........
        .byte $ee,$fd,$c3,$1a,$d8,$1a,$ed,$1a,$e2,$1e,$0e,$1b,$29,$1b,$6c,$1b // ............).l.
        .byte $96,$1b,$45,$1c,$54,$1c,$5c,$1c,$cd,$1c,$82,$1b,$d7,$1c,$eb,$1c // ..E.T.\.........
        .byte $5a,$1d,$6e,$1d,$b1,$1d,$d9,$1d,$e8,$1d,$f6,$1d,$02,$1e,$15,$1e // Z.n.............
        .byte $45,$1e,$64,$1e,$90,$1e,$ac,$1e,$f8,$19,$01,$1a,$04,$1a,$09,$1a // E.d.............
        .byte $0e,$1a,$fd,$17,$58,$18,$8a,$18,$c4,$18,$e1,$18,$2a,$19,$40,$19 // ....X.......*.@.
        .byte $58,$19,$76,$19,$8f,$19,$aa,$19,$11,$18,$71,$18,$95,$18,$d7,$18 // X.v.......q.....
        .byte $f0,$18,$34,$19,$49,$19,$67,$19,$85,$19,$9e,$19,$b9,$19,$00,$09 // ..4.I.g.........
        .byte $09,$09,$09,$09,$81,$11,$11,$11,$11,$11,$11,$11,$11,$11,$11,$11 // ................
        .byte $10,$fe,$00,$00,$00,$00,$00,$00,$d0,$b2,$b0,$ae,$ac,$aa,$a9,$a8 // ................
        .byte $a7,$a6,$a5,$a4,$a4,$a3,$a3,$a2,$a2,$a1,$a1,$a0,$a0,$9f,$9f,$9f // ................
        .byte $9e,$9e,$9e,$9e,$9d,$9d,$9d,$9d,$9c,$9c,$9c,$9c,$9c,$9b,$9b,$9b // ................
        .byte $9b,$9b,$9a,$9a,$9a,$9a,$9a,$9a,$99,$99,$99,$99,$99,$99,$98,$98 // ................
        .byte $98,$98,$98,$98,$98,$97,$97,$97,$fe,$16,$09,$09,$09,$09,$09,$11 // ................
        .byte $41,$81,$81                           // A..

txt_1862:
        .text "AAAAAAAA"
        .byte $81,$41,$81,$41,$80,$10,$ff,$16,$00,$00,$00,$00,$00,$b4,$b0,$d0 // .A.A............
        .byte $d0,$af,$ae,$ad,$ac,$ab,$aa,$ab,$aa,$d0,$ab,$d0,$aa,$d0,$bd,$ff // ................
        .byte $00,$09,$09,$09,$09,$09,$11,$11,$11,$10,$fe,$00,$00,$00,$00,$00 // ................
        .byte $00,$06,$08,$0a,$0c,$0d,$0c,$0b,$0a,$08,$07,$06,$05,$05,$04,$04 // ................
        .byte $03,$03,$03,$03,$02,$02,$02,$02,$02,$02,$02,$02,$02,$01,$01,$01 // ................
        .fill 8, $01
        .byte $00,$fe,$00,$09,$09,$09,$09,$09,$81,$11,$11,$11,$11,$11,$11,$11 // ................
        .byte $11,$11,$11,$10,$fe,$07,$00,$00,$00,$00,$00,$d0,$c4,$00,$ff,$00 // ................
        .byte $09,$09,$09,$09,$09,$81,$11,$11,$11,$11,$11,$11,$10,$fe,$15,$00 // ................
        .byte $00,$00,$00,$00,$d0,$08,$0a,$0c,$08,$0a,$06,$09,$05,$08 // ..............

spr_1900:
        // === Sprite data (64 bytes, $1900-$193f) ===
        .byte $04,$08,$04                           // .....#......#........#..
        .byte $07,$03,$07                           // .....###......##.....###
        .byte $03,$07,$03                           // ......##.....###......##
        .byte $06,$02,$06                           // .....##.......#......##.
        .byte $02,$06,$02                           // ......#......##.......#.
        .byte $05,$01,$05                           // .....#.#.......#.....#.#
        .byte $01,$05,$01                           // .......#.....#.#.......#
        .byte $05,$01,$05                           // .....#.#.......#.....#.#
        .byte $01,$05,$01                           // .......#.....#.#.......#
        .byte $04,$00,$04                           // .....#...............#..
        .byte $00,$04,$00                           // .............#..........
        .byte $04,$00,$04                           // .....#...............#..
        .byte $00,$04,$00                           // .............#..........
        .byte $04,$00,$ff                           // .....#..........########
        .byte $00,$09,$09                           // ............#..#....#..#
        .byte $09,$09,$09                           // ....#..#....#..#....#..#
        .byte $81,$41,$40                           // #......#.#.....#.#......
        .byte $fe,$0c,$00                           // #######.....##..........
        .byte $00,$00,$00                           // ........................
        .byte $00,$df,$08                           // ........##.#####....#...
        .byte $04,$02,$00                           // .....#........#.........
        .byte $fe                                   // sprite 0 padding
        .byte $00,$09,$09,$09,$09,$09,$81,$41,$fe,$00,$00,$00,$00,$00,$00,$df // .......A........
        .byte $08,$05,$03,$02,$01,$01,$00,$fe,$00,$09,$09,$09,$09,$09,$11,$11 // ................
        .byte $11,$11,$11,$11,$11,$10,$fe,$00,$00,$00,$00,$00,$00,$08,$06,$04 // ................
        .byte $03,$02,$01,$01,$00,$fe,$00,$09,$09,$09,$09,$09,$81,$11,$11,$11 // ................
        .byte $11,$11,$11,$10,$fe,$07,$00,$00,$00,$00,$00,$d0,$01,$00,$ff,$00 // ................
        .byte $09,$09,$09,$09,$09,$81,$11,$11,$11,$11,$11,$11,$10,$fe,$00,$00 // ................
        .byte $00,$00,$00,$00,$d0,$02,$01,$00,$80,$fe,$00,$09,$09,$09,$09,$09 // ................
        .byte $11,$11,$11,$11,$11,$11,$11,$10,$fe,$36,$00,$00,$00,$00,$00,$0c // .........6......
        .byte $0c,$0b,$0d,$0a,$0e,$0a,$0e,$09,$0f,$09,$0f,$09,$0f,$08,$10,$08 // ................
        .byte $10,$08,$10,$08,$10,$07,$11,$07,$11,$07,$11,$07,$11,$07,$11,$06 // ................
        .byte $12,$06,$12,$06,$12,$06,$12,$06,$12,$06,$12,$06,$12,$05,$13,$05 // ................
        .byte $13,$04,$14,$04,$14,$04,$14,$ff,$30,$80,$10,$fc,$10,$fe,$1c,$ff // ........0.......
        .byte $fe,$30,$80,$fe,$79,$00,$01,$10,$fe,$1f,$00,$01,$ff,$fe,$18,$00 // .0..y...........
        .byte $01,$30,$fe,$08,$09,$0f,$e8,$10,$00,$00,$80,$08,$09,$0f,$e8,$10 // .0..............
        .byte $00,$00,$81,$08,$09,$0f,$e6,$10,$00,$00,$82,$08,$09,$00,$c8,$10 // ................
        .byte $00,$00,$83,$08,$09,$0f,$e8,$12,$00,$00,$84,$08,$09,$0f,$e8,$10 // ................
        .byte $00,$00,$84,$03,$41,$03,$69,$10,$5f,$41,$85,$03,$41,$0a,$a9,$11 // ....A.i._A..A...
        .byte $5f,$41,$85,$04,$41,$00,$78,$10,$00,$02,$86,$01,$41,$20,$65,$10 // _A..A.x.....A e.
        .byte $00,$03,$00,$01,$41,$20,$65,$10,$5f,$13,$00,$08,$11,$06,$88,$10 // ....A e._.......
        .byte $3f,$10,$87,$08,$11,$03,$69,$10,$00,$00,$88,$08,$11,$03,$68,$10 // ?.....i.......h.
        .byte $00,$00,$89,$03,$41,$00,$49,$10,$5f,$81,$85,$08,$11,$0d,$f8,$f0 // ....A.I._.......
        .byte $00,$00,$8a,$08,$09,$00,$88,$10,$00,$00,$83,$04,$41,$00,$28,$10 // ............A.(.
        .byte $00,$02,$00,$08,$11,$00,$a8,$f0,$00,$00,$8a,$08,$11,$00,$78,$f0 // ..............x.
        .byte $00,$00,$8a,$08,$11,$00,$48,$f0,$00,$00,$8a,$0a,$0a,$00,$00,$81 // ......H.........
        .byte $11,$00,$00,$8c,$67,$00,$67,$0c,$67,$01,$6f,$01,$67,$06,$67,$0a // ....g.g.g.o.g.g.
        .byte $6f,$0a,$13,$6f,$01,$63,$01,$e5,$80,$63,$02,$80,$02,$02,$63,$02 // o..o.c...c....c.
        .byte $8c,$67,$08,$0b,$0b,$14,$80,$63,$02,$8c,$17,$17,$e3,$80,$63,$0d // .g.....c......c.
        .byte $80,$0d,$0d,$8c,$62,$03,$09,$80,$04,$80,$07,$0e,$0f,$0e,$11,$0e // ....b...........
        .byte $0f,$0e,$11,$0e,$12,$0e,$10,$15,$04,$04,$8c,$16,$16,$e3,$c0,$82 // ................
        .byte $00,$c3                               // ..

txt_1b12:
        .text "4$4"
        .byte $c1                                   // 'A' | $80 (end-of-string marker)
        .byte $84,$00,$c0,$82,$00,$c3               // ......

txt_1b1c:
        .text "$4$4$"
        .byte $c1                                   // 'A' | $80 (end-of-string marker)
        .byte $84,$00,$c3,$82,$24,$34,$ff,$c8,$82   // ....$4...

txt_1b2b:
        .text "<:7<:7<:7<:7<:7<:5<:5<:5<:5<:5<:3<:3<:3<:3<:3<:3<:5<:5<:5<:5<:5?"
        .byte $ff,$fe,$f0,$c6,$86,$0c,$0c,$88,$0a,$84,$0c,$0c,$0a,$86,$0c,$0c // ................
        .byte $88,$0a,$84,$0c,$0a,$07,$ff,$c6,$86,$0c,$0c,$88,$0a,$84,$0c,$0c // ................
        .byte $0a,$86,$0c,$0c,$88,$0a,$84,$07,$05,$03,$ff,$fe,$f4,$c7,$84,$0c // ................
        .byte $81,$0c,$e1,$84,$0c,$81,$0c,$e1,$88,$0a,$84,$0c,$0c,$0a,$0c,$81 // ................
        .byte $0c,$e1,$84,$0c,$81,$0c,$e1,$88,$0a,$84,$0f,$0e,$0a,$0c,$81,$0c // ................
        .byte $e1,$84,$0c,$81,$0c,$e1,$88,$0a,$84,$0c,$0c,$0a,$0c,$81,$0c,$e1 // ................
        .byte $84,$0c,$81,$0c,$e1,$88,$fd,$42,$0f,$01,$84,$fd,$26,$11,$13,$84 // .......B....&...
        .byte $fd,$26,$13,$16,$82,$22,$24,$84,$0c,$81,$0c,$e1,$84,$0c,$81,$0c // .&..."$.........
        .byte $e1,$88,$0a,$84,$0c,$0c,$0a,$0c,$81,$0c,$e1,$84,$0c,$81,$0c,$e1 // ................
        .byte $88,$0a,$84,$0f,$0e,$0a,$0c,$81,$0c,$e1,$84,$0c,$81,$0c,$e1,$88 // ................
        .byte $0a,$84,$0c,$0c,$0a,$0c,$81,$0c,$e1,$84,$0f,$81,$0f,$e1,$84,$11 // ................
        .byte $81,$11,$e1,$84,$13,$81,$13,$e1,$82,$16,$18,$84,$16,$ff,$c3,$84 // ................
        .byte $00,$c2,$82,$1e,$c3,$00,$c1,$84,$00,$c3,$82,$00,$c2,$84,$1e,$c2 // ................
        .byte $82,$1e,$c3,$84,$00,$c1,$00,$c3,$00,$ff,$cf,$82,$12,$84,$12,$12 // ................
        .byte $10,$10,$12,$82,$12,$84,$12,$10,$ff,$c0,$88,$00,$86,$00,$82,$00 // ................
        .byte $ff,$fe,$f4,$c7,$81,$0c,$0c,$82,$0c,$84,$0c,$82,$24,$ce,$24,$c7 // ............$.$.
        .byte $22,$ce,$22,$c7                       // ".".

txt_1c6f:
        .text "$"
        .byte $22                                   // double quote character
        .byte $ce                                   // 'N' | $80 (end-of-string marker)
        .byte $22,$c7,$27,$ce,$27,$c7,$84,$24,$82,$2e,$81,$0c,$0c,$82,$0c,$84 // ".'.'..$........
        .byte $0c,$82,$24,$ce,$24,$c7,$22,$ce,$22,$c7 // ..$.$.".".

txt_1c8c:
        .text ")'"
        .byte $ce                                   // 'N' | $80 (end-of-string marker)
        .byte $27,$c7,$24,$ce,$24,$c7,$84,$22,$82,$2d,$81,$0c,$0c,$82,$0c,$84 // '.$.$..".-......
        .byte $0c,$82,$24,$ce,$24,$c7,$22,$ce,$22,$c7 // ..$.$.".".

txt_1ca9:
        .text "'$"
        .byte $ce                                   // 'N' | $80 (end-of-string marker)
        .byte $24,$c7,$1f,$ce,$1f,$c7,$22,$1e,$1d,$0f,$1b,$11,$1d,$12,$1e,$13 // $.....".........
        .byte $1f,$16,$22,$23,$84,$fd               // .."#..

txt_1cc2:
        .text "&$H"
        .byte $c4                                   // 'D' | $80 (end-of-string marker)
        .byte $81,$1f,$1f,$82,$1c,$19,$ff,$cf,$86,$0f,$0f,$0f,$0f,$84,$08,$08 // ................
        .byte $ff,$c0,$82,$00,$cd,$3a,$81,$35,$35,$82,$35,$c1,$84,$00,$cd,$82 // .....:.55.5.....
        .byte $3a,$c0,$82,$00,$ff,$cf,$84,$0f,$c2,$82,$23,$cf,$0f,$c2,$1f,$23 // :.........#....#
        .byte $cf,$84,$0f,$c2,$82,$23,$cf,$0f,$c2,$1f,$23,$cf,$84,$08,$08,$cf // .....#....#.....
        .byte $0f,$c2,$82,$23,$cf,$0f,$c2,$1f,$23,$cf,$84,$0f,$c2,$82,$1c,$cf // ...#....#.......
        .byte $0f,$c2,$1c,$1c,$cf,$08,$c2,$1c,$cf,$08,$c2,$1c,$cf,$84,$0f,$c2 // ................
        .byte $82,$23,$cf,$0f,$c2,$1f,$23,$cf,$84,$0f,$c2,$82,$23,$cf,$0f,$c2 // .#....#.....#...
        .byte $1f,$23,$cf,$84,$08,$08,$cf,$82,$0f,$c2,$1d,$1d,$cf,$0f,$c2,$1f // .#..............
        .byte $1f,$cf,$0f,$c2                       // ....

txt_1d4a:
        .text "##"
        .byte $cf                                   // 'O' | $80 (end-of-string marker)
        .byte $0f,$c2                               // ..

txt_1d4f:
        .text "%%"
        .byte $cf                                   // 'O' | $80 (end-of-string marker)
        .byte $08,$c2,$25,$cf,$08,$c2,$25,$ff,$e2,$d0,$82,$34,$24,$34,$e6,$d0 // ..%...%....4$4..
        .byte $82
        .text "$4$4$"
        .byte $e4,$d0,$82
        .byte $24,$34,$ff,$d1,$82

txt_1d70:
        .text "?<:7<:7<:7<:7<:7<:5<:5<:5<:5<:5<:3<:3<:3<:3<:3<:3<:5<:5<:5<:5<:5"
        .byte $ff,$fe,$f4,$c7,$84,$0c,$81,$0c,$e1,$84,$0c,$81,$0c,$e1,$84,$0a // ................
        .byte $84,$0c,$81,$0c,$e1,$84,$0c,$81,$0c,$e1,$84,$0a,$84,$0c,$81,$0c // ................
        .byte $e1,$84,$0c,$81,$0c,$e1,$84,$0a,$ff,$c7,$84,$09,$82,$21,$ce,$21 // .............!.!
        .byte $c7,$84,$16,$82,$22,$ce,$22,$ff,$c7,$84,$0f,$82,$27,$ce,$27,$c7 // ....".".....'.'.
        .byte $1d                                   // .

txt_1df1:
        .byte $22                                   // double quote character
        .text "$"
        .byte $ce                                   // 'N' | $80 (end-of-string marker)
        .byte $24,$ff,$c7,$84,$12,$82,$2a,$84,$11,$82,$29,$84,$0f,$ff,$c7,$81 // $.....*...).....

txt_1e04:
        .text "')"
        .byte $ce                                   // 'N' | $80 (end-of-string marker)
        .byte $82,$29,$c7,$27,$ce,$27,$c7,$26,$ce,$26,$c7,$22,$24,$ff,$c0,$82 // .).'.'.&.&."$...
        .byte $00,$cd                               // ..

txt_1e19:
        .text ":5"
        .byte $c0                                   // '@' | $80 (end-of-string marker)
        .byte $00,$cd                               // ..

txt_1e1e:
        .text "5:"
        .byte $c0                                   // '@' | $80 (end-of-string marker)
        .byte $00,$cd                               // ..

txt_1e23:
        .text ":5"
        .byte $c0                                   // '@' | $80 (end-of-string marker)
        .byte $00,$cd                               // ..

txt_1e28:
        .text "5:"
        .byte $c0                                   // '@' | $80 (end-of-string marker)
        .byte $00,$cd                               // ..

txt_1e2d:
        .text ":5"
        .byte $c0                                   // '@' | $80 (end-of-string marker)
        .byte $00,$cd                               // ..

txt_1e32:
        .text "5:"
        .byte $c0                                   // '@' | $80 (end-of-string marker)
        .byte $00,$cd                               // ..

txt_1e37:
        .text ":5"
        .byte $c0                                   // '@' | $80 (end-of-string marker)
        .byte $00,$cd                               // ..

txt_1e3c:
        .text "5:"
        .byte $c1                                   // 'A' | $80 (end-of-string marker)
        .byte $84,$00,$00,$00,$00,$ff,$cf,$84,$0f,$82,$0f,$84,$08,$08,$08,$0f // ................
        .byte $82,$0f,$84,$0f,$08,$0f,$82,$0f,$84,$08,$08,$0f,$d2,$0f,$d3,$0f // ................
        .byte $d4,$0f,$82,$0f,$ff,$c7,$84,$0f,$82,$0f,$84,$11,$82,$11,$84,$0f // ................
        .byte $82,$0f,$84,$11,$82,$11,$84,$12,$82,$12,$84,$13,$82,$13,$84,$16 // ................
        .byte $82,$16,$84,$13,$82,$13,$84,$16,$82,$17,$84,$18,$82,$18,$22,$24 // .............."$
        .byte $ff,$cf,$82,$0f,$84,$0f,$0f,$0f,$0f,$08,$82,$08,$84,$08,$08,$82 // ................
        .byte $0f,$84,$0f,$0f,$0f,$0f,$08,$08,$82,$0f,$84,$08,$ff,$c3,$82 // ...............

txt_1eae:
        .text "0/"
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $1c,$c3                               // ..

txt_1eb3:
        .text ".-"
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $1c,$c3                               // ..

txt_1eb8:
        .text ",+"
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $19,$c3                               // ..

txt_1ebd:
        .text "*)"
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $19,$c3                               // ..

txt_1ec2:
        .text "('"
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $19,$c3                               // ..

txt_1ec7:
        .text "&'("
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $1c,$c3                               // ..

txt_1ecd:
        .text ")*"
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $1c,$c3                               // ..

txt_1ed2:
        .text "+,"
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $1f,$c3                               // ..

txt_1ed7:
        .text "-."
        .byte $c5                                   // 'E' | $80 (end-of-string marker)
        .byte $1f,$1f,$c3,$2f,$c5,$1f,$1f,$ff,$e8,$e8,$e8,$e8,$ff,$78,$a9,$00 // .../.........x..
        .byte $20,$90,$10,$ad,$11,$d0,$30,$fb,$a9,$10,$20,$08,$1f,$a9,$5e,$20 //  .....0... ...^ 
        .byte $08,$1f,$a9,$ac,$20,$08,$1f,$a9,$fa,$20,$08,$1f,$30,$e5,$cd,$12 // .... .... ..0...
        .byte $d0,$d0,$fb,$4c,$d4,$10               // ...L..

txt_1f10:
        .text "** MUSIC BY JEROEN TEL, RELOCATED BY ALEX/<C> **"

// --- Region $2501-$2a72 ---
.pc = $2501 "dat_2501"

dat_2501:
        .byte $81,$83,$85,$87,$89,$8b,$8d,$8f,$11,$92,$94,$96,$98,$9a,$9c,$9e // ................
        .byte $a0,$a2,$a4,$a6,$a8,$aa,$ac,$ae,$b0,$b2,$00,$00,$00,$00,$00,$00 // ................
        .byte $34,$b5,$00,$00,$00,$00,$35,$3d,$3e,$00,$b7,$39,$ba,$3c,$00,$bd // 4.....5=>..9.<..
        .byte $11,$bf,$c1,$c3,$c5,$c7,$c9,$cb,$cd,$4f,$50,$00,$00,$00,$d1,$20 // .........OP.... 
        .byte $00,$01,$02,$03,$04,$05,$04,$06,$02,$07,$00,$08,$09,$0a,$0b,$0c // ................
        .byte $0d,$0e,$0f,$0b,$10,$0d,$20,$11,$12,$04,$06,$04,$06,$02,$03,$04 // ...... .........
        .byte $06,$02,$03,$13,$07,$28,$06,$0d,$0d,$0d,$0d,$0d,$0d,$29,$10,$2a // .....(.......).*
        .byte $2b,$2c,$2d,$0d                       // +,-.

txt_2575:
        .text "..9: ;< 8"
        .byte $06,$2c,$03,$2c,$03,$2a,$0c,$3d,$3e,$00,$07,$28,$3f,$40,$03,$40 // .,.,.*.=>..(?@.@
        .byte $01                                   // .

txt_258f:
        .text "AARS "
        .byte $14,$15,$16,$17,$18,$19,$1a,$1b,$1c,$1d,$14,$1e,$1f,$21,$14,$15 // .............!..
        .byte $0d,$22,$1b,$14,$23,$18,$19,$0d,$0d,$0d,$0d,$18,$24,$14,$1e,$18 // ."..#.......$...
        .byte $25,$14                               // %.

txt_25b6:
        .text "#&' "
        .byte $0d                                   // string terminator
        .byte $18                                   // .

txt_25bc:
        .text "$/0123#456"
        .byte $1d                                   // .

txt_25c7:
        .text "7  BCDEFG"
        .byte $18,$1b,$36,$1d,$26,$48,$49,$15,$4a,$4b,$1c // ..6.&HI.JK.

txt_25db:
        .text "HLMNH&OPQTU"
        .byte $8f,$ae,$c2,$d0,$dd,$ae,$ae,$c2,$c2,$ae,$01,$01,$01,$01,$01,$01 // ................
        .byte $01,$01,$02,$02,$02,$02,$02,$02,$03,$03,$03,$03,$03,$04,$04,$04 // ................
        .byte $04,$05,$05,$05,$06,$06,$07,$07,$08,$08,$08,$08,$07,$07,$06,$06 // ................
        .byte $05,$05,$05,$04,$04,$04,$04,$03,$03,$03,$03,$03,$02,$02,$02,$02 // ................
        .byte $02,$02,$01,$01,$01,$01,$01,$01,$01,$01,$0f,$0f,$0f,$0f,$0f,$0f // ................
        .fill 10, $0f
        .byte $0c,$0c,$0b,$0c,$0c,$0f,$0f,$0f,$07,$07,$07,$07,$01,$01,$01,$01 // ................
        .byte $01,$01,$01,$01,$07,$07,$07,$07,$0f,$0f,$0f,$0c,$0c,$0b,$0c,$0c // ................
        .fill 16, $0f
        .byte $0b,$0b,$0c,$0c,$0f,$0f,$07,$01,$0c,$0c,$0f,$0f,$07,$07,$01,$01 // ................
        .byte $0f,$0f,$0f,$07,$07,$07,$01,$01,$01,$02,$09,$05,$08,$02,$0c,$01 // ................

txt_2690:
        .text "YTMJD>75"
        .byte $04,$01,$03,$06,$0b,$07,$03,$02,$8d,$85,$7f,$78,$72,$6b,$64,$5e // ...........xrkd^
        .byte $0a,$03,$08,$02,$06,$05,$01,$04,$bb,$b4,$b0,$af,$a4,$9d,$99,$92 // ................
        .byte $02,$07,$01,$0a,$04,$01,$05,$0a,$ef,$e3,$df,$da,$d4,$ce,$c6,$bf // ................
        .byte $67,$58,$95,$df,$5f,$f6,$6f,$cf,$c4,$56,$5a,$9a,$65,$f3,$d2,$78 // gX.._.o..VZ.e..x
        .byte $65,$e2,$f6,$ff,$a2,$df,$59,$dd,$f0,$98,$67,$13,$f4,$78,$9d,$a7 // e.....Y...g..x..
        .byte $bf,$c6,$dd,$62                       // ...b

txt_26ec:
        .text "    "
        .byte $10,$12,$0f,$15,$04,$0c,$19,$20,$20,$10,$12,$05,$13,$05,$0e,$14 // .......  .......
        .byte $13,$00                               // ..

txt_2702:
        .text "     "

txt_2707:
        .encoding "screencode_mixed"
        .text "turn change prv ."
        .text "@"
        .encoding "petscii_upper"

txt_2719:
        .text "             "

txt_2726:
        .encoding "screencode_mixed"
        .text "holding back the years, holding back the tears"
        .encoding "petscii_upper"

txt_2754:
        .text ".      "

txt_275b:
        .encoding "screencode_mixed"
        .text "i wasted all my tears, i wasted all those years"
        .encoding "petscii_upper"

txt_278a:
        .text ".      "

txt_2791:
        .encoding "screencode_mixed"
        .text "i will keep holding on, holding, holding, holding"
        .encoding "petscii_upper"

txt_27c2:
        .text "...      "

txt_27cb:
        .encoding "screencode_mixed"
        .text "today chromance serves you "
        .byte $22                                   // double quote
        .text "turn change preview"
        .byte $22                                   // double quote
        .text " from mystery arts, hungary"
        .encoding "petscii_upper"

txt_2816:
        .text ".   "

txt_281a:
        .encoding "screencode_mixed"
        .text "original provided and released for the first time by mr.wax"
        .encoding "petscii_upper"

txt_2855:
        .text ".   "

txt_2859:
        .encoding "screencode_mixed"
        .text "note that this playable version includes only 3 levels out of a lot more"
        .encoding "petscii_upper"

txt_28a1:
        .text "!   "

txt_28a5:
        .encoding "screencode_mixed"
        .text "call our boards, "
        .byte $22                                   // double quote
        .text "catastrophic failure"
        .encoding "petscii_upper"

txt_28cb:
        .byte $22                                   // double quote character
        .text " 305-254-0830, "
        .byte $22                                   // double quote character
        .byte $08,$09,$07,$08,$17,$01,$19           // .......

txt_28e3:
        .byte $22                                   // double quote character
        .text " +46-42-83773.   "

txt_28f5:
        .encoding "screencode_mixed"
        .text "be sure to pick up all our soon coming releases"
        .encoding "petscii_upper"

txt_2924:
        .text "!   "

txt_2928:
        .encoding "screencode_mixed"
        .text "i'm outta here"
        .encoding "petscii_upper"

txt_2936:
        .text "!   "

txt_293a:
        .encoding "screencode_mixed"
        .text "peace, love, unity"
        .encoding "petscii_upper"

txt_294c:
        .text "!   ("
        .byte $03,$29,$20,$0d,$12,$2e,$17,$01,$18   // .) ......

txt_295a:
        .text " 1993"

dat_295f:
        // === Fill data (35 bytes, $295f-$2981) ===
        .fill 35, $20
        .byte $00                                   // .

txt_2983:
        .encoding "screencode_mixed"
        .text "   we take our hats off to"
        .encoding "petscii_upper"

txt_299d:
        .text "...  "

txt_29a2:
        .encoding "screencode_mixed"
        .text "tsm, empire, nei, demonix, legend, illusion, talent, red sector inc., enigma, censor, dominators, success, arcade, f4cg, the ruling company, pandora, fairlight and the steady rest"
        .encoding "petscii_upper"

txt_2a55:
        .text "!                             "
