home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / zcpr33 / syslbsrc.lbr / SMTH01.ZY0 / SMTH01.ZY0
Text File  |  1989-09-17  |  1KB  |  35 lines

  1. ;    TITLE    "SMTH01 - Syslib 4.0"
  2.     NAME    ('ADDHD')
  3. ;=================================================================
  4. ;   The Libraries, Version 4, (C) 1989 by Alpha Systems Corp.
  5. ;-----------------------------------------------------------------
  6. ; Author  : Harold F. Bower
  7. ;        Derived from SMTH01.Z80 Ver 1.1 by Richard Conn
  8. ; Date    : 17 Sep 89
  9. ; Version : 1.2
  10. ; Module  : SMTH01
  11. ; Abstract: This module contains the routine ADDHD which adds
  12. ;    the contents of two 16-bit registers, returning a flag
  13. ;    if overflow occured.
  14. ; Revision:
  15. ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  16. ; Module Entry Points
  17.  
  18.     PUBLIC        ADDHD
  19.  
  20.     .Z80
  21.     CSEG
  22. ;===============================================================
  23. ; NAME - ADDHD
  24. ; Entry: HL,DE - Contain two 16-bit unsigned values
  25. ; Exit :  F - Carry Set (C) if Overflow, else Reset (NC)
  26. ;     HL - Contains (HL)+(DE)
  27. ; Uses : F,HL
  28. ; Special Requirements: None
  29. ;===============================================================
  30.  
  31. ADDHD:    ADD    HL,DE        ; Carry is set by this command
  32.     RET
  33.  
  34.     END
  35.