implemented few trivial math routines

This commit is contained in:
FeralChild64 committed 2020-01-29 19:18:59 +01:00
1 parent 9de9a6c0a7
commit 2d1d7ee0b4
10 files changed
+21 -16

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * BASIC_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// Math package - subtract FAC1 from RAM
//
// Input:
// - .A - address low byte
// - .Y - address high byte
//
// See also:
// - [CM64] Computes Mapping the Commodore 64 - page 112
// - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
// - https://codebase64.org/doku.php?id=base:kernal_floating_point_mathematics
//
FSUB:
jsr CONUPK
// FALLTROUGH to FSUBT