Search found 656 matches

by jedie
Wed Jul 09, 2014 9:25 am
Forum: Dragon General
Topic: disassembled Dragon 32 ROM ?
Replies: 48
Views: 23954

Re: disassembled Dragon 32 ROM ?

Again the Question: Has anyone a better disassembled D32 ROM ? Better one as: https://gist.github.com/jedie/6573826 ? Caution! Sorry, but this listing is not complete. Just an example: Yes, you are right. I see this also by comparing it with the alternative from Phill and stew :o What's about to cr...
by jedie
Wed Jul 09, 2014 8:46 am
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 27830

Re: How does the floating point math package in BASIC work?

Whatever you expecting, I doubt that $8C37 does it in this way. A $942D it can be seen that A is loaded from $50 (destroys D) and B is stored as exponent ...??? I can't imagine this is a usable entry point... (referring to the disassembly you provided in the corresponding forums thread). If compare...
by jedie
Wed Jul 09, 2014 8:22 am
Forum: Dragon General
Topic: disassembled Dragon 32 ROM ?
Replies: 48
Views: 23954

Re: disassembled Dragon 32 ROM ?

Stew, that's great. One of the best commented disassemblies I have seen. Yes, it's very good! i'm not yet clear how the D32 <-> D64 ROMDIFF.TXT worked. Jedie, did you check out Phill's disassembly? Yes, but it seems that the work from stew is better ;) I think there is a certain reluctance around t...
by jedie
Wed Jul 09, 2014 8:00 am
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 27830

Re: How does the floating point math package in BASIC work?

JeeK wrote:If D is loaded from $4500, the BASIC code has to poke the whole 16 bit value into &H4500 and &H4501.

Code: Select all

POKE &H4500,D2/256
POKE &H4501,255 AND D2
You are right. I changed it, see: https://gist.github.com/jedie/22dba94f5 ... /revisions

But also, doesn't work :(
by jedie
Tue Jul 08, 2014 4:34 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 27830

Re: How does the floating point math package in BASIC work?

JeeK wrote:All C6 opcodes should be D6 ...
I have changed all C6 to D6, see complete code: https://gist.github.com/jedie/22dba94f5b7534f946f9 :D

EDIT: I testes bigger values and see:

Image

Seems that "mantissa sign" switched correctly?
by jedie
Tue Jul 08, 2014 3:56 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 27830

Re: How does the floating point math package in BASIC work?

OK, i do a simple, boring move data: 1 PRINT:PRINT "TEST FLOATS IN FPA0 V0.1" 2 PRINT "(GPL V3 OR ABOVE)" 3 PRINT:PRINT "COPYLEFT (C) 2014 JENS DIEMER":PRINT 11 COUNT=14 20 LA=&H4000 ' LOAD / EXECUTE ADDRESS 25 PRINT "POKE MACHINE CODE TO: $";HEX$(LA) 30 PA = LA ' START ADDRESS FOR POKE 50 READ HB$ ...
by jedie
Tue Jul 08, 2014 3:28 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 27830

Re: How does the floating point math package in BASIC work?

new test code: 1 PRINT:PRINT "TEST FLOATS IN FPA0 V0.1" 2 PRINT "(GPL V3 OR ABOVE)" 3 PRINT:PRINT "COPYLEFT (C) 2014 JENS DIEMER":PRINT 11 COUNT=13 20 LA=&H4000 ' LOAD / EXECUTE ADDRESS 25 PRINT "POKE MACHINE CODE TO: $";HEX$(LA) 30 PA = LA ' START ADDRESS FOR POKE 50 READ HB$ ' HEX CONSTANTS 60 IF ...
by jedie
Tue Jul 08, 2014 2:54 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 27830

Re: How does the floating point math package in BASIC work?

I think the problem is that the you can't read the FPA0 without destroying it, because lines like this (from above example listing) EX =PEEK(&H004F) ' FPA0 EXPONENT uses the FPA0, too. Your machine-code subroutine has to save the FPA0 values to a safe place, from where they could be read from BASIC...
by jedie
Tue Jul 08, 2014 1:12 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 27830

Re: How does the floating point math package in BASIC work?

I try to create a BASIC test programm. But what's the address of the "Assign D to FAC" in D32 Basic? I tested $8C37 from Inside Dragon page 234 But without success: http://snag.gy/JevQh.jpg Source code of my test program: https://github.com/jedie/PyDragon32/blob/bf05deebeb041e1184dd94d914edf3e25692e...
by jedie
Tue Jul 08, 2014 1:09 pm
Forum: Dragon General
Topic: disassembled Dragon 32 ROM ?
Replies: 48
Views: 23954

Re: disassembled Dragon 32 ROM ?

Again the Question: Has anyone a better disassembled D32 ROM ? Better one as: https://gist.github.com/jedie/6573826 ?