Author Topic: Z80: Negate a 2-byte value  (Read 1645 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • If you can't find a cat, look for its tail.
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2966
  • Rating: +445/-10
    • View Profile
Z80: Negate a 2-byte value
« on: December 23, 2011, 01:11:26 am »
How do I neg a 2-byte register such as HL?  That is, how do I multiply it by -1?
There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1591
  • Rating: +823/-5
  • The game in my avatar is
    • View Profile
Re: Z80: Negate a 2-byte value
« Reply #1 on: December 23, 2011, 01:24:02 am »
I think calc84 summed it up pretty well here:
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.