	.data
	.bank 0
	.org $f200
header:
    .db $44,$42,$20,$72,$6f,$6d,$20,$76
    .db $65,$72,$20,$31,$2e,$32,$30,$20
    .db $66,$6f,$72,$20,$48,$75,$37,$20
    .db $63,$6f,$70,$79,$72,$69,$67,$68
    .db $74,$20,$31,$39,$38,$39,$20,$48
    .db $75,$64,$73,$6f,$6e,$20,$73,$6f
    .db $66,$74,$2c,$4d,$61,$73,$61,$68
    .db $69,$72,$6f,$20,$54,$6f,$62,$69
    .db $74,$61

	.code
	.bank 0
	.org $f243
hu7d:
          SEI     
          CLD     
          LDX     #$3f
          TXS     
          CSH     
          LDA     #$f8
          TAM     #$01
          LDA     #$fc
          TAM     #$06
          TII     $e000, $c000, $2000
          STZ     $c000
          STZ     $c001
          TAI     $c000, $c002, $03fe
          LDA     #$fc
          TAM     #$07
          LDA     #$fc
          TAM     #$01
          LDA     #$f8
          STA     $e00a
          STA     <$2b
          LDA     #$ff
          TAM     #$00
          STA     $e009
          STA     <$2a
          LDA     #$01
          TAM     #$02
          STA     $e00b
          STA     <$2c
          INC     A
          TAM     #$03
          STA     $e00c
          STA     <$2d
          INC     A
          TAM     #$04
          STA     $e00d
          STA     <$2e
          INC     A
          TAM     #$05
          STA     $e00e
          STA     <$2f
          INC     A
          TAM     #$06
          STA     $e00f
          STA     <$30
          CLA     
          STA     $e010
          STA     <$31
          LDA     #$ff
          STA     $e000
          LDA     #$00
          STA     $e004
          STA     $e001
          STA     $e002
          STA     $e003
          STA     $e006
          LDA     #$40
          STA     $e007
          LDA     #$ff
          STA     $e005
          CSL     
          LDA     #$80
          STA     $1c23
          LDA     #$00
          STA     $1c20
          STA     $1c21
          STA     $1c22
          STA     <$32
          LDA     #$01
          STA     $1c40
          STA     $e008
          JSR     lf300_01
          LDA     #$91
          STA     $1c03
          JSR     lfb28_01
          LDA     #$09
          STA     $1c03
          LDA     #$0b
          STA     $1c03
          CSH     
          JMP     l_f3fb
lf300_01:
          STZ     $e013
          LDA     #$aa
          BSR     lf310_01
          BNE     lf318_01
          LDA     #$55
          BSR     lf310_01
          BNE     lf318_01
          CLA     
lf310_01:
          STA     $180e
          NOP     
          CMP     $180e
          RTS     
lf318_01:
          DEC     $e013
          RTS     

	.data
	.bank 0
	.org $f31c
unknown_0:
    .db $48,$43,$01,$48,$a9,$ff,$53,$01
    .db $ad,$00,$00,$68,$53,$01,$68,$40
    .db $48,$43,$01,$48,$a9,$ff,$53,$01
    .db $8d,$03,$14,$68,$53,$01,$68,$40

	.code
	.bank 0
	.org $f3fb
l_f3fb:
          LDX     #$3f
          TXS     
          JSR     lf964_03
          CMP     #$28
          BCS     l_f3fb
          BSR     lf40a_03
          JMP     l_f3fb
lf40a_03:
          ASL     A
          TAX     
          JMP     [$f40f, X]

	.data
	.bank 0
	.org $f40f
jmp_tbl:
    .db $fb,$f3,$5f,$f4,$6a,$f4,$76,$f4
    .db $8c,$f4,$e6,$f4,$f5,$f4,$04,$f5
    .db $1b,$f5,$32,$f5,$59,$f5,$86,$f5
    .db $a2,$f5,$cd,$f5,$24,$f6,$53,$f6
    .db $85,$f6,$e3,$f6,$fa,$f6,$0c,$f7
    .db $fe,$f6,$1a,$f7,$36,$f7,$82,$f4
    .db $52,$f7,$73,$f7,$bc,$f7,$d3,$f7
    .db $e9,$f7,$0e,$f8,$30,$f8,$51,$f8
    .db $92,$f7,$71,$f8,$84,$f8,$98,$f8
    .db $bd,$f8,$d5,$f8,$ea,$f8,$04,$f9

	.code
	.bank 0
	.org $f45f
