Re: A83: 83 Disassembler


[Prev][Next][Index][Thread]

Re: A83: 83 Disassembler




There is still problems with that. If I put one byte of data between a
routine then the rest of the code would be disassembled incorrectly.

routine1:
	ld a,3
	ret
.db $FE
routine2:
	ld a,4
	ret

would be disassembled as:

	ld a,4
	ret

	cp $3E
	inc b
	ret

Linus Akesson wrote:
> 
> In accordance with the prophecy, Scott Dial uttered:
> 
> > You should realize too that not all ld rr,(xxxx) are reference to
> > data... I use them all the time to modify code to change semi-static cp
> > values to save clocks and bytes everytime it is tested. So... the moral
> > of the story is, well... i don't know
> 
> The moral of the story is that a byte in memory in a microprocessor system
> can be either data or code. There is no real difference. Therefore, a
> disassembler should output both the binary image of what it's disassembling,
> and the instructions it decodes.
> 
> Linus
> 
>    - Linus Akesson ------------------------- http://linusworld.cjb.net -
>    ::: :::. :.:: :. ::.. : :... ::.: ::. :::: :.:. :: :..: :.. :.: :....
> 
>                        recursion, n.: see recursion.

-- 
Scott "_Wrath_" Dial
wrath@calc.org
ICQ#3608935
TimeCity Co-Lead Developer, AI - www.timecity.org
Member of TCPA - tcpa.calc.org
__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html


Follow-Ups: References: