Search found 67 matches

by JeeK
Mon Aug 18, 2014 6:44 pm
Forum: Hints and Tips
Topic: BASIC and strings
Replies: 16
Views: 11782

Re: BASIC and strings

Now i can test it in DragonPy... I used this listing and used the function to extract the BASIC Listing... [..] So, yes: No tokens in comment lines... A translation: 0x0a -> 10 0x3a -> ":" 0x83 -> "'" 0x20 -> ' ' 0x50 -> 'P' 0x52 -> 'R' 0x49 -> 'I' 0x4e -> 'N' 0x54 -> 'T' 0x20 -> ' ' 0x22 -> '"' 0x...
by JeeK
Wed Jul 16, 2014 3:09 pm
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11543

Re: Small assembler test programms...

jedie wrote:Exist there somewhere a small assembler prgramm, that used the SEX and MUL Instructions?
What about
https://github.com/6809/sbc09/blob/mast ... test09.asm ?
by JeeK
Sat Jul 12, 2014 9:18 pm
Forum: Dragon General
Topic: INCB and CC...
Replies: 3
Views: 1963

Re: INCB and CC...

I compare some trace in my Emulator with the XRoar one. For compare the CC values i add --add_cc in my add_info_in_trace.py with commit https://github.com/jedie/PyDragon32/commit/cc875929d70d7ad8ad58ead95a94732ad02c4c03 The thread here is about INCB and the CC flags. I saw this: [..] DragonPy Emula...
by JeeK
Fri Jul 11, 2014 6:09 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25662

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

[..] The trace when calling $edcb is here: https://gist.github.com/jedie/a17def9a40f01e435d72 raw view seems to be better: https://gist.githubusercontent.com/jedie/a17def9a40f01e435d72/raw/4a1bf5347703f08ab94d372b3a8a36d069033803/div%20by%2010.asm Conslusion: I expected the value 0.5 binary $80, $8...
by JeeK
Fri Jul 11, 2014 12:22 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25662

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

[..] I have also add a special case handling, if value==0, see: https://github.com/jedie/DragonPy/commit/ad522e195457a597114bf5029eaedad5f4a60d28 Now $0-$ff values are the same... :D Great! Congrats! Next test is with: $e778 = CONVERT THE VALUE IN ACCD INTO A FLOATING POINT NUMBER IN FPA0 After $7f...
by JeeK
Thu Jul 10, 2014 8:06 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25662

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

The good news for me: My Emulation has the same values (in this case)... Bad news: My FP-Implementation https://github.com/jedie/DragonPy/blob/master/dragonpy/utils/BASIC09_floating_point.py is wrong. And bad: The BASIC Test program is still buggy ;( Why, do have a screen shot? With my latest point...
by JeeK
Thu Jul 10, 2014 7:24 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25662

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

Thanks for your feedback... I updated the script, see: https://gist.github.com/jedie/22dba94f5b7534f946f9/revisions Changed MP to MS and now $4F, $51 and $53 moved via X The result is the same :( Which result do you mean? I don't think so. The results are fine now! $83E0 seem to be to EXP and most ...
by JeeK
Thu Jul 10, 2014 2:55 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25662

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

[..] From https://github.com/6809/rom-info/blob/master/ROM%20Addresses/Dragon32.txt : $4f-$54 ; Floating Point Accumulator Num 1 $4f ; Exponent $50-$53 ; Mantissa $50-$51 ; 16 bit values in FAC stored here $52-$53 ; VARPTR of variables is stored here {1} $54 ; Mantissa Sign (0x00 positive, 0xff neg...
by JeeK
Thu Jul 10, 2014 12:34 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25662

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

I try my new filter stuff to analyse the xroar trace... Get this, e.g.: ... [Skip 21546 lines] ... 4003| bd8c37 JSR $8c37 cc=a0 a=00 b=06 dp=00 x=4000 y=890b u=0000 s=7f1f | $4003: UNKNOWN ... [Skip 78 lines] ... 4006| 9e4f LDX <$4f cc=88 a=00 b=0d dp=00 x=83c0 y=890b u=0000 s=7f21 | $4006: UNKNOWN...
by JeeK
Thu Jul 10, 2014 8:38 am
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25662

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

JeeK wrote: [..]
EDIT: The assembler code should be reverted to the previous version:

Code: Select all

LDD $1052
JSR $9C3E  ; D to FACC0
What about this? Does it work if changed back?