// ============================================
// output - Disassembled Source
// ============================================
// KickAssembler syntax
// Generated by Restore 64 v0.2.1 alpha build 298, 2026-04-11 21:36:57
// https://restore64.dev by datucker / Rabenauge
//
// Load address: $0700  End: $21ff  (6912 bytes)
// Crunched with Exomizer v2/v3 — depacked by emulation
// Packer entry: $080b (via BASIC SYS 2059)
// Entry point:  $1aa0 (6816)
// IRQ handler:  $101f (irq_101f)
//
// Code: 2585 bytes, Data: 4327 bytes
// Labels: 191, Subroutines: 37
//
// Cross-references: all OK
// ============================================


// --- Region $0814-$0851 ---
.pc = $0814 "sub_0814"
// Referenced by: jsr from $1274

sub_0814:
        sbc $eaeb,x
        nop
        .byte $3f,$ff,$ff                           // rla $ffff,x // ILLEGAL
        nop
        .byte $ff,$e9,$e9                           // isc $e9e9,x // ILLEGAL
        sbc #$ff
        .byte $ff,$ff,$ea                           // isc $eaff,x // ILLEGAL
        sbc $e9e9,x
        sbc #$3f
        .byte $ff,$ff,$ea                           // isc $eaff,x // ILLEGAL
        sbc $eaeb,x
        nop
        .byte $3f,$ff,$ff                           // rla $ffff,x // ILLEGAL
        nop
        sbc $eaeb,x
        nop
        .byte $3f,$ff,$ff                           // rla $ffff,x // ILLEGAL
        nop
        .byte $ff,$e9,$e9                           // isc $e9e9,x // ILLEGAL
        sbc #$fd
        sbc $e9fd,x
        sbc $eae9,x
        nop
        .byte $0f,$0f,$0f                           // slo $0f0f // ILLEGAL
        asl $0e0f
        asl.abs $000e
        brk

// --- Region $0f14-$0f14 ---
.pc = $0f14 "sub_0f14"
// Referenced by: jsr from $120f

sub_0f14:
        brk

// --- Region $1000-$1052 ---
.pc = $1000 "sub_1000"
// Referenced by: jsr from $1aa9

sub_1000:
        sei
        lda #$1b
        sta $d011
        lda #$2d
        sta $d012
        ldx #$01
        stx $d01a
        stx $dc0d
.label smc_1014 = * + 1
        lda #$1f                                    // !SMC: modified by $166d
        sta $0314
        lda #$10
        sta $0315
        cli
        rts

irq_101f:
        sei
        ldx txt_107c
        beq loc_103f

loc_1025:
        nop
        nop
        nop
        lda $d012
        and #$07
        ora #$18
        sta $d011
        ldy #$07

loc_1034:
        dey
        bne loc_1034
        nop
        nop
        dex
        bne loc_1025
        lda dat_107b

loc_103f:
        sta $d016
        jmp loc_1d3f

loc_1045:
        lda #$06
        sta $d022
        lda #$0e
        sta $d023

smc_104f:
        nop                                         // !SMC: modified by $10c7

smc_1050:
        nop                                         // !SMC: modified by $10cc

smc_1051:
        nop                                         // !SMC: modified by $10d1
        rts

// --- Region $1066-$107a ---
.pc = $1066 "sub_1066"
// Referenced by: jsr from $1d52

sub_1066:
        ldx $107d
        lda $107e,x
        sta txt_107c
        nop
        inx
        cpx #$32
        bne loc_1077
        ldx #$00

loc_1077:
        stx $107d
        rts

// --- Region $10c5-$10d4 ---
.pc = $10c5 "loc_10c5"

loc_10c5:
        lda #$20
        sta smc_104f                                // SMC: modifies $104f
        lda #$2a
        sta smc_1050                                // SMC: modifies $1050
        lda #$16
        sta smc_1051                                // SMC: modifies $1051
        rts

// --- Region $10e0-$1107 ---
.pc = $10e0 "sub_10e0"
// Referenced by: jsr from $1d5a, $1d5d, $1d60

sub_10e0:
        dec dat_107b
        ldx dat_107b
        cpx #$0f
        bne loc_1107
        ldx #$00
        ldx #$00

loc_10ee:
        lda $0401,x
        sta $0400,x
        lda $0429,x
        sta $0428,x
        inx
        cpx #$27
        bcc loc_10ee
        lda #$17
        sta dat_107b
        jsr sub_1110

loc_1107:
        rts

// --- Region $1110-$1155 ---
.pc = $1110 "sub_1110"
// Referenced by: jsr from $1104

sub_1110:
        inc $110f
        ldx $110f
        cpx #$02
        bcc loc_113e
.label smc_111b = * + 1
.label smc_111c = * + 2
        ldx $1338                                   // !SMC: modified by $1137, $113a
        cpx #$00
        beq sub_1133
        jsr sub_1170
        clc
        adc #$80
        sta $044f
        inc smc_111b
        bne loc_1132
        inc smc_111c

loc_1132:
        rts
// Referenced by: jsr from $1aac; branch from $111f

sub_1133:
        ldy #$a0
        lda #$11
        sty smc_111b                                // SMC: modifies $111b
        sta smc_111c                                // SMC: modifies $111c
        rts

loc_113e:
        lda #$00
        sta $cfff
        lda $0426
        clc
        adc #$40
        sta $0427
        sta $d404,x
        nop
        adc #$80
        sta $044f
        rts

// --- Region $1160-$1179 ---
.pc = $1160 "loc_1160"

loc_1160:
        lda #$80
        sta $0291
        jmp loc_1e70

dat_1168:
        .fill 8, $00
// Referenced by: jsr from $1121

sub_1170:
        lda #$00
        sta $110f
        stx $0427
        txa
        rts

// --- Region $1203-$1342 ---
.pc = $1203 "sub_1203"
// Referenced by: jsr from $1246

sub_1203:
        asl $1401
.label sub_1207 = * + 1
        ora #$03
        jsr sub_1207
        ora $05
        .byte $14,$13                               // nop $13,x // ILLEGAL
.label sub_1210 = * + 1
        jsr sub_0f14
        jsr sub_203a
        jsr sub_1520
        .byte $13,$13                               // slo ($13),y // ILLEGAL
        bpl loc_1221
        jsr sub_1528
        .byte $13,$01                               // slo ($01),y // ILLEGAL

loc_1221:
        and #$2c
        jsr $0504
        .byte $14,$0f                               // nop $0f,x // ILLEGAL
        asl $1401
        .byte $0f,$12,$20                           // slo $2012 // ILLEGAL
        ora ($0e,x)
        .byte $04,$20                               // nop $20 // ILLEGAL
        .byte $14,$08                               // nop $08,x // ILLEGAL
        ora $20
        asl $1605
        ora $12
        ora $0e
        .byte $04,$09                               // nop $09 // ILLEGAL
        asl $2007
        and ($30),y
        bmi loc_1277
        jsr sub_1203
        ora $17
        rol $2e2e
        rol $212e
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        php
        ora $12
        .byte $0f,$20,$0f                           // slo $0f20 // ILLEGAL
        asl $20
        .byte $14,$08                               // nop $08,x // ILLEGAL
        ora $20
        .byte $14,$09                               // nop $09,x // ILLEGAL
        ora $2005
        ora #$13
        .byte $3a                                   // nop // ILLEGAL
        jsr sub_0814

loc_1277:
        ora $20
        ora $13,x
        ora ($2d,x)
        asl $1601
        ora $202c,y
        .byte $14,$08                               // nop $08,x // ILLEGAL
        ora $19
        jsr $0504
        .byte $13,$14                               // slo ($14),y // ILLEGAL
        .byte $12                                   // jam // ILLEGAL
        .byte $0f,$19,$05                           // slo $0519 // ILLEGAL
        .byte $04,$20                               // nop $20 // ILLEGAL
        ora ($20,x)
        ora #$12
        ora ($0e,x)
        jsr $050f
        .byte $0c,$2d,$06                           // nop $062d // ILLEGAL
        ora #$05
        .byte $0c,$04,$20                           // nop $2004 // ILLEGAL
        and ($21,x)
        and ($20,x)
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_1210
        ora $13
        .byte $13,$20                               // slo ($20),y // ILLEGAL
        ora #$14
        jsr $0102
        .byte $02                                   // jam // ILLEGAL

