Mercurial > public > hwos_code
diff src/math.inc @ 623:c40025d8e750
3.03 beta released
author | heinrichsweikamp |
---|---|
date | Mon, 03 Jun 2019 14:01:48 +0200 |
parents | ca4556fb60b9 |
children | cd58f7fc86db |
line wrap: on
line diff
--- a/src/math.inc Wed Apr 10 10:51:07 2019 +0200 +++ b/src/math.inc Mon Jun 03 14:01:48 2019 +0200 @@ -1,6 +1,6 @@ ;============================================================================= ; -; File math.inc REFACTORED VERSION V2.99d +; File math.inc combined next generation V3.03.2 ; ; ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. @@ -8,7 +8,7 @@ ; HISTORY ; 2011-08-03 : [mH] moving from OSTC code - extern convert_time ; converts hi:lo in minutes to hours (up:hi) and minutes (lo) + extern convert_time ; convert hi:lo in minutes to hours (up:hi) and minutes (lo) ; also usable for conversion of seconds to minutes and seconds ; trashes xA, xB, xC @@ -26,6 +26,10 @@ ; sets neg_flag if result is < 0 ; trashes WREG + extern cmpU16 ; sub_a:2 - sub_b:2 with UNSIGNED values + ; sets neg_flag if result is < 0, but does not store result itself + ; trashes WREG + extern mult16x16 ; xC:4 = xA:2 * xB:2 with UNSIGNED values ; trashes PRODL, PRODH, WREG