// ============================================
// output - Disassembled Source
// ============================================
// KickAssembler syntax
// Generated by Restore 64 v0.2.1 alpha build 298, 2026-04-11 21:35:54
// https://restore64.dev by datucker / Rabenauge
//
// Load address: $0801  End: $0bff  (1023 bytes)
// Entry point:  $080d (via BASIC SYS 2061)
// IRQ handler:  $0880 (irq_0880)
//
// Code: 363 bytes, Data: 660 bytes
// Labels: 44, Subroutines: 1
//
// Cross-references: all OK
// ============================================


// --- Region $080d-$0980 ---
.pc = $080d "main_080d"

main_080d:
        lda #$00
        sta $d020
        sta $d021
        ldx #$00

loc_0817:
        lda dat_0980,x
        beq loc_0822
        jsr $ffd2
        inx
        bne loc_0817

loc_0822:
        lda #$04
        sta $fa
        ldx #$1f

loc_0828:
        lda #$71
        jsr $ffd2
        dex
        bne loc_0828
        dec $fa
        bne loc_0828
        lda #$51
        sta $07e7
        sta $dbe7
        sei
        lda #$80
        sta $0314
        lda #$08
        sta $0315
        cli
        lda #$01
        sta $d01a
        lda #$7f
        sta $dc0d
        lda #$fb
        sta $d012
        lda #$1b
        sta $d011
        lda #$00
        sta $fc
        lda #$0a
        sta $fb

loc_0864:
        jsr $ffe4
        beq loc_0864
        jsr $fd15
        jsr $e453
        jsr $fda3
        jsr $ff5b
        jmp $fce2

dat_0878:
        .fill 8, $00
irq_0880: {
        lda $d019
        sta $d019
        lda #$fb
        sta $d012
        lda #$1b
        sta $d011
        jsr sub_095a
        ldx $fc
        bne skip2
        lda $01
        and #$fb
        sta $01
        ldy #$00
        lda ($fa),y
        bne skip1
        lda #$00
        sta $fa
        lda #$0a
        sta $fb
        jmp $089f
skip1:
        ldx #$3a
        stx $fe
        asl
        rol $fe
        asl
        rol $fe
        asl
        rol $fe
        sta $fd
loop2:
        lda ($fd),y
        sta $03f0,y
        iny
        cpy #$08
        bne loop2
        ldx #$08
        stx $fc
        lda $01
        ora #$04
        sta $01
        inc $fa
        bne skip2
        inc $fb
skip2:
        asl $03f0
        lda #$0b
        bcc skip3
        lda #$01
skip3:
        sta $d8c7
        sta $d8ef
        sta $d917
        asl $03f1
        lda #$0b
        bcc skip4
        lda #$01
skip4:
        sta $d93f
        sta $d967
        sta $d98f
        asl $03f2
        lda #$0b
        bcc skip5
        lda #$01
skip5:
        sta $d9b7
        sta $d9df
        sta $da07
        asl $03f3
        lda #$0b
        bcc skip6
        lda #$01
skip6:
        sta $da2f
        sta $da57
        sta $da7f
        asl $03f4
        lda #$0b
        bcc skip7
        lda #$01
skip7:
        sta $daa7
        sta $dacf
        sta $daf7
        asl $03f5
        lda #$0b
        bcc skip8
        lda #$01
skip8:
        sta $db1f
        sta $db47
        sta $db6f
        asl $03f6
        lda #$0b
        bcc skip9
        lda #$01
skip9:
        sta $db97
        sta $dbbf
        sta $dbe7
        dec $fc
        jmp $ea31
}
// Referenced by: jsr from $0890

sub_095a:
        ldx #$00

loc_095c:
        lda $d8c9,x
        sta $d8c8,x
        lda $d969,x
        sta $d968,x
        lda $da09,x
        sta $da08,x
        lda $daa9,x
        sta $daa8,x
        lda $db49,x
        sta $db48,x
        inx
        cpx #$a0
        bne loc_095c
        rts

dat_0980:
        .byte $93                                   // .

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

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

dat_0801:
        // === BASIC loader stub ===
        .byte $0b,$08                               // next line pointer ($080b)
        .byte $0a,$00                               // line number 10
        .byte $9e                                   // SYS token
        .text "2061"                                // SYS 2061 → main_080d
        .byte $00                                   // end of line
        .byte $00,$00                               // end of BASIC program

// --- Region $0981-$09a9 ---
.pc = $0981 "Program $0981"
        .byte $05,$11,$1d                           // ...

txt_0984:
        .text "(C) 1986 L.F.K. CRACKING SERVICE"
        .byte $0d                                   // string terminator
        .byte $0d,$0d,$0d,$12                       // ....

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

// --- Region $0a00-$0bf0 ---
.pc = $0a00 "txt_0a00"

txt_0a00:
        .encoding "screencode_mixed"
        .text " l.f.k. cracking service proudly presents : break thru . cracked 2 dec"
        .encoding "petscii_upper"

txt_0a46:
        .text " 1986 . "

txt_0a4e:
        .encoding "screencode_mixed"
        .text "if you want to swap new games write to : mr. l.f.k"
        .encoding "petscii_upper"

txt_0a80:
        .text ". * "
        .byte $14,$01,$0c,$0c,$16                   // .....

txt_0a89:
        .text ". 11 * 37200 "

txt_0a96:
        .encoding "screencode_mixed"
        .text "ronneby * sweden . greetings to raoul * quiller memorandom * frankie * s.s.i"
        .encoding "petscii_upper"

txt_0ae2:
        .text ". * "

txt_0ae6:
        .encoding "screencode_mixed"
        .text "banana joe * dep * g.c.c"
        .encoding "petscii_upper"

txt_0afe:
        .text ". * "

txt_0b02:
        .encoding "screencode_mixed"
        .text "hagge * ninja * lars * w.c.c"
        .encoding "petscii_upper"

txt_0b1e:
        .text ". * "
        .byte $14,$2e,$03,$2e,$03                   // .....

txt_0b27:
        .text ". * "
        .byte $03,$2e,$03,$2e,$13                   // .....

txt_0b30:
        .text ". * "

txt_0b34:
        .encoding "screencode_mixed"
        .text "c.f.o. and zacke . also from l.f.k"
        .encoding "petscii_upper"

txt_0b56:
        .text ". : "

txt_0b5a:
        .encoding "screencode_mixed"
        .text "tarzan * howard the duck * scooby doo * lightforce * avenger * paperboy and much more . bye bye from l.f.k. cracking service . see you soon"
        .encoding "petscii_upper"

txt_0be5:
        .text " !!!        "