dat_12cc:
        .byte $05                                   // .
        jsr sub_2121
        and ($20,x)
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr sub_2020
        jsr $0020
        brk
        brk

// --- Region $1400-$141f ---
.pc = $1400 "sub_1400"
// Referenced by: jsr from $1aaf

sub_1400:
        ldx #$1a

loc_1402:
        lda $198f,x
        sta $d3ff,x
        dex
        bne loc_1402
        jsr sub_1a6c
        lda #$41
        sta $d404
        sta $d40b
        sta $d412
        jmp loc_1477
// Referenced by: jsr from $1668

sub_141c:
        jmp loc_10c5

dat_141f:
        .byte $00                                   // .

// --- Region $1429-$1431 ---
.pc = $1429 "loc_1429"

loc_1429:
        lda #$00
        sta $1635
        sta $1644
        rts

// --- Region $1477-$198d ---
.pc = $1477 "loc_1477"

loc_1477:
        nop
        nop
        nop
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$07
        sta $1463
        sta $143f
        lda #$0f
        sta $d408
        lda #$00
        sta $d409
        lda #$07
        sta $d40a
        lda #$36
        sta $d40c
        lda #$f9
        sta $d40d
        lda #$50
        sta $d416
        lda #$fa
        sta $d417
        lda #$1f
        sta $d418
        lda #$ef
        sta $d407
        lda #$40
        sta $d404
        sta $d412
        lda #$41
        sta $d40b
        nop
        nop
        lda #$00
        sta $144f
        lda #$10
        sta $d40f
        lda #$21
        sta $d412
        jsr sub_1a60
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$58
        sta $d407
        lda #$15
        sta $d408
        lda #$41
        sta $d40b
        nop
        nop
        nop
        jsr sub_1a60
        jsr sub_1a60
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$41
        sta $d40b
        nop
        jsr sub_1a40
        jsr sub_1a60
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$fd
        sta $d407
        lda #$0f
        sta $d408
        lda #$41
// Referenced by: jsr from $1215

sub_1520:
        sta $d40b
        nop
        jsr sub_1a30
.label sub_1528 = * + 1
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$58
        sta $d407
        lda #$15
        sta $d408
        lda #$41
        sta $d40b
        nop
        jsr sub_1a60
        jsr sub_1a30
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$41
        sta $d40b
        nop
        nop
        nop
        nop
        jsr sub_1a40
        lda #$20
        sta $d40f
        lda #$21
        sta $d412
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$20
        sta $d407
        lda #$20
        sta $d408
        lda #$41
        sta $d40b
        jsr sub_1a40
        lda #$05
        jsr sub_1a02
        nop
        nop
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$4f
        sta $d407
        lda #$15
        sta $d408
        lda #$41
        sta $d40b
        nop
        jsr sub_1a40
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$41
        sta $d40b
        nop
        jsr sub_1a40
        jsr sub_1a30
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$41
        sta $d40b
        nop
        nop
        jsr sub_1a40
        lda #$40
        sta $d40b
        jsr sub_1a20
        lda #$20
        sta $d407
        lda #$20
        sta $d408
        lda #$41
        sta $d40b
        jsr sub_1a40
        nop
        nop
        nop
        jsr sub_1a20
        jsr sub_1a20
        lda #$21
        sta $d408
        jsr sub_1a30
        lda #$20
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        lda #$21
        sta $d408
        jsr sub_1a30
        lda #$20
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        lda #$21
        sta $d408
        jsr sub_1a30
        lda #$20
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        jmp loc_164f

dat_1624:
        .byte $00,$ea,$ea,$ea,$ea,$02               // ......

loc_162a:
        dec $1629
        bne loc_163c
        lda #$05
        sta $1629
        lda #$11
        sta $d404

loc_1639:
        rts

loc_163a:
        and ($ea),y

loc_163c:
        lda $1629
        cmp #$02
        bne loc_1639
        lda #$10
        sta $d404
        rts

dat_1649:
        .byte $31,$ea,$00,$00,$00,$ea               // 1.....

loc_164f:
        lda #$0a
        sta $d401
        lda #$f7
        sta $d406
        lda #$10
        sta $d405
        lda #$80
        sta $d400
        lda #$10
        sta $d404
        jsr sub_141c
        lda #$00
        sta smc_1014                                // SMC: modifies $1014
        nop
        nop
        nop
        nop
        nop
        nop
        nop
        nop
        lda #$21
        sta $d408
        jsr sub_1a30
        lda #$20
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        lda #$21
        sta $d408
        jsr sub_1a30
        lda #$20
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        lda #$21
        sta $d408
        jsr sub_1a30
        lda #$20
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        lda #$21
        sta $d408
        jsr sub_1a30
        lda #$20
        sta $d408
        jsr sub_1a60
        lda #$20
        sta $d412
        jsr sub_1a60
        nop
        nop
        nop
        nop
        lda #$11
        sta $d413
        lda #$fa
        sta $d414
        lda #$57
        sta $d40e
        lda #$05
        sta $d40f
        lda #$41
        sta $d412
        lda #$06
        sta $d411
        jsr sub_1a60
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a20
        lda #$20
        sta $d40e
        lda #$07
        sta $d40f
        lda #$41
        sta $d412
        jsr sub_1a60
        jsr sub_1a60
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a60
        lda #$41
        sta $d412
        jsr sub_1a60
        nop
        lda #$40
        sta $d412
        jsr sub_1a60
        lda #$57
        sta $d40e
        lda #$05
        sta $d40f
        lda #$41
        sta $d412
        jsr sub_1a30
        nop
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$20
        sta $d40e
        lda #$07
        sta $d40f
        lda #$41
        sta $d412
        jsr sub_1a60
        nop
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$41
        sta $d412
        jsr sub_1a30
        nop
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$ad
        sta $d40e
        lda #$0a
        sta $d40f
        lda #$41
        sta $d412
        nop
        nop
        nop
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$20
        sta $d40e
        lda #$07
        sta $d40f
        lda #$41
        sta $d412
        lda #$90
        sta $d407
        lda #$1c
        sta $d408
        jsr sub_1a30
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$20
        sta $d40e
        lda #$07
        sta $d40f
        lda #$41
        sta $d412
        jsr sub_1a60
        jsr sub_1a20
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$20
        sta $d40e
        lda #$07
        sta $d40f
        lda #$41
        sta $d412
        jsr sub_1a30
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$20
        sta $d40e
        lda #$07
        sta $d40f
        lda #$41
        sta $d412
        nop
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$ea
        sta $d40e
        lda #$08
        sta $d40f
        lda #$41
        sta $d412
        lda #$d0
        sta $d407
        lda #$1a
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$ad
        sta $d40e
        lda #$0a
        sta $d40f
        lda #$41
        sta $d412
        lda #$40
        sta $d407
        lda #$15
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$ea
        sta $d40e
        lda #$08
        sta $d40f
        lda #$41
        sta $d412
        lda #$d0
        sta $d407
        lda #$1a
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$20
        sta $d40e
        lda #$07
        sta $d40f
        lda #$41
        sta $d412
        lda #$90
        sta $d407
        lda #$1c
        sta $d408
        jsr sub_1a78
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        jsr sub_1a60
        nop
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$57
        sta $d40e
        lda #$05
        sta $d40f
        lda #$41
        sta $d412
        lda #$40
        sta $d407
        lda #$15
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$78
        sta $d40e
        lda #$04
        sta $d40f
        lda #$41
        sta $d412
        lda #$f0
        sta $d407
        lda #$11
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        nop
        nop
        lda #$40
        sta $d412
        jsr sub_1a30
        lda #$8f
        sta $d40e
        lda #$03
        sta $d40f
        lda #$41
        sta $d412
        lda #$30
        sta $d407
        lda #$0e
        sta $d408
        jsr sub_1a60
        jsr sub_1a60
        jmp loc_1957

dat_194e:
        .fill 9, $ea

loc_1957:
        lda #$ff
        sta $d406
        sta $d40d
        sta $d414
        lda #$40
        sta $d412
        sta $d40b
        lda #$10
        sta $d404
        lda #$e7
        sta $1a88
        ldx #$ff

loc_1976:
        dex
        bne loc_1976
        nop
        nop
        nop
        nop
        nop
        nop
        nop
        jmp loc_1429

dat_1983:
        .byte $0d,$dc                               // ..

loc_1985:
        lda #$06
        sta $d020
        sta $d021
        rts

