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

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • 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?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • 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:

http://ourl.ca/11114/211567
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.
       -Runer112