PC-1500 arithmetic registers

Talk in english

Modérateur : Politburo

Répondre
kuzja
Fonctionne à 75 bauds
Fonctionne à 75 bauds
Messages : 16
Inscription : 01 avr. 2021 14:26

PC-1500 arithmetic registers

Message par kuzja » 07 janv. 2022 01:35

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

Revenir vers « Silicium in english »