// --- Region $19a9-$19e1 ---
.pc = $19a9 "sub_19a9"
// Referenced by: jsr from $1d3f

sub_19a9:
        ldy #$00

loc_19ab:
        lda $19e2,y
        tax
        lda $1b00,x
        sta $d000,y
        lda $1c00,x
        sta $d001,y
        iny
        iny
        cpy #$10
        bne loc_19ab
        ldx #$10

loc_19c3:
        inc dat_19e1,x
        dex
        bne loc_19c3
        jmp loc_1045
// Referenced by: jsr from $1aa0

sub_19cc:
        ldx #$00

loc_19ce:
        lda $1d00,x
        sta $d000,x
        inx
        cpx #$2f
        bne loc_19ce
        lda #$0b
        sta $0286
        jmp loc_1160

dat_19e1:
        .byte $00                                   // .

// --- Region $1a02-$1a14 ---
.pc = $1a02 "sub_1a02"
// Referenced by: jsr from $157f

sub_1a02:
        sta $19ff

loc_1a05:
        ldx #$ff

loc_1a07:
        ldy #$ff

loc_1a09:
        dey
        bne loc_1a09
        dex
        bne loc_1a07
        dec $19ff
        bne loc_1a05
        rts

// --- Region $1a20-$1a87 ---
.pc = $1a20 "sub_1a20"
// Referenced by: jsr from $147f, $14dd, $14fd, $1511, $152c, $154a, $1568, $1589

sub_1a20:
        ldx #$1b

loc_1a22:
        ldy #$ff

loc_1a24:
        dey
        bne loc_1a24
        dex
        bne loc_1a22
        rts

dat_1a2b:
        .byte $0d,$a9,$50,$00,$00                   // ..P..
// Referenced by: jsr from $1524, $1542, $15b0, $15ed, $1600, $1613, $167d, $1690

sub_1a30:
        ldx #$46

loc_1a32:
        ldy #$ff

loc_1a34:
        dey
        bne loc_1a34
        dex
        bne loc_1a32
        rts

dat_1a3b:
        .byte $20,$c9,$05,$d0,$08                   //  ....
// Referenced by: jsr from $1506, $1556, $157a, $159c, $15ad, $15c2, $15dc

sub_1a40:
        ldx #$80

loc_1a42:
        ldy #$70

loc_1a44:
        dey
        bne loc_1a44
        dex
        stx $d416
        cpx #$60
        bne loc_1a42
        jmp sub_1a30

dat_1a52:
        .byte $e8,$4f,$20,$03                       // .O .

loc_1a56:
        bne sub_1a60
        lda #$20
        sta $d400
        jmp $ea31
// Referenced by: jsr from $14d5, $14f2, $14f5, $1509, $153f, $15f5, $15f8, $1608

sub_1a60:
        ldx #$76

loc_1a62:
        ldy #$ff
        jsr sub_1a80
        dex
        bne loc_1a62
        rts

dat_1a6b:
        .byte $ea                                   // .
// Referenced by: jsr from $140b

sub_1a6c:
        ldx #$ff

loc_1a6e:
        ldy #$ff

loc_1a70:
        dey
        bne loc_1a70
        dex
        bne loc_1a6e
        rts

dat_1a77:
        .byte $00                                   // .
// Referenced by: jsr from $18bd

sub_1a78:
        inc dat_1eb0
        jmp sub_1a60

dat_1a7e:
        .byte $ff,$00                               // ..
// Referenced by: jsr from $1a64

sub_1a80:
        jsr sub_1ec0

loc_1a83:
        dey
        bne loc_1a83
        rts

dat_1a87:
        .byte $00                                   // .

// --- Region $1a90-$1ab7 ---
.pc = $1a90 "sub_1a90"
// Referenced by: jsr from $1aa3

sub_1a90:
        ldx #$00

loc_1a92:
        lda $1450,x
        sta $07f8,x
        inx
        cpx #$08
        bne loc_1a92
        rts

dat_1a9e:
        .byte $00,$00                               // ..

main_1aa0:
        jsr sub_19cc
        jsr sub_1a90
        jsr sub_1d70
        jsr sub_1000
        jsr sub_1133
        jsr sub_1400

loc_1ab2:
        jsr sub_1ec0
        jmp loc_1ab2

// --- Region $1d3f-$1dc0 ---
.pc = $1d3f "loc_1d3f"

loc_1d3f:
        jsr sub_19a9
        lda $d012
        clc
        adc #$20

loc_1d48:
        cmp $d012
        bne loc_1d48
        lda #$18
        sta $d016
        jsr sub_1066
        lda #$01
        sta $d019
        jsr sub_10e0
        jsr sub_10e0
        jsr sub_10e0
        lda #$0b
        sta $d022
        lda #$0c
        sta $d023
        jmp $ea31
// Referenced by: jsr from $1aa6

sub_1d70:
        lda #$0b
        sta $d011
        lda #$c1
        ldy #$1d
        jsr $ab1e
        nop
        lda #$0d
        jsr $ffd2
        nop
        lda #$c4
        ldy #$1d
        jsr $ab1e
        nop
        lda #$0d
        jsr $ffd2
        nop
        lda #$eb
        ldy #$1d
        jsr $ab1e
        nop
        lda #$0d
        jsr $ffd2
        nop
        lda #$09
        ldy #$1e
        jsr $ab1e
        nop
        lda #$0d
        jsr $ffd2
        nop
        lda #$37
        ldy #$1e
        jsr $ab1e
        nop
        lda #$0d
        jsr $ffd2
        nop
        lda #$1b
        sta $d011
        rts

// --- Region $1e70-$1e7d ---
.pc = $1e70 "loc_1e70"

loc_1e70:
        ldx #$00

loc_1e72:
        lda $19e0,x
        sta $d400,x
        inx
        cpx #$19
        bne loc_1e72
        rts

// --- Region $1ec0-$1f79 ---
.pc = $1ec0 "sub_1ec0"
// Referenced by: jsr from $1a80, $1ab2

sub_1ec0:
        lda $c5
        cmp #$3c
        beq loc_1edd
        rts

dat_1ec7:
        .byte $00,$8d,$6c,$03                       // ..l.

loc_1ecb:
        lda $036d
        cmp #$00
        bne loc_1edc
        lda $036c
        cmp #$3c
        bne loc_1edc
        jmp loc_1edd

loc_1edc:
        rts

loc_1edd:
        jsr sub_1ee9
        jsr sub_1fb0
        jmp loc_1fea

dat_1ee6:
        .byte $00,$00,$00                           // ...

// Referenced by: jsr from $1edd
sub_1ee9: {
        ldy #$08
loop1:
        ldx #$00
loop2:
        clc
        ror chr_0800,x
        clc
        ror $0801,x
        clc
        ror $0900,x
        clc
        ror $0901,x
        clc
        ror $0a00,x
        clc
        ror $0a01,x
        clc
        ror $0b00,x
        clc
        ror $0b01,x
        clc
        ror $0c00,x
        clc
        ror $0c01,x
        clc
        ror $0d00,x
        clc
        ror $0d01,x
        clc
        ror $0e00,x
        clc
        ror $0e01,x
        clc
        ror $0f00,x
        clc
        ror $0f01,x
        clc
        nop
        nop
        nop
        inx
        inx
        inx
        inx
        inx
        cpx #$af
        jsr sub_1f41
        bne loop2
        dey
        bne loop1
        rts
}
// Referenced by: jsr from $1f38

sub_1f41:
        eor $0a,x
        stx $0345
        ldx #$a0

loc_1f48:
        lda $0900,x
        sta $d418,x
        inx
        bne loc_1f48
        ldx $0345
        rts

loc_1f55:
        ldx #$00
        stx $d020
        stx $d021

loc_1f5d:
        lda dat_1f7a,x
        sta $0100,x
        inx
        bne loc_1f5d
        lda #$00

loc_1f68:
        sta $d800,x
        sta $d900,x
        sta $da00,x
        sta $db00,x
        inx
        bne loc_1f68
        jmp $fce2

// --- Region $1fb0-$2001 ---
.pc = $1fb0 "sub_1fb0"
// Referenced by: jsr from $1ee0

sub_1fb0:
        ldy #$08

loc_1fb2:
        ldx #$00

