Add abs_FAC1
This commit is contained in:
1 parent
39763ef733
commit
37d15dda17
5 files changed
+21
-22
No files matched your search
@@ -1,19 +0,0 @@
|
||||
;; #LAYOUT# STD * #TAKE
|
||||
;; #LAYOUT# X16 BASIC_0 #TAKE-OFFSET 2000
|
||||
;; #LAYOUT# * BASIC_0 #TAKE
|
||||
;; #LAYOUT# * * #IGNORE
|
||||
|
||||
;
|
||||
; Math package - absolute value
|
||||
;
|
||||
; See also:
|
||||
; - [CM64] Computes Mapping the Commodore 64 - page 115
|
||||
; - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
|
||||
; - https://codebase64.org/doku.php?id=base:kernal_floating_point_mathematics
|
||||
;
|
||||
|
||||
; XXX provide implementation
|
||||
|
||||
abs_FAC1:
|
||||
|
||||
+STUB_IMPLEMENTATION
|
||||
@@ -0,0 +1,17 @@
|
||||
;; #LAYOUT# STD * #TAKE
|
||||
;; #LAYOUT# X16 BASIC_0 #TAKE-OFFSET 2000
|
||||
;; #LAYOUT# * BASIC_0 #TAKE
|
||||
;; #LAYOUT# * * #IGNORE
|
||||
|
||||
; This file is under the MIT license, it contains code released by Microsoft Corporation.
|
||||
; See LICENSE for more information.
|
||||
|
||||
; Math package - absolute value of FAC1
|
||||
;
|
||||
; This is verified to be identical to the original Microsoft implementation where it was named ABS.
|
||||
;
|
||||
|
||||
abs_FAC1:
|
||||
|
||||
lsr FAC1_sign
|
||||
rts
|
||||
File renamed without changes.
Reference in new issue
Block a user