PC-1500 arithmetic registers

Talk in English

Modérateur : Politburo

Répondre
kuzja
Fonctionne à 75 bauds
Fonctionne à 75 bauds
Messages : 17
Enregistré le : 01 avr. 2021 14:26

PC-1500 arithmetic registers

Message par kuzja »

According to the Technical Reference Manual, there are two ways how a number can be stored in R0 (or other arithmetic register). First, there is the "standard" floating point BCD representation, and second, there is the binary representation (which uses just part of the register - 1 Byte flag and 2 Bytes value).

However, the binary representation cannot be used with the arithmetic ROM routines (like SBR(F0) - addition).
What is the easiest way to convert the number in R0 from binary format to FP BCD format? Is there a subroutine for this purpose?

I tried to normalize the binary number by SBR (E8), but it does not perform the conversion.
Thanks for help.
Répondre

Retourner vers « Silicium in English »