Search found 11 matches

by tedaz
Sun Jul 18, 2004 10:59 am
Forum: Programming
Topic: How to convert an APPLE's floating-point number to ASCII?
Replies: 8
Views: 5655

I need floating-point routines write in 6502 ASM.

Thanks for "Mats".
I want to write a statistics program in 6502 assembly language.
So, I need floating-point routines.
I have already get a FADD/FSUB/FMUL/FDIV.

But, I meet a serious problem:How to convert an internal floating-point number to a printable string? How to get a floating-point number ...
by tedaz
Fri Jul 16, 2004 12:34 pm
Forum: Programming
Topic: How to convert an APPLE's floating-point number to ASCII?
Replies: 8
Views: 5655

How to convert an APPLE's floating-point number to ASCII?

How to convert an APPLE's floating-point number to a printable ASCII?

1)Howto convert ascii to "float"
2)Howto convert "float" to ascii
The Float-point number is stored in APPLE's format which is discussed in "I can't understand FLOATING POINT REPRESENTATION"
by tedaz
Mon Jul 12, 2004 4:41 pm
Forum: Programming
Topic: I can't understand FLOATING POINT REPRESENTATION
Replies: 17
Views: 12647

Thanks for dclxvi's explanation.

Thanks for dclxvi's explanation.
I just found The subtraction performed by FSUB is actually FP1 = FP2 - FP1. this evening.
And as you said, there are a lot of errors in the documentation, in fact.

As I had said at the beginning, I want to write a program in 6502 assembler language. This program ...
by tedaz
Mon Jul 12, 2004 1:12 am
Forum: Programming
Topic: I can't understand FLOATING POINT REPRESENTATION
Replies: 17
Views: 12647

http://www.6502.org/source/floats/wozfp1.txt

Yes, I have already read this
http://www.6502.org/source/floats/wozfp1.txt
http://www.6502.org/source/floats/wozfp2.txt
http://www.6502.org/source/floats/wozfp3.txt
Therefor I have the question about "APPLE's floationg-point number representation".
In "http://www.6502.org/source/floats/wozfp1.txt ...
by tedaz
Sun Jul 11, 2004 4:33 pm
Forum: Programming
Topic: I can't understand FLOATING POINT REPRESENTATION
Replies: 17
Views: 12647

An APPLE Emulator

I found an APPLE emulator at http://www.tomcharlesworth.pwp.blueyonder.co.uk/
Maybe it can help "Mats" print floating-point numbers.
Can "Mats" tell me how to print floating-point numbers with APPLE's BASIC?
by tedaz
Sun Jul 11, 2004 4:21 am
Forum: Programming
Topic: I can't understand FLOATING POINT REPRESENTATION
Replies: 17
Views: 12647

Some information

I found some information of APPLE II's floating-point number representation at http://aplawrence.com/cgi-bin/wiki?FloatingPoint

["Tandy stored floating point nubers in what they called "XS128 notation" (Excess 128 is what they really meant) and MBASIC used packed BCD."
Tandy used excess 128 ...
by tedaz
Sun Jul 11, 2004 1:17 am
Forum: Programming
Topic: I can't understand FLOATING POINT REPRESENTATION
Replies: 17
Views: 12647

Apple's floating-point number representation sample.

1. Mantissa

The floating point mantissa is stored in two's complement representation
with the sign at the most significant bit (MSB) position of the high-order
mantissa byte. The mantissa provides 24 bits of precision, including sign,
and can represent 24-bit integers precisely. Extending ...
by tedaz
Sat Jul 10, 2004 4:49 pm
Forum: Programming
Topic: I can't understand FLOATING POINT REPRESENTATION
Replies: 17
Views: 12647

I can't understand FLOATING POINT REPRESENTATION

I can't understand FLOATING POINT REPRESENTATION of APPLE II in"Apple II Reference Manual (Red Book), January 1978, pages 94-95."

The Red Book said:
HIGH-ORDER MANTISSA BYTE
01.XXXXXX Positive mantissa.
10.XXXXXX Negative mantissa.
00.XXXXXX Unnormalized mantissa.
11.XXXXXX Exponent = -128 ...
by tedaz
Tue Jul 06, 2004 5:31 pm
Forum: Programming
Topic: How to calculate the square root of a floating point number?
Replies: 9
Views: 7011

I want some source code.

I want some source code to complete a statistics program.Can anybody give me a source code? Or some detaile reference.
I have already writed a floating point add/sub/mul/div sub-procedure. They can process single precision floating point numbers.
by tedaz
Tue Jul 06, 2004 10:34 am
Forum: Programming
Topic: How to calculate the square root of a floating point number?
Replies: 9
Views: 7011

Can anybody give me a source code?

Thanks.

But I'm a beginner,can anybody give me a source code?
by tedaz
Tue Jul 06, 2004 5:24 am
Forum: Programming
Topic: How to calculate the square root of a floating point number?
Replies: 9
Views: 7011

How to calculate the square root of a floating point number?

I don't know how to calculate the square root of a floating point number,Can you help me?

The floating point number is reptrsented as this:
FLOATING POINT REPRESENTATION
1byte Exponent and 3bytes Signed Mantissa.

Thank you very much.