loc_1fb4:
        clc
        ror $2000,x
        clc
        ror $2001,x
        clc
        ror $2100,x
        clc
        ror $2101,x
        clc
        inx
        inx
        inx
        inx
        inx
        inx
        cpx #$af
        jsr sub_1fd6
        bne loc_1fb4
        dey
        bne loc_1fb2
        rts
// Referenced by: jsr from $1fcd

sub_1fd6:
        eor $0a,x
        stx $0345
        ldx #$af

loc_1fdd:
        lda $2040,x
        sta $d400,x
        inx
        bne loc_1fdd
        ldx $0345
        rts

loc_1fea:
        jsr $fda3
        jsr $fd15
        jsr $ff5b
        jsr loc_1e70
        jmp loc_1f55

dat_1ff9:
        .byte $00,$00,$00,$00,$00,$00,$00,$aa       // ........
        brk

// --- Region $201a-$2023 ---
.pc = $201a "Segment $201a"
        .byte $97,$97                               // sax $97,y // ILLEGAL
        brk

dat_201d:
        .byte $97,$bf,$00                           // ...
// Referenced by: jsr from $1251, $1254, $1257, $125a, $125d, $12a7, $12aa, $12ad

sub_2020:
        .byte $bf,$00,$00                           // lax $0000,y // ILLEGAL
        brk

// --- Region $203a-$2053 ---
.pc = $203a "sub_203a"
// Referenced by: jsr from $1212

sub_203a:
        .byte $c2,$57                               // nop #$57 // ILLEGAL
        .byte $bf,$00,$bf                           // lax $bf00,y // ILLEGAL
        tax
        tax
        tax
        tax
        sta $55,x
        .byte $57,$95                               // sre $95,x // ILLEGAL
        eor $57,x
        sta $55,x
        .byte $57,$95                               // sre $95,x // ILLEGAL
        eor $57,x
        .byte $bf,$ff,$ff                           // lax $ffff,y // ILLEGAL
        brk

dat_2053:
        .byte $00                                   // .

// --- Region $2121-$2128 ---
.pc = $2121 "sub_2121"
// Referenced by: jsr from $12cd

sub_2121:
        sta $55,x
        cpy #$ff
        .byte $ff,$c0,$00                           // isc $00c0,x // ILLEGAL
        brk

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

// --- Region $0800-$0813 ---
.pc = $0800 "chr_0800"

chr_0800:
        // === Charset data (20 bytes, $0800-$0813) ===
        .byte $00,$00,$00,$00,$00,$00,$00,$00       // char 0 @+0
        .byte $00,$03,$03,$0f,$0e,$0f,$3e,$3a       // char 1 @+1
        .byte $ff,$ff,$ff,$ea                       // char 2 (partial)

// --- Region $0852-$08d8 ---
.pc = $0852 "chr_0852"

chr_0852:
        // === Charset data (135 bytes, $0852-$08d8) ===
        .byte $00,$00,$00,$00,$00,$00,$fd,$fd       // char 0 @+0
        .byte $fd,$e9,$fd,$e9,$ea,$ea,$fd,$fd       // char 1 @+1
        .byte $fd,$e9,$fd,$e9,$e9,$e9,$ff,$fd       // char 2 @+2
        .byte $ff,$ea,$ff,$e6,$e6,$e6,$ff,$fd       // char 3 @+3
        .byte $ff,$ea,$ff,$ea,$ea,$e9,$3f,$ff       // char 4 @+4
        .byte $ff,$ea,$ff,$e9,$e9,$e9,$ff,$ff       // char 5 @+5
        .byte $ff,$ea,$d5,$ff,$ea,$ea,$3f,$ff       // char 6 @+6
        .byte $ff,$ea,$ff,$e9,$e9,$e9,$ff,$ff       // char 7 @+7
        .byte $ff,$ea,$d5,$ff,$ea,$ea,$3f,$ff       // char 8 @+8
        .byte $ff,$ea,$fd,$eb,$ea,$ea,$ff,$ff       // char 9 @+9
        .byte $ff,$ea,$d7,$0e,$0e,$0e,$fd,$fd       // char 10 @+10
        .byte $fd,$e9,$fd,$e9,$e9,$e9,$fd,$fd       // char 11 @+11
        .byte $fd,$e9,$fd,$e9,$e9,$ea,$ff,$f7       // char 12 @+12
        .byte $f7,$e6,$f7,$e6,$e6,$e6,$fd,$fd       // char 13 @+13
        .byte $fd,$e9,$fd,$ea,$fa,$3e,$fd,$fd       // char 14 @+14
        .byte $fd,$e9,$fd,$e9,$ea,$fa,$ff,$ff       // char 15 @+15
        .byte $ff,$ea,$d5,$03,$0f,$0e               // char 16 (partial)

dat_08d8:
        // === Fill data (1 bytes, $08d8-$08d8) ===
        .byte $00                                   // .

// --- Region $0908-$0915 ---
.pc = $0908 "dat_0908"

dat_0908:
        .byte $0f,$0f                               // char 22 (partial)
        .byte $0f,$0e,$0f,$0e,$0e,$0e               // char 23 (partial)

txt_0910:
        .byte $3d,$39                               // char 23 (partial)
        .byte $39,$39,$35                           // char 24 (partial)

dat_0915:
        // === Fill data (1 bytes, $0915-$0915) ===
        .byte $00                                   // .

// --- Region $0938-$094f ---
.pc = $0938 "dat_0938"

dat_0938:
        .byte $0f,$0e                               // char 28 (partial)
        .byte $0e,$0f,$0e,$0d,$00,$00,$00,$03       // char 29 @+29
        .byte $03,$0f,$0e,$0e,$0e,$0e,$3d,$39       // char 30 @+30
        .byte $3a,$3a,$3e,$0e,$0e,$0e               // char 31 (partial)

// --- Region $096d-$09d8 ---
.pc = $096d "dat_096d"

dat_096d:
        .byte $3f,$3a,$3a,$00,$00                   // char 35 (partial)
        .byte $00,$00,$00,$00,$00,$00,$00,$00       // char 36 '$'
        .byte $00,$03,$03,$0f,$0e,$3e,$3f,$ff       // char 37 '%'
        .byte $ff,$ea,$ff,$e9,$e9,$ea,$03,$0f       // char 38 '&'
        .byte $3f,$3a,$3f,$3e,$0e,$0e,$3f,$ff       // char 39 '''
        .byte $ff,$ea,$fd,$d5,$03,$0f,$3f,$ff       // char 40 '('
        .byte $ff,$ea,$fd,$d7,$0e,$0e,$fd,$e9       // char 41 ')'
        .byte $e9,$e9,$e9,$e9,$ea,$ea,$ff,$ea       // char 42 '*'
        .byte $ea,$ea,$e9,$eb,$ea,$ea,$3f,$fa       // char 43 '+'
        .byte $ea,$ea,$e9,$eb,$ea,$ea,$ff,$ea       // char 44 ','
        .byte $ea,$ea,$d5,$03,$03,$03,$3f,$fa       // char 45 '-'
        .byte $ea,$ea,$e9,$eb,$ea,$fa,$3f,$fa       // char 46 '.'
        .byte $ea,$ea,$e9,$eb,$ea,$fa,$00,$00       // char 47 '/'
        .byte $00,$0f,$0e,$0e,$0e,$0d               // char 48 (partial)

dat_09d8:
        // === Fill data (1 bytes, $09d8-$09d8) ===
        .byte $00                                   // .

// --- Region $09f8-$0ad8 ---
.pc = $09f8 "dat_09f8"

