Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPU #99

Closed
CorruptedByCPU opened this issue Jan 25, 2021 · 1 comment
Closed

FPU #99

CorruptedByCPU opened this issue Jan 25, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@CorruptedByCPU
Copy link
Owner

CorruptedByCPU commented Jan 25, 2021

Ok, I need some help with file fpu.asm

Procedure soler_fpu_float_to_fraction, should return INTEGER from FRACTION

eg.

in:
soler_fpu_precision	dq	4	; convert max 4 digits after "."
soler_fpu_float_result	dq	5.076	; float

out:
soler_fpu_precision	dq	3	; integer
soler_fpu_fraction	dq	76	; integer

soler_fpu_precision contains number of digits after "."
soler_fpu_fraction contains integer of 076

FPU is hard to digest for me, and Bochs doesn't help with that...

Some explanation:

; this procedure wil change X to ZERO in variable soler_fpu_float_result
call	soler_fpu_float_only	; X.Y > 0.Y
@CorruptedByCPU CorruptedByCPU added the help wanted Extra attention is needed label Jan 25, 2021
@CorruptedByCPU
Copy link
Owner Author

no more required, problem was somewhere else (memory alignment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant