// ============================================
// output - Disassembled Source
// ============================================
// KickAssembler syntax
// Generated by Restore 64 v0.2.1 alpha build 298, 2026-04-01 10:59:21
// https://restore64.dev by datucker / Rabenauge
//
// Load address: $0801  End: $0a8f  (655 bytes)
// Entry point:  $0821 (via BASIC SYS 2081)
//
// Code: 391 bytes, Data: 264 bytes
// Labels: 31, Subroutines: 2
//
// Cross-references: all OK
// ============================================


// --- Region $0821-$09a9 ---
.pc = $0821 "main_0821"

main_0821:
        ldx #$00

loc_0823:
        lda $0a8e,x
        sta $fd30,x
        txa
        sta $0a8e,x
        inx
        bne loc_0823

loc_0830:
        sta main_0821,x
        inx
        cpx #$0f
        bne loc_0830
        ldx #$c1

loc_083a:
        lda $09cd,x
        sta $033f,x
        dex
        bne loc_083a
        lda #$93
        jsr $ffd2
        lda #$0c
        sta $d020
        sta $d021
        lda #$07
        sta $d017
        sta $d01d
        sta $d027
        sta $d015
        lda #$02
        sta $d028
        lda #$00
        sta $d029
        lda #$0d
        ldx #$0e
        ldy #$0f
        sta $07f8
        stx $07f9
        sty $07fa
        ldy #$00
        ldx #$a8
        stx $d000
        stx $d002
        stx $d004

loc_0884:
        sty $d001
        sty $d003
        sty $d005
        iny
        jsr sub_093e
        cpy #$c8
        bne loc_0884

loc_0895:
        dec $d004
        inc $d000
        jsr sub_093e
        inx
        cpx #$fa
        bne loc_0895

loc_08a3:
        dec $d003
        jsr sub_093e
        inx
        cpx #$19
        bne loc_08a3

loc_08ae:
        dec $d001
        dec $d003
        dec $d005
        jsr sub_093e
        inx
        cpx #$8c
        bne loc_08ae

loc_08bf:
        inc $d027
        inc $d028
        inc $d029
        jsr sub_093e
        inx
        cpx #$4c
        bne loc_08bf
        clc
        ldx #$0c
        ldy #$08
        sty $09b3
        jsr $fff0
        ldx #$00
        stx $0286

loc_08e0:
        lda dat_09a8,x
        jsr $ffd2
        lda #$20
        jsr $ffd2
        lda #$20
        jsr $ffd2
        jsr sub_093e
        inx
        cpx #$09
        bne loc_08e0
        clc
        ldx #$10
        ldy #$0c
        jsr $fff0
        ldx #$00

loc_0902:
        lda $080a,x
        jsr $ffd2
        jsr sub_093e
        inx
        cpx #$10
        bne loc_0902
        clc
        ldx #$14
        ldy #$09
        jsr $fff0
        ldx #$00

loc_091a:
        lda $09b4,x
        jsr $ffd2
        jsr sub_093e
        inx
        cpx #$1a
        bne loc_091a
        ldx #$80

loc_092a:
        jsr sub_093e
        inx
        bne loc_092a

loc_0930:
        ldx #$00

loc_0932:
        lda loc_095f,x
        sta $cf00,x
        inx
        bne loc_0932
        jmp $cf00
// Referenced by: jsr from $088e, $089b, $08a6, $08b7, $08c8, $08f0, $0908, $0920

sub_093e:
        stx $09b1
        sty $09b2
        ldy #$00
        ldx #$00

loc_0948:
        jsr $ffe4
        cmp #$a9
        beq loc_0930
        iny
        bne loc_0948
        inx
        cpx $09b3
        bne loc_0948
        ldx $09b1
        ldy $09b2
        rts

loc_095f:
        sei
        lda #$35
        sta $01
        lda #$8e
        sta $fe
        clc
        lda #$0a
        adc #$01
        sta $ff
        lda #$01
        sta $fc
        lda #$09
        sta $fd
        ldx $0820
        ldy #$00

loc_097c:
        lda ($fe),y
        sta ($fc),y
        iny
        bne loc_097c
        dex
        inc $ff
        inc $fd
        cpx #$08
        bne loc_097c
        ldx #$01

loc_098e:
        lda $fd30,x
        sta dat_0801,x
        inx
        bne loc_098e
        inc $01
        inc $01
        cli
        jsr $ff81
        jsr $a68e
        ldx #$fb
        txs
        jmp $fce2

dat_09a8:
        .byte $8e                                   // .

txt_09a9:
        .text "P"

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

// --- Region $0801-$0820 ---
.pc = $0801 "dat_0801"

dat_0801:
        // === BASIC loader stub ===
        .byte $1e,$08                               // next line pointer ($081e)
        .byte $0a,$00                               // line number 10
        .byte $9e                                   // SYS token
        .text "2081    SLAMBALL    GCS"             // SYS 2081 → main_0821
        .byte $00                                   // end of line
        .byte $00,$00                               // end of BASIC program
        .byte $86                                   // .

// --- Region $09aa-$0a88 ---
.pc = $09aa "Program $09aa"
        .text "RESENTS"
        .byte $00,$00,$02,$90

txt_09b5:
        .text "GERMAN "
        .byte $1c                                   // .

txt_09bd:
        .text "CRACKING "
        .byte $9e                                   // .

txt_09c7:
        .text "SERVICE"
        .byte $07,$ff,$80,$1f,$ff,$e0,$3f,$ff,$f0,$7c,$00,$f8,$f8,$00,$78,$f8 // ......?..|....x.
        .byte $00,$00,$f8,$00,$00,$fc,$00,$00,$7f,$ff,$80,$3f,$ff,$e0,$0f,$ff // ...........?....
        .byte $f0,$00,$01,$f8,$00,$00,$f8,$00,$00,$f8,$00,$00,$f8,$f0,$00,$f8 // ................
        .byte $f8,$01,$f0,$ff,$ff,$f0,$7f,$ff,$e0,$1f,$ff,$80,$00,$00,$00,$80 // ................
        .byte $03,$ff,$00,$0f,$ff,$c0,$1f,$ff,$e0,$3f,$ff,$f0,$7e,$01,$f8,$7c // .........?..~..|
        .byte $00,$f8,$f8,$00,$00,$f8,$00,$00,$f8,$00,$00,$f8,$00,$00,$f8,$00 // ................
        .byte $00,$f8,$00,$00,$f8,$00,$00,$f8,$00,$00,$7c,$00,$f8,$7e,$01,$f8 // ..........|..~..
        .byte $3f,$ff,$f0,$1f,$ff,$e0,$0f,$ff,$c0,$03,$ff,$00,$00,$00,$00,$00 // ?...............
        .byte $03,$ff,$00,$0f,$ff,$c0,$1f,$ff,$e0,$3f,$ff,$f0,$7e,$01,$f8,$7c // .........?..~..|
        .byte $00,$f8,$f8,$00,$00,$f8,$00,$00,$f8,$00,$00,$f8,$07,$f8,$f8,$07 // ................
        .byte $f8,$f8,$07,$f8,$f8,$00,$f8,$f8,$00,$f8,$7c,$01,$f8,$7e,$03,$f8 // ..........|..~..
        .byte $3f,$ff,$f0,$1f,$ff,$e0,$0f,$ff,$c0,$03,$ff // ?..........