dat_09f8:
        .byte $3f,$fa                               // char 52 (partial)
        .byte $ea,$ea,$e9,$d7,$0f,$0e,$ff,$00       // char 53 '5'
        .byte $00,$00,$00,$00,$00,$00,$fc,$fd       // char 54 '6'
        .byte $fd,$fd,$a9,$fd,$a9,$e9,$fc,$fd       // char 55 '7'
        .byte $fd,$a9,$7d,$e9,$a9,$a4,$fd,$fd       // char 56 '8'
        .byte $fd,$a9,$55,$40,$00,$00,$f4,$f5       // char 57 '9'
        .byte $fd,$a9,$fd,$e9,$e9,$e9,$fd,$fd       // char 58 ':'
        .byte $fd,$a9,$55,$fd,$a9,$a9,$fd,$fd       // char 59 ';'
        .byte $fd,$a9,$55,$fd,$a9,$a9,$fd,$fd       // char 60 '<'
        .byte $fd,$a9,$55,$fd,$a9,$a9,$fd,$fd       // char 61 '='
        .byte $fd,$e9,$fd,$e9,$a9,$a9,$d0,$d0       // char 62 '>'
        .byte $d0,$90,$d0,$90,$90,$90,$fd,$fd       // char 63 '?'
        .byte $fd,$e9,$fd,$e9,$e9,$e9,$fd,$fd       // char 64 '@'
        .byte $fd,$e9,$fd,$a9,$a5,$94,$00,$00       // char 65 'A'
        .byte $00,$00,$00,$00,$00,$00,$fd,$fd       // char 66 'B'
        .byte $fd,$a9,$fd,$69,$69,$69,$fd,$fd       // char 67 'C'
        .byte $fd,$e9,$fd,$a9,$a9,$a9,$f4,$f5       // char 68 'D'
        .byte $fd,$a9,$fd,$e9,$e9,$e9,$f4,$f5       // char 69 'E'
        .byte $fd,$a9,$69,$e9,$a9,$a9,$f4,$f5       // char 70 'F'
        .byte $fd,$a9,$fd,$e9,$e9,$e9,$f4,$f5       // char 71 'G'
        .byte $fd,$a9,$7d,$e9,$a9,$a9,$fd,$fd       // char 72 'H'
        .byte $fd,$a9,$55,$f4,$a5,$a9,$fd,$fd       // char 73 'I'
        .byte $fd,$a9,$d5,$90,$90,$90,$fd,$fd       // char 74 'J'
        .byte $fd,$e9,$fd,$e9,$e9,$e9,$fd,$fd       // char 75 'K'
        .byte $fd,$e9,$fd,$e9,$e9,$a9,$ff,$7d       // char 76 'L'
        .byte $7d,$69,$7d,$69,$69,$69,$fd,$fd       // char 77 'M'
        .byte $fd,$e9,$fd,$a9,$a5,$94,$fd,$fd       // char 78 'N'
        .byte $fd,$e9,$fd,$e9,$a9,$a5,$fd,$fd       // char 79 'O'
        .byte $fd,$a9,$7d,$a9,$a5,$a4               // char 80 (partial)

dat_0ad8:
        // === Fill data (1 bytes, $0ad8-$0ad8) ===
        .byte $00                                   // .

// --- Region $0b08-$0b15 ---
.pc = $0b08 "dat_0b08"

dat_0b08:
        .byte $d0,$d0                               // char 86 (partial)
        .byte $d0,$90,$d0,$90,$90,$90,$f4,$e4       // char 87 'W'
        .byte $e4,$e4,$d4                           // char 88 (partial)

dat_0b15:
        // === Fill data (1 bytes, $0b15-$0b15) ===
        .byte $00                                   // .

// --- Region $0b38-$0b4f ---
.pc = $0b38 "dat_0b38"

dat_0b38:
        .byte $d0,$90                               // char 92 (partial)
        .byte $90,$90,$50,$40,$00,$00,$f4,$e4       // char 93 ']'
        .byte $a4,$a4,$94,$90,$90,$90,$00,$40       // char 94 '^'
        .byte $40,$50,$90,$90,$90,$90               // char 95 (partial)

// --- Region $0b6d-$0bd8 ---
.pc = $0b6d "dat_0b6d"

dat_0b6d:
        .byte $f4,$a4,$a4,$00,$00                   // char 99 (partial)
        .byte $00,$00,$00,$00,$00,$00,$3d,$fd       // char 100 'd'
        .byte $fd,$e9,$f5,$a4,$94,$90,$f4,$f5       // char 101 'e'
        .byte $fd,$a9,$fd,$a9,$a9,$a9,$d0,$d0       // char 102 'f'
        .byte $d0,$90,$d0,$90,$90,$90,$f4,$f5       // char 103 'g'
        .byte $fd,$a9,$7d,$e9,$a9,$a5,$f4,$f5       // char 104 'h'
        .byte $fd,$a9,$7d,$e9,$a9,$a5,$00,$00       // char 105 'i'
        .byte $f4,$a4,$a4,$a5,$a9,$a9,$fd,$a9       // char 106 'j'
        .byte $a9,$a9,$55,$fd,$a9,$a9,$f4,$a5       // char 107 'k'
        .byte $a9,$a9,$69,$fd,$a9,$a9,$fd,$a9       // char 108 'l'
        .byte $a9,$a9,$69,$e9,$a5,$a4,$f4,$a5       // char 109 'm'
        .byte $a9,$a9,$69,$e9,$a9,$a5,$f4,$a5       // char 110 'n'
        .byte $a9,$a9,$69,$e9,$a9,$a9,$00,$00       // char 111 'o'
        .byte $00,$d0,$90,$90,$90,$50               // char 112 (partial)

dat_0bd8:
        // === Fill data (1 bytes, $0bd8-$0bd8) ===
        .byte $00                                   // .

// --- Region $0bf8-$0cd7 ---
.pc = $0bf8 "dat_0bf8"

dat_0bf8:
        .byte $f4,$a5                               // char 116 (partial)
        .byte $a9,$a9,$69,$a9,$a5,$a4,$00,$00       // char 117 'u'
        .byte $00,$00,$00,$00,$00,$00,$3a,$fa       // char 118 'v'
        .byte $d5,$e9,$d5,$d5,$d5,$00,$ea,$e9       // char 119 'w'
        .byte $d7,$ea,$d5,$d5,$d5,$00,$e9,$e9       // char 120 'x'
        .byte $d5,$ea,$d5,$f5,$35,$00,$e9,$e9       // char 121 'y'
        .byte $d5,$ea,$d5,$d5,$d5,$00,$ea,$e9       // char 122 'z'
        .byte $d7,$ea,$d5,$f5,$35,$00,$ea,$e9       // char 123 '{'
        .byte $d5,$e9,$d5,$d5,$d5,$00,$e9,$e9       // char 124 '|'
        .byte $d5,$ea,$d5,$f5,$35,$00,$ea,$e9       // char 125 '}'
        .byte $d5,$e9,$d5,$d5,$d5,$00,$0e,$0e       // char 126 '~'
        .byte $0d,$0e,$0d,$0d,$0d,$00,$fd,$e9       // char 127
        .byte $d5,$ea,$d5,$f5,$35,$00,$ea,$e9       // char 128
        .byte $d5,$e9,$d5,$d5,$d5,$00,$e9,$e9       // char 129
        .byte $d5,$ea,$d5,$f5,$35,$00,$e6,$e6       // char 130
        .byte $d5,$e6,$d6,$d5,$d5,$00,$e9,$e9       // char 131
        .byte $d5,$e9,$d5,$d5,$d5,$00,$e9,$e9       // char 132
        .byte $d5,$ea,$d5,$f5,$35,$00,$ea,$e9       // char 133
        .byte $d5,$e9,$d5,$d5,$d5,$00,$e9,$e9       // char 134
        .byte $ea,$d5,$ea,$f5,$35,$00,$ea,$e9       // char 135
        .byte $d5,$e9,$d5,$d5,$d5,$00,$fa,$35       // char 136
        .byte $ff,$ea,$d5,$d5,$d5,$00,$0e,$0e       // char 137
        .byte $0d,$0e,$0d,$0d,$0d,$00,$e9,$e9       // char 138
        .byte $d5,$ea,$d5,$f5,$35,$00,$fa,$3a       // char 139
        .byte $35,$3e,$0d,$0d,$0d,$00,$e6,$e6       // char 140
        .byte $d5,$ea,$d5,$d5,$d5,$00,$da,$ea       // char 141
        .byte $d5,$e9,$d5,$d5,$d5,$00,$3a,$3e       // char 142
        .byte $0d,$0e,$0d,$0d,$0d,$00,$3e,$3a       // char 143
        .byte $f5,$ea,$d5,$d5,$d5                   // char 144 (partial)

dat_0cd7:
        // === Fill data (1 bytes, $0cd7-$0cd7) ===
        .byte $00                                   // .

// --- Region $0d08-$0d0f ---
.pc = $0d08 "dat_0d08"

dat_0d08:
        .byte $0e,$0d                               // char 150 (partial)
        .byte $0f,$0e,$0e,$0e,$0d                   // char 151 (partial)

dat_0d0f:
        // === Fill data (1 bytes, $0d0f-$0d0f) ===
        .byte $00                                   // .

