Commodore 128 Alive!

Commodore 128 => 128 programmers => Assembly => Topic started by: MIRKOSOFT on May 29, 2010, 06:13 PM

Title: FAC#1 and FAC#2 numeric operations
Post by: MIRKOSOFT on May 29, 2010, 06:13 PM
Hi!

I have a list of usable and working routines of mathematical operations for FAC (floating point acc.) #1 and #2 of Commodore 64.

I need help with the same thing on C128.

I found not operations with FAC anywhere.

Can anybody help me with this:

multiplying FAC#1 × FAC#2

divide FAC#1 ÷ FAC#2 or FAC#2 ÷ FAC#1

moving FAC#1 to FAC#2 and back

I need only routines adresses which does these operations.

Thanks for every every help.
Title: OK, I found FAC routines, but...
Post by: MIRKOSOFT on May 30, 2010, 02:39 AM
... how to load value to FAC#1 or #2?

also how to get value from FAC#1 or #2?

Thanks for every help.

Miro
Title: Re: FAC#1 and FAC#2 numeric operations
Post by: Hydrophilic on May 31, 2010, 01:45 AM
Looking at your other thread, it seems like you already got the answer.  But just for anyone else interested,

MovFA = $8c28 ;copy Arg (FAC#2) to FAC (FAC#1)
MovAF = $8c38 ;copy FAC to Arg
Title: Re: FAC#1 and FAC#2 numeric operations
Post by: BigDumbDinosaur on June 23, 2010, 03:51 AM
The 128 BASIC ROM has a jump table in the $A000 block that gives access to the floating point code.
EhPortal 1.34 © 2026, WebDev