6502 chip, HC11 disasm

Wouter de Waal wrm at ccii.co.za
Fri Oct 2 07:01:16 GMT 1998


Mike Morrin sez:

>http://wwwis.cs.utwente.nl:8080/~faase/Ha/Apollo.html

This is a better link than the one I posted just now. But I'll
keep the other one up for a while.

Jason Weir sez:

>try this, I am not sure what it does but it does something

<grin>


>disasm11 -if akal.bin -sa 0x617 -ea 0xfff
>
>where akal.bin is the binary file you want to disassemble
>- -sa is the start address 0x617 on the 2732 eprom
>- -ea is the end address 0xFFF on the 2732 eprom

Close. Lessee, I have a file, daewoo.rom, which is 32K, and which is
mapped into the processor space from $8000 (0x8000) to $FFFF. Then
disasm11 -if daewoo.rom -fo 8000 -sa 8000 | more

gives
68HC11 Disassembler V0.1beta
By W. de Waal Sept 1998 (Based on 1990/91 6809 disasm)
reading opcode tables...
initialising target memory
Input file <daewoo.rom>
File offset in memory is $8000
Disasm starts from $8000
infilenme = >daewoo.rom<
Reading daewoo.rom
Vectors:
Reset:    $9015
ClkFail:  $9010
Watchdog: $9000
8000: 02            idiv 
8001: 7F   2B8D     clr   $2B8D
8004: 4E            ?????
8005: 01            nop  
8006: 06            tap  
8007: 19            daa  

etc. This tells me that the interesting code starts at 9000. So
disasm11 -if daewoo.rom -fo 8000 -sa 9000 | more

68HC11 Disassembler V0.1beta
By W. de Waal Sept 1998 (Based on 1990/91 6809 disasm)
reading opcode tables...
initialising target memory
Input file <daewoo.rom>
File offset in memory is $8000
Disasm starts from $9000
infilenme = >daewoo.rom<
Reading daewoo.rom
Vectors:
Reset:    $9015
ClkFail:  $9010
Watchdog: $9000
9000: 14   19 02    bset  $19 $02
9003: 96   1A       ldaa  $1A
9005: 81   AA       cmpa  #$AA
9007: 26   16       bne   $901F
9009: 86   10       ldaa  #$10
900B: B7   1035     staa  $1035
900E: 20   0F       bra   $901F
9010: 14   19 01    bset  $19 $01
9013: 20   0A       bra   $901F
9015: 15   19 03    bclr  $19 $03
9018: B6   84E3     ldaa  $84E3
901B: 85   04       bita  #$04
901D: 26   EA       bne   $9009
901F: 4F            clra 


>Now that I get it too output is there any way to output to a file or
>caputre the output??? or is that what "not implemented" meant??? JTW

Yup :-)

Orin sez:

>A simple redirection ( > filename ) worked for me on NT 4.0.

I found that that works, so I didn't bother implementing the -of.

The user interface sucks. I wrote it in 1990 before I knew about Unix.
Soon to change.

Jason again:
>Where is a good place to start to learn what the output means.... I know
>what a pain and I am in over my head but what the heck....  thanks JTW

I used the pdf file from motorola. But there are a number of "cut&paste"
errors - beware. I *think* my interpretation is right, and the Motorola
documentation is wrong :-) 

>Using the HC11 disassembler I disassembled the 1227747 eprom code and
>the internal rom code... I placed the results up on my web site for all
>to see

Hey great :-)

Wouter




More information about the Diy_efi mailing list