[Coco] Dragon 64. 64k ROM to RAM boot routine

rietveld rietveld rietveldh at hotmail.com
Wed Apr 3 14:51:09 EDT 2019


‎                                        $bf5a  b6 01 1a LDA  $011a
$bf5d 81 55 CMPA #$55‎
$bf5f 26 16 BNE  $bf77
$bf61 b7 ff df STA  $ffdf
$bf64 8e c0 00 LDX  #$c000
$bf67 cc 00 00 LDD  #$0000
$bf6a e3 81 ADDD ,X++
$bf6c 8c ff 00 CMPX #$ff00
$bf6f 25 f9 BLO  $bf6a
$bf71 10 b3 01 1b CMPD $011b
$bf75 27 6f BEQ  $bfe6

$bf77 b7 ff de STA  $ffde
$bf7a b6 ff 23 LDA  $ff23
$bf7d 84 fb ANDA #$fb
$bf7f b7 ff 23 STA  $ff23
$bf82 f6 ff 22 LDB  $ff22
$bf85 ca 04 ORB  #$04
$bf87 f7 ff 22 STB  $ff22
$bf8a 8a 04 ORA  #$04
$bf8c b7 ff 23 STA  $ff23
$bf8f b6 ff 22 LDA  $ff22
$bf92 84 fb ANDA #$fb
$bf94 b7 ff 22 STA  $ff22
$bf97 fe bf f0 LDU  #$bff0
$bf9a 11 83 36 CMPU #$3634
$bf9e 27 08 BEQ  $bfa8
$bfa0 8a 04 ORA  #$04
$bfa2 b7 ff 22 STA  $ff22
$bfa5 7e 8b 8d JMP  $8b8d

$bfa8 7f 01 1b CLR  $011b
$bfab 7f 01 1c CLR  $011c
$bfae 8e 80 00 LDX  #$8000
$bfb1 10 8e c0 00 LDY  #$c000
$bfb5 ec 81 LDD  ,X++
$bfb7 b7 ff df STA  $ffdf
$bfba ed a1 STD  ,Y++
$bfbc f3 01 1b ADDD $011b
$bfbf fd 01 1b STD  $011b
$bfc2 10 8c ff 00 CMPY #$ff00
$bfc6 24 05 BHS  $bfcd
$bfc8 b7 ff de STA  $ffde
$bfcb 20 e8 BRA  $bfb5

$bfcd 8e bf f0 LDX  #$bff0
$bfd0 9f 74 STX  <$74
$bfd2 9f 27 STX  <$27
$bfd4 9f 23 STX  <$23
$bfd6 30 89 LEAX -200,X
$bfda 9f 21 STX  <$21
$bfdc 1f 14 TFR  X,S
$bfde 8e bf 49 LDX  #$bf49
$bfe1 9f 72 STX  <$72‎
$bfe3 7e c0 00 JMP  $c000

$bfe6 7e c0 03 JMP  $c003‎


More information about the Coco mailing list