l_f45f:
          LDA     #$03
          JSR     lfb52_05
          LDA     #$12
          JSR     lfb52_05
          RTS     
l_f46a:
          JSR     lf976_05
          JSR     lfa52_05
          LDA     [$20], Y
          JSR     lfb52_05
          RTS     
l_f476:
          JSR     lf976_05
          JSR     lfa52_05
          JSR     lfb32_05
          STA     [$20], Y
          RTS     
l_f482:
          JSR     lfb06_05
          LDA     #$24
          JSR     lfb52_05
          BRA     lf48f_05
l_f48c:
          JSR     lfb06_05
lf48f_05:
          LDA     $1c40
          LDA     $e008
          STA     $1c40
          BIT     #$08
          BNE     lf49d_05
          CSL     
lf49d_05:
          LDA     $e009
          TAM     #$00
          LDA     $e00a
          TAM     #$01
          LDA     $e00b
          TAM     #$02
          LDA     $e00c
          TAM     #$03
          LDA     $e00d
          TAM     #$04
          LDA     $e00e
          TAM     #$05
          LDA     $e00f
          TAM     #$06
          LDX     $e005
          TXS     
          LDX     $e002
          LDY     $e003
          LDA     $e007
          PHA     
          LDA     $e006
          PHA     
          LDA     $e004
          PHA     
          LDA     #$00
          STA     $e000
          LDA     $e001
          PHA     
          LDA     $e010
          PHA     
          JMP     lffeb_05
l_f47e6:
          LDY     #$10
          LDX     #$00
lf4ea_05:
          LDA     $e001, X
          JSR     lfb52_05
          INX     
          DEY     
          BNE     lf4ea_05
l_f4f4:
          RTS     
l_f4f5:
          LDY     #$10
          LDX     #$00
lf4f9_05:
          JSR     lfb32_05
          STA     $e001, X
          INX     
          DEY     
          BNE     lf4f9_05
          RTS     
l_f504:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfa52_05
lf50d_05:
          LDA     [$20], Y
          JSR     lfb52_05
          JSR     lfa8e_05
          JSR     lf997_05
          BNE     lf50d_05
          RTS     
l_f51b:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfa52_05
lf524_05:
          JSR     lfb32_05
          STA     [$20], Y
          JSR     lfa8e_05
          JSR     lf997_05
          BNE     lf524_05
          RTS     
l_f532:
          JSR     lf976_05
          JSR     lf98c_05
lf538_05:
          LDA     <$20
          LDX     <$21
          JSR     lf9bd_05
          JSR     lfa04_05
          JSR     lfb52_05
          JSR     lf997_05
          BEQ     lf558_05
          JSR     lf9f9_05
          JSR     lfb52_05
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf538_05
lf558_05:
          RTS     
l_f559:
          JSR     lf976_05
          JSR     lf98c_05
lf55f_05:
          LDA     <$20
          LDX     <$21
          JSR     lf9b8_05
          JSR     lfb32_05
          JSR     lf9ee_05
          JSR     lf997_05
          BEQ     lf580_05
          JSR     lfb32_05
          JSR     lf9e3_05
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf55f_05
          RTS     
lf580_05:
          LDA     #$00
          JSR     lf9e3_05
          RTS     
l_f586:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfa52_05
          JSR     lfb32_05
          TAX     
          JSR     lfb32_05
lf596_05:
          TXA     
          STA     [$20], Y
          JSR     lfa8e_05
          JSR     lf997_05
          BNE     lf596_05
          RTS     
l_f5a2:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfa0f_05
          JSR     lfb32_05
          TAY     
          JSR     lfb32_05
          TAX     
lf5b3_05:
          PHX     
          LDA     <$20
          LDX     <$21
          JSR     lf9b8_05
          PLX     
          TYA     
          JSR     lf9ee_05
          TXA     
          JSR     lf9e3_05
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf5b3_05
          RTS     
l_f5cd:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lf981_05
          JSR     lf913_05
          TXA     
          BNE     lf600_05
          JSR     lfa52_05
          STY     <$26
          JSR     lfa70_05
          STY     <$27
lf5e6_05:
          LDY     <$26
          LDA     [$20], Y
          PHA     
          JSR     lfac2_05
          STY     <$26
          PLA     
          LDY     <$27
          STA     [$22], Y
          JSR     lfadd_05
          STY     <$27
          JSR     lf997_05
          BNE     lf5e6_05
          RTS     
