FAC#1 and FAC#2 numeric operations

Started by MIRKOSOFT, May 29, 2010, 06:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

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.
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

MIRKOSOFT

... how to load value to FAC#1 or #2?

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

Thanks for every help.

Miro
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

Hydrophilic

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
I'm kupo for kupo nuts!

BigDumbDinosaur

The 128 BASIC ROM has a jump table in the $A000 block that gives access to the floating point code.
x86?  We ain't got no x86.  We don't need no stinking x86!