comparison src/math.inc @ 628:cd58f7fc86db

3.05 stable work
author heinrichsweikamp
date Thu, 19 Sep 2019 12:01:29 +0200
parents c40025d8e750
children 185ba2f91f59
comparison
equal deleted inserted replaced
627:bf5fee575701 628:cd58f7fc86db
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File math.inc combined next generation V3.03.2 3 ; File math.inc combined next generation V3.04.3
4 ; 4 ;
5 ; 5 ;
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
7 ;============================================================================= 7 ;=============================================================================
8 ; HISTORY 8 ; HISTORY
16 ; trashes WREG 16 ; trashes WREG
17 17
18 extern mult16 ; divA:2 = divA:2 * 2^WREG 18 extern mult16 ; divA:2 = divA:2 * 2^WREG
19 ; trashes WREG 19 ; trashes WREG
20 20
21 extern addU16 ; sub_c:2 = sub_a:2 + sub_b:2 with USIGNED values
22 ; trashes WREG
23
21 extern sub16 ; sub_c:2 = sub_a:2 - sub_b:2 with SIGNED values 24 extern sub16 ; sub_c:2 = sub_a:2 - sub_b:2 with SIGNED values
22 ; sets neg_flag if result is < 0 25 ; sets neg_flag if result is < 0
23 ; trashes WREG 26 ; trashes WREG
24 27
25 extern subU16 ; sub_c:2 = sub_a:2 - sub_b:2 with UNSIGNED values 28 extern subU16 ; sub_c:2 = sub_a:2 - sub_b:2 with UNSIGNED values
26 ; sets neg_flag if result is < 0 29 ; sets neg_flag if result is < 0
27 ; trashes WREG 30 ; trashes WREG
28 31
29 extern cmpU16 ; sub_a:2 - sub_b:2 with UNSIGNED values 32 extern cmpU16 ; trashed = sub_a:2 - sub_b:2 with UNSIGNED values
30 ; sets neg_flag if result is < 0, but does not store result itself 33 ; sets neg_flag if result is < 0, but does not store result itself
31 ; trashes WREG 34 ; trashes WREG
32 35
33 extern mult16x16 ; xC:4 = xA:2 * xB:2 with UNSIGNED values 36 extern mult16x16 ; xC:4 = xA:2 * xB:2 with UNSIGNED values
34 ; trashes PRODL, PRODH, WREG 37 ; trashes PRODL, PRODH, WREG