Re: Could you please help me - branch command



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./.
.



Relevant Pages

  • Re: Could you please help me - branch command
    ... how to write anything more advanced than the most basic programs, ... Meaning if the result is bigger than 127 or smaller than -128, ... Maybe you mixed up the V and the C flag. ... Tell us what emulator you used, ...
    (alt.lang.asm)
  • Re: unwanted approx mode
    ... (but you could always flip every single flag, ... The 2.xx ROMS are assembled for original HP "Saturn" CPU ... and 49G+/50G/48Gii (ARM CPU with emulator for Saturn, ... which is why HPGCC doesn't run on Emu48). ...
    (comp.sys.hp48)
  • Re: Did you know?
    ... I have a hubsand who would make a great model as the bear model for proposed ... Not better looking, but bigger. ... > Canadian flag. ... I grew up with the old red ensign - and still love it. ...
    (rec.arts.marching.drumcorps)
  • Re: First action - V 3.1
    ... I'm just saying that some of them can now be a lot bigger. ... Well, it would be a range with most monsters, but it used to have the flag to force starting with max HP, so they were always 3500. ...
    (rec.games.roguelike.angband)
  • Re: First action - V 3.1
    ... I'm just saying that some of them can now be a lot bigger. ... flag to force starting with max HP, ... were not in troll pits. ...
    (rec.games.roguelike.angband)