implemented 2 more simple math routines

This commit is contained in:
FeralChild64 committed 2020-02-01 20:52:00 +01:00
1 parent 51064f6b70
commit a2cd07a94c
10 files changed
+78 -12

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * BASIC_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// Math package - round and move FAC1 to FAC2
//
// Output:
// - .A - FAC1 exponent
//
// See also:
// - [CM64] Computes Mapping the Commodore 64 - page 115
// - https://www.c64-wiki.com/wiki/BASIC-ROM
// - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
//
MOVAF:
// First round FAC1
jsr ROUND
// FALLTROUGH to MOVFA