// ============================================
// output - Disassembled Source
// ============================================
// KickAssembler syntax
// Generated by Restore 64 v0.2.1 alpha build 298, 2026-04-11 21:37:05
// https://restore64.dev by datucker / Rabenauge
//
// Load address: $0801  End: $095f  (351 bytes)
// Entry point:  $0810 (via BASIC SYS 2064)
//
// Code: 127 bytes, Data: 224 bytes
// Labels: 19, Subroutines: 1
//
// Cross-references: all OK
// ============================================


// --- Region $0810-$0881 ---
.pc = $0810 "main_0810"

main_0810:
        lda #$0c
        sta $d020
        sta $d021
        lda #$93
        jsr sub_08f4
        ldx #$6f

loc_081f:
        lda $0883,x
        sta $05bc,x
        dex
        bpl loc_081f
        inx
        lda #$01

loc_082b:
        sta $d800,x
        sta $d900,x
        sta $da00,x
        sta $db00,x
        inx
        bne loc_082b
        lda #$00
        sta $fb
        sta $fc
        sta $c6
        tay
        tax

loc_0844:
        lda $c6
        bne $087d
        lda $d011
        bmi loc_0869
        lda $d012
        cmp #$95
        bpl loc_0869
        tya
        clc
        adc $d012
        lsr
        lsr
        lsr
        sta $d020
        dec $fb
        bne loc_0844
        dey
        dey
        bne loc_0844
        beq loc_0844

loc_0869:
        txa
        clc
        adc $d012
        lsr
        lsr
        lsr
        sta $d020
        dec $fc
        bne loc_0844
        inx
        bne loc_0844
        beq loc_0844
        jmp $fce2

dat_0880:
        .byte $4c,$00                               // L.

// --- Region $08f4-$0902 ---
.pc = $08f4 "sub_08f4"
// Referenced by: jsr from $081a

sub_08f4:
        jsr $ffd2
        ldx #$3f

loc_08f9:
        lda txt_0903,x
        sta $06af,x
        dex
        bpl loc_08f9
        rts

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

// --- Region $0801-$080f ---
.pc = $0801 "dat_0801"

dat_0801:
        // === BASIC loader stub ===
        .byte $0b,$08                               // next line pointer ($080b)
        .byte $c1,$07                               // line number 1985
        .byte $9e                                   // SYS token
        .text "2064"                                // SYS 2064 → main_0810
        .byte $00                                   // end of line
        .byte $00,$00                               // end of BASIC program
        .byte $00,$00,$00                           // ...

// --- Region $0882-$08f3 ---
.pc = $0882 "txt_0882"

txt_0882:
        .text "J U"
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .text "I          "
        .byte $5d                                   // ]

txt_08ad:
        .encoding "screencode_mixed"
        .text " the yak society"
        .encoding "petscii_upper"

txt_08bd:
        .text " - 21:09:85 "
        .byte $5d                                   // ]

txt_08ca:
        .text "          J"
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .byte $40                                   // @ character
        .text "K "
        .byte $00                                   // string terminator

// --- Region $0903-$0942 ---
.pc = $0903 "txt_0903"

txt_0903:
        .encoding "screencode_mixed"
        .text "hi to section"
        .encoding "petscii_upper"

txt_0910:
        .text " 8, "
        .byte $03,$12,$01,$03,$0b,$0d,$01,$0e       // ........

txt_091c:
        .text ",               "

txt_092c:
        .encoding "screencode_mixed"
        .text "wizard, cbg, tbc & tcs."
        .encoding "petscii_upper"