lf600_05:
          JSR     lfa52_05
          STY     <$26
          JSR     lfa70_05
          STY     <$27
lf60a_05:
          LDY     <$26
          LDA     [$20], Y
          PHA     
          JSR     lfa8e_05
          STY     <$26
          PLA     
          LDY     <$27
          STA     [$22], Y
          JSR     lfaa8_05
          STY     <$27
          JSR     lf997_05
          BNE     lf60a_05
          RTS     
l_f624:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lf981_05
          JSR     lfa0f_05
          JSR     lfa52_05
lf633_05:
          LDA     <$22
          LDX     <$23
          JSR     lf9b8_05
          LDA     [$20], Y
          JSR     lf9ee_05
          JSR     lfa8e_05
          LDA     [$20], Y
          JSR     lf9e3_05
          JSR     lfa8e_05
          JSR     lfaff_05
          JSR     lf997_05
          BNE     lf633_05
          RTS     
l_f653:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lf981_05
          JSR     lfa0f_05
          JSR     lf9a7_05
          JSR     lfa52_05
lf665_05:
          LDA     <$22
          LDX     <$23
          JSR     lf9bd_05
          JSR     lfa04_05
          STA     [$20], Y
          JSR     lfa8e_05
          JSR     lf9f9_05
          STA     [$20], Y
          JSR     lfa8e_05
          JSR     lfaff_05
          JSR     lf997_05
          BNE     lf665_05
          RTS     
l_f685:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lf981_05
          JSR     lfa0f_05
          JSR     lf913_05
lf694_05:
          PHX     
          LDA     <$20
          LDX     <$21
          JSR     lf9bd_05
          JSR     lfa04_05
          PHA     
          JSR     lf9f9_05
          TAY     
          JSR     lf9a7_05
          LDA     <$20
          LDX     <$21
          JSR     lf9b8_05
          PLA     
          JSR     lf9ee_05
          TYA     
          JSR     lf9e3_05
          PLX     
          JSR     lf6bd_05
          BNE     lf694_05
          RTS     
lf6bd_05:
          LDA     $f947, X
          CLC     
          ADC     <$20
          STA     <$20
          LDA     $f948, X
          ADC     <$21
          STA     <$21
          PHX     
          JSR     lf9a7_05
          PLX     
          LDA     $f947, X
          CLC     
          ADC     <$20
          STA     <$20
          LDA     $f948, X
          ADC     <$21
          STA     <$21
          JMP     lf997_05
l_f6e3:
          JSR     lf976_05
          JSR     lf94b_05
          LDA     <$20
          JSR     lfb52_05
          LDA     <$21
          STA     $fb52
          JSR     l2028_05
          JSR     lfb52_05
          RTS     
l_f6fa:
          JSR     lfb32_05
          RTS     
l_f6fe:
          LDY     #$08
          LDX     #$00
lf702_05:
          JSR     lfb32_05
          STA     <$2a, X
          INX     
          DEY     
          BNE     lf702_05
          RTS     
l_f70c:
          LDY     #$08
          LDX     #$00
lf710_05:
          LDA     <$2a, X
          JSR     lfb52_05
          INX     
          DEY     
          BNE     lf710_05
          RTS     
l_f71a:
          JSR     lf976_05
          JSR     lfb32_05
          STA     <$28
          JSR     lf98c_05
          JSR     lfa20_05
lf728_05:
          LDA     [$20], Y
          JSR     lfb52_05
          JSR     lfa3c_05
          JSR     lf997_05
          BNE     lf728_05
          RTS     
l_f736:
          JSR     lf976_05
          JSR     lfb32_05
          STA     <$28
          JSR     lf98c_05
          JSR     lfa20_05
lf744_05:
          JSR     lfb32_05
          STA     [$20], Y
          JSR     lfa3c_05
          JSR     lf997_05
          BNE     lf744_05
          RTS     
l_f752:
          JSR     lf976_05
          JSR     lf98c_05
          BSR     lf7b1_05
lf75a_05:
          LDA     $0404
          JSR     lfb52_05
          JSR     lf997_05
          BEQ     lf772_05
          LDA     $0405
          AND     #$01
          JSR     lfb52_05
          JSR     lf997_05
          BNE     lf75a_05
lf772_05:
          RTS     
l_f773:
          JSR     lf976_05
          JSR     lf98c_05
          BSR     lf7b1_05
lf77b_05:
          JSR     lfb32_05
          STA     $0404
          JSR     lf997_05
          BEQ     lf791_05
          JSR     lfb32_05
          STA     $0405
          JSR     lf997_05
          BNE     lf77b_05
lf791_05:
          RTS     
l_f792:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfa0f_05
          BSR     lf7b1_05
          JSR     lfb32_05
          TAX     
          JSR     lfb32_05
          TAY     
lf7a5_05:
          STX     $0404
          STY     $0405
          JSR     lf997_05
          BNE     lf7a5_05
          RTS     
lf7b1_05:
          LDA     <$20
          STA     $0402
          LDA     <$21
          STA     $0403
          RTS     
l_f7bc:
          JSR     lfb32_05
          CSL     
          STA     $1c20
          JSR     lfb32_05
          CSL     
          STA     $1c21
          JSR     lfb32_05
          CSL     
          STA     $1c22
          CSH     
          RTS     
l_f7d3:
          CSL     
          LDA     $1c20
          JSR     lfb52_05
          CSL     
          LDA     $1c21
          JSR     lfb52_05
          CSL     
          LDA     $1c22
          JSR     lfb52_05
          RTS     
l_f7e9:
          JSR     lf976_05
          JSR     lfb32_05
          STA     <$28
          JSR     lf98c_05
          JSR     lfa20_05
lf7f7_05:
          LDA     [$20], Y
          PHA     
          JSR     lfa3c_05
          LDA     [$20], Y
          PHA     
          JSR     lfa3c_05
          PLX     
          PLA     
          JSR     lfb93_05
          JSR     lf997_05
          BNE     lf7f7_05
          RTS     
l_f80e:
          JSR     lf976_05
          JSR     lfb32_05
          STA     <$28
          JSR     lf98c_05
          JSR     lfa20_05
lf81c_05:
          JSR     lfb70_05
          STA     [$20], Y
          JSR     lfa3c_05
          TXA     
          STA     [$20], Y
          JSR     lfa3c_05
          JSR     lf997_05
          BNE     lf81c_05
          RTS     
l_f830:
          JSR     lf976_05
          JSR     lf98c_05
lf836_05:
          LDA     <$20
          LDX     <$21
          JSR     lf9bd_05
          JSR     lfa04_05
          SAX     
          JSR     lf9f9_05
          SAX     
          JSR     lfb93_05
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf836_05
          RTS     
l_f851:
          JSR     lf976_05
          JSR     lf98c_05
lf857_05:
          LDA     <$20
          LDX     <$21
          JSR     lf9b8_05
          JSR     lfb70_05
          JSR     lf9ee_05
          TXA     
          JSR     lf9e3_05
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf857_05
          RTS     
l_f871:
          BSR     lf8b1_05
lf873_05:
          CSL     
          LDA     [$20]
          JSR     lfb52_05
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf873_05
          JMP     lfbc2_05
l_f884:
          BSR     lf8b1_05
lf886_05:
          JSR     lfb32_05
          CSL     
          STA     [$20]
          CSH     
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf886_05
          JMP     lfbc2_05
l_f898:
          BSR     lf8b1_05
          JSR     lfb32_05
          TAX     
          JSR     lfb32_05
lf8a1_05:
          TXA     
          CSL     
          STA     [$20]
          CSH     
          JSR     lfaf8_05
          JSR     lf997_05
          BNE     lf8a1_05
          JMP     lfbc2_05
lf8b1_05:
          JSR     lfbb4_05
          JSR     lf976_05
          JSR     lf98c_05
          SMB7    <$21
          RTS     
l_f8bd:
          JSR     lfc20_05
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfbcf_05
lf8c9_05:
          JSR     lfbeb_05
          JSR     lfb52_05
          JSR     lf997_05
          BNE     lf8c9_05
          RTS     
l_f8d5:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfbf9_05
lf8de_05:
          JSR     lfb32_05
          JSR     lfc10_05
          JSR     lf997_05
          BNE     lf8de_05
          RTS     
l_f8ea:
          JSR     lf976_05
          JSR     lf98c_05
          JSR     lfbf9_05
          JSR     lfb32_05
          TAX     
          JSR     lfb32_05
lf8fa_05:
          TXA     
          JSR     lfc10_05
          JSR     lf997_05
          BNE     lf8fa_05
          RTS     
l_f904:
          LDA     <$32
          PHA     
          JSR     lfb32_05
          AND     #$01
          STA     <$32
          PLA     
          JSR     lfb52_05
          RTS     