// --- Region $0d40-$0dd5 ---
.pc = $0d40 "dat_0d40"

dat_0d40:
        .byte $0e,$0e                               // char 157 (partial)
        .byte $0e,$0f,$03,$03,$00,$00,$0e,$0e       // char 158

txt_0d4a:
        .byte $3e,$3a,$3a,$39,$35,$00,$00,$00       // char 159
        .byte $00,$00,$00,$00,$00,$00,$00,$00       // char 160
        .byte $00,$00,$00,$00,$00,$00,$00,$00       // char 161
        .byte $0f,$0e,$0e,$0f,$0e,$0d,$3a,$35       // char 162
        .byte $00,$00,$00,$00,$00,$00,$00,$00       // char 163
        .byte $0f,$0e,$0e,$0e,$0d,$00,$3a,$fa       // char 164
        .byte $d5,$e9,$d5,$d4,$d4,$d0               // char 165 (partial)

spr_0d80:
        .byte $ea,$ea                               // char 165 (partial)
        .byte $d5,$ea,$d5,$f5,$35,$00,$0e,$0e       // char 166
        .byte $3d,$3a,$35,$35,$35,$00,$3e,$fa       // char 167
        .byte $d5,$ea,$d5,$d5,$d5,$00,$0e,$fd       // char 168
        .byte $eb,$ea,$ea,$fa,$35,$00,$fa,$35       // char 169
        .byte $03,$03,$03,$03,$03,$00,$ea,$d5       // char 170
        .byte $eb,$ea,$ea,$fa,$35,$00,$ea,$e9       // char 171
        .byte $eb,$ea,$ea,$fa,$35,$00,$0f,$0e       // char 172
        .byte $0e,$0e,$0e,$0e,$0d,$00,$ea,$e9       // char 173
        .byte $eb,$ea,$ea,$fa,$35,$00,$3a,$fd       // char 174
        .byte $eb,$ea,$ea,$fa,$35,$00,$0f,$0e       // char 175
        .byte $0e,$0e,$0d                           // char 176 (partial)

dat_0dd5:
        // === Fill data (1 bytes, $0dd5-$0dd5) ===
        .byte $00                                   // .

// --- Region $0df8-$0ed7 ---
.pc = $0df8 "dat_0df8"

dat_0df8:
        .byte $0e,$0d                               // char 180 (partial)
        .byte $0f,$0e,$0e,$0e,$0d,$00,$00,$00       // char 181
        .byte $00,$00,$00,$00,$00,$00,$e9,$a9       // char 182
        .byte $55,$e9,$d5,$d5,$d5,$00,$a9,$69       // char 183
        .byte $d5,$a9,$55,$55,$54,$00,$00,$c0       // char 184
        .byte $fd,$a9,$55,$55,$55,$00,$e9,$e9       // char 185
        .byte $55,$a9,$55,$55,$54,$00,$a9,$55       // char 186
        .byte $fd,$a9,$55,$55,$55,$00,$a9,$55       // char 187
        .byte $00,$00,$00,$00,$00,$00,$a9,$e9       // char 188
        .byte $d5,$a9,$55,$55,$54,$00,$a9,$e9       // char 189
        .byte $d5,$e9,$d5,$d5,$d5,$00,$90,$90       // char 190
        .byte $50,$90,$50,$50,$50,$00,$e9,$e9       // char 191
        .byte $d5,$a9,$55,$55,$54,$00,$a5,$a9       // char 192
        .byte $d5,$e9,$d5,$d5,$d5,$00,$00,$00       // char 193
        .byte $fd,$a9,$55,$55,$55,$00,$69,$69       // char 194
        .byte $55,$69,$55,$55,$55,$00,$a9,$e9       // char 195
        .byte $d5,$e9,$d5,$d5,$d5,$00,$e9,$e9       // char 196
        .byte $55,$a9,$55,$55,$54,$00,$a5,$54       // char 197
        .byte $00,$00,$00,$00,$00,$00,$e9,$e9       // char 198
        .byte $a9,$55,$a9,$55,$5d,$d5,$a5,$a5       // char 199
        .byte $55,$e9,$d5,$d5,$d5,$00,$a9,$69       // char 200
        .byte $d5,$a9,$55,$55,$54,$00,$90,$90       // char 201
        .byte $50,$90,$50,$50,$50,$00,$e9,$e9       // char 202
        .byte $55,$a9,$55,$55,$54,$00,$a5,$a4       // char 203
        .byte $54,$94,$50,$50,$50,$00,$69,$69       // char 204
        .byte $55,$a9,$55,$d5,$55,$00,$ad,$a9       // char 205
        .byte $d5,$e9,$d5,$d5,$d5,$00,$a4,$94       // char 206
        .byte $50,$90,$50,$50,$50,$00,$94,$90       // char 207
        .byte $fd,$a9,$55,$55,$55                   // char 208 (partial)

dat_0ed7:
        // === Fill data (1 bytes, $0ed7-$0ed7) ===
        .byte $00                                   // .

// --- Region $0f08-$0f13 ---
.pc = $0f08 "dat_0f08"

dat_0f08:
        .byte $90,$50                               // char 214 (partial)
        .byte $d0,$90,$90,$90,$50,$00,$00,$00       // char 215
        .byte $00,$00                               // char 216 (partial)

// --- Region $0f15-$0f15 ---
.pc = $0f15 "dat_0f15"

dat_0f15:
        // === Fill data (1 bytes, $0f15-$0f15) ===
        .byte $00                                   // .

// --- Region $0f40-$0fd5 ---
.pc = $0f40 "dat_0f40"

dat_0f40:
        .byte $90,$90,$94,$a4,$a4                   // char 5 (partial)
        .byte $e4,$d4,$00,$90,$90,$90,$50,$40       // char 6 @+6
        .byte $40,$00,$00,$00,$00,$00,$00,$00       // char 7 @+7
        .byte $00,$00,$00,$00,$00,$00,$00,$00       // char 8 @+8
        .byte $00,$00,$00,$00,$00,$d0,$90,$90       // char 9 @+9
        .byte $90                                   // char 10 (partial)

txt_0f66:
        .byte $50,$40,$a4,$54,$00,$00,$00           // char 10 (partial)
        .byte $00,$00,$00,$00,$00,$d0,$90,$90       // char 11 @+11
        .byte $90,$50,$00,$50,$40,$40,$00,$00       // char 12 @+12
        .byte $00,$00,$00,$e9,$e9,$55,$a9,$55       // char 13 @+13
        .byte $55,$54,$00,$90,$90,$54,$a4,$54       // char 14 @+14
        .byte $54,$54,$00,$a4,$94,$fd,$a9,$55       // char 15 @+15
        .byte $55,$55,$00,$a9,$69,$e9,$a9,$a9       // char 16 @+16
        .byte $a5,$54,$00,$a9,$a5,$a4,$a4,$a4       // char 17 @+17
        .byte $a4,$54,$00,$a9,$69,$e9,$a9,$a9       // char 18 @+18
        .byte $a5,$54,$00,$a9,$69,$e9,$a9,$a9       // char 19 @+19
        .byte $a5,$54,$00,$a4,$94,$90,$90,$90       // char 20 @+20
        .byte $90,$50,$00,$a9,$69,$e9,$a9,$a9       // char 21 @+21
        .byte $a5,$54,$00,$a9,$69,$e9,$a9,$a9       // char 22 @+22
        .byte $a5,$54,$00,$d0,$90,$90,$90,$50       // char 23 @+23

dat_0fd5:
        // === Fill data (1 bytes, $0fd5-$0fd5) ===
        .byte $00                                   // .

// --- Region $0ff8-$0fff ---
.pc = $0ff8 "dat_0ff8"

dat_0ff8:
        .byte $94,$50,$d0,$90,$90                   // char 28 (partial)
        .byte $90,$50,$00                           // char 29 (partial)

// --- Region $1053-$1065 ---
.pc = $1053 "dat_1053"

dat_1053:
        .fill 16, $00
        .byte $4c,$31,$ea                           // L1.

// --- Region $107b-$10c4 ---
.pc = $107b "dat_107b"

dat_107b:
        .byte $14                                   // .

