Re: Could you please help me - branch command
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: 12 Mar 2007 11:49:00 +0200
kaja_love160@xxxxxxxxx writes:
1) I think this may be the most important question:
Flag V in CCR register indicates whether the result of an operation
has overflowed according to the two's complement representation.
Meaning if the result is bigger than 127 or smaller than -128, then V
flag will be set to V=1.
So why is V flag set to 1 ( V=1 ) when I do : -10 - (- 5) = - 5 ?
Afterall, result (-5) is not bigger than 127 or smaller than -128!
I used an emulator and I guess it has some bugs. Now what do I do?
Tell us what emulator you used, and whether it's open source.
If it is, then it can possibly be fixed. It definitely sounds
broken.
Moto used to publish explicit logic tables which would
show how every single one of the flags were set. It should
be trivial to verify that the code agrees with those
definitions.
There is an emulator called hippy or something, but as far as I know
you must use hex code, which is to advanced for me. Can you help me
with a second question?
Then build the code for your current emulator, and just copy the
hex dump into this hippy one.
Phil
--
"Home taping is killing big business profits. We left this side blank
so you can help." -- Dead Kennedys, written upon the B-side of tapes of
/In God We Trust, Inc./.
.
- References:
- Could you please help me - branch command
- From: kaja_love160
- Re: Could you please help me - branch command
- From: Evenbit
- Re: Could you please help me - branch command
- From: kaja_love160
- Could you please help me - branch command
- Prev by Date: Re: Ten years later
- Next by Date: How to Insert a textbox into HTML Table.
- Previous by thread: Re: Could you please help me - branch command
- Next by thread: Re: Could you please help me - branch command
- Index(es):
Relevant Pages
|