txt_107c:
        .byte $22                                   // double quote character
        .text "0*(%#!"
        .byte $1f,$1d,$1b,$19,$18,$16,$15,$14,$12,$11,$10,$0f,$0e,$0e,$0d,$0c // ................
        .byte $0c,$0c,$0b,$0b,$0b,$0b,$0b,$0c,$0c,$0c,$0d,$0d,$0e,$0f,$10,$11 // ................
        .byte $12,$13,$15,$16,$17,$19,$1b,$1c,$1e   // .........

txt_10ac:
        .text " "
        .byte $22                                   // double quote character
        .text "%'"
        .byte $00                                   // string terminator
        .byte $57,$59,$5b,$5d,$5f,$61,$63,$06,$0b,$0f,$13,$17,$1b,$1f,$c6,$26 // WY[]_ac........&
        .byte $b9,$3b,$11,$00                       // .;..

// --- Region $10d5-$10df ---
.pc = $10d5 "dat_10d5"

dat_10d5:
        .fill 11, $00

// --- Region $1108-$110f ---
.pc = $1108 "dat_1108"

dat_1108:
        .byte $31,$ea,$00,$4c,$dd,$1e,$00,$00       // 1..L....

// --- Region $1156-$115f ---
.pc = $1156 "dat_1156"

dat_1156:
        .fill 10, $00

// --- Region $117a-$1202 ---
.pc = $117a "dat_117a"

dat_117a:
        .byte $00,$00,$00,$00,$00,$00,$20,$e0,$10,$20,$e0,$10,$20,$a0,$35,$ee // ...... .. .. .5.
        .byte $34,$03,$ee,$35,$03,$ee,$36,$03,$20,$88,$16,$20,$00,$35,$4c,$90 // 4..5..6. .. .5L.
        .byte $17,$00,$00,$00                       // ....

txt_119e:
        .text "                              "

txt_11bc:
        .encoding "screencode_mixed"
        .text "the wanderer group brings you "
        .byte $22                                   // double quote
        .text "aardvark"
        .byte $22                                   // double quote
        .text ", cracked in 1 second"
        .encoding "petscii_upper"

txt_11f9:
        .text " !!     "
        .byte $06,$01                               // ..

// --- Region $1343-$1343 ---
.pc = $1343 "dat_1343"

dat_1343:
        // === Fill data (1 bytes, $1343-$1343) ===
        .byte $00                                   // .

// --- Region $1420-$1428 ---
.pc = $1420 "Segment $1420"
        .byte $00,$a9,$2a,$8d,$00,$00,$a9,$16,$60   // ..*.....`

// --- Region $1432-$1476 ---
.pc = $1432 "dat_1432"

dat_1432:
        // === Sine/lookup table (69 bytes, range $00-$85) ===
        .fill 13, $00
        .byte $07,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 // ................
        .byte $00,$85,$84,$85,$84,$83,$82,$81,$80,$00,$00,$00,$00,$00,$00,$00 // ................
        .byte $00,$00,$00,$00,$07,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 // ................
        .fill 8, $00

// --- Region $198e-$19a8 ---
.pc = $198e "dat_198e"

dat_198e:
        .byte $60,$20,$40,$30,$00,$0a,$00,$7c,$4d,$10,$40,$00,$0a,$00,$7c,$45 // ` @0...|M.@...|E
        .byte $60,$20,$00,$0a,$00,$7c,$45,$00,$90,$f2,$1f // ` ...|E....

// --- Region $19e2-$1a01 ---
.pc = $19e2 "Segment $19e2"
        .byte $02,$04,$06,$08,$0a,$0c,$0e,$10,$12,$14,$16,$18,$1a,$1c,$1e,$20 // ............... 
        .fill 14, $00
        .byte $a9,$08                               // ..

// --- Region $1a15-$1a1f ---
.pc = $1a15 "dat_1a15"

dat_1a15:
        .byte $28,$43,$12,$d4,$78,$a9,$27,$8d,$14,$03,$00 // (C..x.'....

// --- Region $1a88-$1a8f ---
.pc = $1a88 "Segment $1a88"
        .byte $e7,$00,$00,$00,$00,$00,$00,$00       // ........

// --- Region $1ab8-$1d3e ---
.pc = $1ab8 "dat_1ab8"

dat_1ab8:
        .byte $1f,$f1,$1e,$f1,$1e,$f1,$00,$0e,$fe,$0f,$0f,$ff,$4e,$00,$1f,$e1 // ............N...
        .byte $1e,$f1,$1f,$e1,$1e,$1e,$0f,$0f,$8e,$6e,$0f,$0f,$ff,$00,$00,$00 // .........n......
        .byte $12,$7f,$12,$fd,$00,$ff,$00,$ff,$00,$7f,$00,$ff,$ff,$ff,$00,$ff // ................
        .byte $00,$ff,$00,$ff,$00,$ff,$8e,$fd,$00,$ff,$00,$ff,$00,$ff,$a2,$ff // ................
        .byte $00,$fd,$00,$ff,$42,$ff,$00,$fd,$aa,$b1,$b8,$bf,$c6,$cc,$d2,$d7 // ....B...........
        .byte $db,$df,$e2,$e5,$e6,$e7,$e7,$e6,$e5,$e2,$df,$dc,$d8,$d4,$cf,$ca // ................
        .byte $c5,$c0,$bb,$b6,$b2,$ad,$aa,$a6,$a3,$a1,$9f,$9e,$9d,$9d,$9d,$9e // ................
        .byte $9f,$a1,$a3,$a5,$a7,$a9,$ac,$ae,$b0,$b2,$b4,$b5,$b6,$b6,$b6,$b5 // ................
        .byte $b4,$b2,$b0,$ad,$aa,$a6,$a1,$9d,$98,$96,$93,$8e,$89,$84,$7f,$7b // ...............{
        .byte $77,$74,$71,$6e,$6d,$6c,$6c,$6d,$6e,$70,$74,$77,$7c,$81,$87,$8d // wtqnmllmnptw|...
        .byte $94,$9b,$a2,$aa,$b1,$b8,$bf,$c6,$cc,$d2,$d7,$db,$df,$e2,$e5,$e6 // ................
        .byte $e7,$e7,$e6,$e5,$e2,$df,$dc,$d8,$d4,$cf,$ca,$c5,$c0,$bb,$b6,$b2 // ................
        .byte $ad,$aa,$a6,$a3,$a1,$9f,$9e,$9d,$9d,$9d,$9e,$9f,$a1,$a3,$a5,$a7 // ................
        .byte $a9,$ac,$ae,$b0,$b2,$b4,$b5,$b6,$b6,$b6,$b5,$b4,$b2,$b0,$ad,$aa // ................
        .byte $a6,$a1,$9d,$98,$96,$93,$8e,$89,$84,$7f,$7b,$77,$74,$71,$6e,$6d // ..........{wtqnm
        .byte $6c,$6c,$6d,$6e,$70,$74,$77,$7c,$81,$87,$8d,$94,$9b,$a2,$aa,$b1 // llmnptw|........
        .byte $b8,$bf,$c6,$cc,$d2,$d7,$db,$df,$e2,$e5,$e6,$e7,$e7,$e6,$e5,$e2 // ................
        .byte $df,$dc,$d8,$d4,$cf,$ca,$c5,$c0,$bb,$b6,$b2,$ad,$aa,$a6,$a3,$a1 // ................
        .byte $9f,$9e,$9d,$9d,$9d,$9e,$9f,$a1,$a3,$a5,$a7,$a9,$ac,$ae,$b0,$b2 // ................
        .byte $b4,$b5,$b6,$b6,$b6,$b5,$b4,$b2,$b0,$ad,$aa,$a6,$a1,$9d,$98,$96 // ................
        .byte $93,$90,$93,$96,$98,$9d,$9f,$a1,$a0,$a0,$a1,$a2,$a3,$a6,$a8,$ab // ................
        .byte $ae,$b1,$b4,$b7,$bb,$be,$c0,$c2,$c4,$c6,$c7,$c7,$c6,$c5,$c4,$c1 // ................
        .byte $be,$ba,$b6,$b1,$ac,$a6,$a0,$99,$92,$8c,$85,$7f,$78,$73,$6d,$68 // ............xsmh
        .byte $64,$60,$5d,$5b,$5a,$5a,$5a,$5b,$5d,$60,$64,$68,$6d,$72,$78,$7f // d`][ZZZ[]`dhmrx.
        .byte $85,$8c,$92,$99,$9f,$a6,$ab,$b1,$b6,$ba,$be,$c1,$c4,$c5,$c6,$c7 // ................
        .byte $c7,$c6,$c4,$c3,$c0,$be,$bb,$b8,$b4,$b1,$ae,$ab,$a8,$a6,$a3,$a2 // ................
        .byte $a1,$a0,$a0,$a0,$a0,$a1,$a2,$a3,$a6,$a8,$ab,$ae,$b1,$b4,$b7,$bb // ................
        .byte $be,$c0,$c2,$c4,$c6,$c7,$c7,$c6,$c5,$c4,$c1,$be,$ba,$b6,$b1,$ac // ................
        .byte $a6,$a0,$99,$92,$8c,$85,$7f,$78,$73,$6d,$68,$64,$60,$5d,$5b,$5a // .......xsmhd`][Z
        .byte $5a,$5a,$5b,$5d,$60,$64,$68,$6d,$72,$78,$7f,$85,$8c,$92,$99,$9f // ZZ[]`dhmrx......
        .byte $a6,$ab,$b1,$b6,$ba,$be,$c1,$c4,$c5,$c6,$c7,$c7,$c6,$c4,$c3,$c0 // ................
        .byte $be,$bb,$b8,$b4,$b1,$ae,$ab,$a8,$a6,$a3,$a2,$a1,$a0,$a0,$a0,$a1 // ................
        .byte $a2,$a3,$a6,$a8,$ab,$ae,$b1,$b4,$b7,$bb,$be,$c0,$c2,$c4,$c6,$c7 // ................
        .byte $c7,$c6,$c5,$c4,$c1,$be,$ba,$b6,$b1,$ac,$a6,$a0,$99,$92,$8c,$85 // ................
        .byte $7f,$78,$73,$6d,$68,$64,$60,$5d,$5b,$5a,$5a,$5a,$5b,$5d,$60,$64 // .xsmhd`][ZZZ[]`d
        .byte $68,$6d,$72,$78,$7f,$85,$8c,$92,$99,$9f,$a6,$ab,$b1,$b6,$ba,$be // hmrx............
        .byte $ba,$b6,$b1,$ab,$a6,$a4,$a3,$a2,$00,$00,$00,$00,$00,$00,$00,$00 // ................
        .fill 9, $00
        .byte $9b,$7f,$d2,$1e,$ff,$18,$00,$12,$79,$f0,$00,$ff,$00,$00,$00,$00 // ........y.......
        .byte $00,$06,$0e,$f3,$0f,$0b,$01,$01,$01,$01,$01,$01,$01,$01,$00,$00 // ................
        .fill 14, $00

// --- Region $1dc1-$1e6f ---
.pc = $1dc1 "dat_1dc1"

dat_1dc1:
        .byte $93,$97,$00,$11,$11,$11,$11,$11,$11,$11,$11,$11,$11,$1d,$1d,$1d // ................
        .fill 9, $1d
        .byte $50,$d0,$52,$d2,$45,$c5,$53,$d3,$45,$c5,$4e,$ce,$54,$d4,$53,$d3 // P.R.E.S.E.N.T.S.
        .byte $00,$1d,$1d,$1d,$1d,$1d,$1d,$1d,$1d,$1d,$1d,$1d,$1d,$12,$50,$d0 // ..............P.
        .byte $52,$d2,$45,$c5,$53,$d3,$45,$c5,$4e,$ce,$54,$d4,$53,$d3,$00,$11 // R.E.S.E.N.T.S...
        .byte $11,$11,$11,$11                       // ....

txt_1e0e:
        .text "            A"
        .byte $c1                                   // 'A' | $80 (end-of-string marker)
        .byte $41,$c1,$52,$d2,$44,$c4,$56,$d6,$41,$c1,$52,$d2,$4b,$cb // A.R.D.V.A.R.K.

txt_1e2a:
        .text "            "
        .byte $00                                   // string terminator
        .byte $12,$91                               // ..

txt_1e39:
        .text "            A"
        .byte $c1                                   // 'A' | $80 (end-of-string marker)
        .byte $41,$c1,$52,$d2,$44,$c4,$56,$d6,$41,$c1,$52,$d2,$4b,$cb // A.R.D.V.A.R.K.

txt_1e55:
        .text "            "
        .byte $00                                   // string terminator
        .fill 14, $00

// --- Region $1e7e-$1e7e ---
.pc = $1e7e "dat_1e7e"

dat_1e7e:
        // === Fill data (1 bytes, $1e7e-$1e7e) ===
        .byte $00                                   // .

// --- Region $1eb0-$1ebf ---
.pc = $1eb0 "dat_1eb0"

dat_1eb0:
        .byte $08,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 // ................

// --- Region $1f7a-$1f7a ---
.pc = $1f7a "dat_1f7a"

dat_1f7a:
        // === Fill data (1 bytes, $1f7a-$1f7a) ===
        .byte $00                                   // .

// --- Region $1fa9-$1faf ---
.pc = $1fa9 "dat_1fa9"

dat_1fa9:
        .byte $23,$a8,$0d,$00,$00,$00,$00           // #......

// --- Region $2002-$2019 ---
.pc = $2002 "dat_2002"

dat_2002:
        .byte $aa,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97 // ................
        .byte $97,$00,$97,$97,$00,$97,$97,$00       // ........

// --- Region $2024-$2039 ---
.pc = $2024 "dat_2024"

dat_2024:
        .byte $aa,$00,$aa,$97,$28,$97,$97,$97,$97,$95,$55,$57,$95,$55,$57,$95 // ....(.....UW.UW.
        .byte $55,$57,$95,$7d,$57,$95               // UW.}W.

// --- Region $2054-$2120 ---
.pc = $2054 "Segment $2054"
        .byte $00,$aa,$aa,$aa,$95,$55,$57,$95,$55,$57,$95,$55,$57,$95,$55,$57 // .....UW.UW.UW.UW
        .byte $97,$ff,$d7,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97 // ................
        .byte $00,$97,$97,$00,$97,$97,$00,$97,$bf,$00,$bf,$05,$aa,$aa,$80,$97 // ................
        .byte $95,$70,$97,$95,$5c,$97,$95,$5c,$97,$95,$57,$97,$ff,$57,$97,$00 // .p..\..\..W..W..
        .byte $97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97 // ................
        .byte $97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97 // ................
        .byte $00,$97,$97,$00,$97,$97,$00,$97,$ff,$00,$ff,$00,$aa,$2a,$80,$97 // .............*..
        .byte $25,$70,$97,$25,$5c,$97,$25,$5c,$97,$25,$57,$97,$3f,$57,$97,$00 // %p.%\.%\.%W.?W..
        .byte $97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$00,$97 // ................
        .byte $97,$00,$97,$97,$00,$97,$97,$00,$97,$97,$03,$57,$97,$fd,$57,$95 // ...........W..W.
        .byte $55,$54,$95,$55,$5c,$95,$55,$70,$ff,$ff,$c0,$00,$aa,$aa,$aa,$95 // UT.U\.Up........
        .byte $55,$57,$95,$55,$57,$95,$55,$57,$ff,$ff,$ff,$00,$00,$00,$00,$00 // UW.UW.UW........
        .byte $00,$00,$00,$00,$aa,$aa,$80,$95,$55,$c0,$95,$55,$c0 // ........U..U.

// --- Region $2129-$217f ---
.pc = $2129 "dat_2129"

dat_2129:
        .byte $00,$00,$00,$00,$00,$00,$00,$aa,$aa,$aa,$95,$55,$57,$95,$55,$57 // ...........UW.UW
        .byte $95,$55,$57,$ff,$ff,$ff,$00,$aa,$aa,$aa,$95,$55,$57,$95,$55,$57 // .UW........UW.UW
        .byte $95,$55,$57,$ff,$ff,$ff,$00,$00,$aa,$00,$00,$97,$aa,$aa,$97,$95 // .UW.............
        .byte $55,$57,$95,$55,$57,$95,$55,$57,$97,$ff,$ff,$97,$aa,$00,$97,$95 // UW.UW.UW........
        .byte $c0,$97,$25,$70,$97,$25,$70,$97,$09,$5c,$97,$09,$5c,$97,$02,$57 // ..%p.%p..\..\..W
        .byte $97,$02,$57,$ff,$00,$ff               // ..W...

dat_217f:
        // === Fill data (1 bytes, $217f-$217f) ===
        .byte $00                                   // .
