Search found 67 matches

by JeeK
Tue Jul 08, 2014 1:02 am
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25658

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

What i not understand: Storing the sign into one byte, seems to be "extravagance"... For the information is only one bit needed, isn't it? From "Inside the Dragon": It's just for speed ;) Basic interpreters (like MS-derived) use two representations: optimized for speed in calculations (FP accumulat...
by JeeK
Tue Jul 08, 2014 12:51 am
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25658

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

This is very well explained in "Inside the Dragon", section 9.3. I can recommend reading the whole book! :) Also thanks! I found it ;) If I calculate the value back from the FP representation $36 = 54 Float: 86 d8 00 00 00 00 2^(+6) 10001010 110110000 00000000 00000000 00000000 00000000 + 4+2 || ||...
by JeeK
Mon Jul 07, 2014 7:43 pm
Forum: Hints and Tips
Topic: How does the floating point math package in BASIC work?
Replies: 41
Views: 25658

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

I still try to bugfix my Emulator: http://archive.worldofdragon.org/phpBB3/viewtopic.php?f=5&t=4308&p=11316#p11316 [..] I found two interesting Routines in ROM: $e777 = CONVERT THE VALUE IN ACCB INTO A FP NUMBER IN FPA0 $e778 = CONVERT THE VALUE IN ACCD INTO A FLOATING POINT NUMBER IN FPA0 So i try...
by JeeK
Mon Jul 07, 2014 3:39 pm
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11539

Re: Small assembler test programms...

I updated my code, too and test your examples. Only the underflow seems to be wrong: DIVH DIVL DVSR QUOT REM comment 0000 0001 8000 0000 8000 underflow Here i get: $1 / $8000 OK: 1/32768=0 remainder: 1 (hex: q:$0 r:=$1) So there is no underflow, isn't it? Wrong documentation of the test value secti...
by JeeK
Fri Jul 04, 2014 5:11 pm
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11539

Re: Small assembler test programms...

OK, i updated my test here: https://github.com/jedie/DragonPy/commit/feb5395823a64a7fbdffc6094b8809fa11831911 Based on the changes here: https://github.com/6809/sbc09/commit/3f090c158f28f0cce260165f93b5a6080f65e534 [..] Theses fails: test(0xfffffff, 0x1) # ERROR: '268435455/1=16 remainder: 65535' s...
by JeeK
Thu Jul 03, 2014 10:35 pm
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11539

Re: Small assembler test programms...

OK, i updated my test here: https://github.com/jedie/DragonPy/commit/feb5395823a64a7fbdffc6094b8809fa11831911 Based on the changes here: https://github.com/6809/sbc09/commit/3f090c158f28f0cce260165f93b5a6080f65e534 [..] Theses fails: test(0xfffffff, 0x1) # ERROR: '268435455/1=16 remainder: 65535' s...
by JeeK
Wed Jul 02, 2014 12:49 pm
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11539

Re: Small assembler test programms...

I have include the new division assembler code from https://github.com/6809/sbc09/pull/2 info DragonPy with commit: https://github.com/jedie/DragonPy/commit/69988af32fd7c451cdb67e1d2dbb7316e6d19d7a [..] But this fails: test(1, 0x8000) # ERROR: '1/32768=0 remainder: 0' should be: '1/32768=0 remainde...
by JeeK
Tue Jul 01, 2014 7:49 am
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11539

Re: Small assembler test programms...

OK, division test code runs. See commit: https://github.com/jedie/DragonPy/commit/a24f6b8a1ab76437131e51b2761e312f9972d62f But some tests failed: These all are ok: test(10, 5) # is: 10/5 test(10, 3) test(1000, 2000) test(0xffff, 0x80) test(0xfffff, 0x800) test(0xffffff, 0x8000) test(0xfffffff, 0x80...
by JeeK
Mon Jun 30, 2014 7:24 pm
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11539

Re: Small assembler test programms...

For the 6809 emulator in Python i need some small test programs... I hope that helps debugging ;) [..] It looks like that the input is D via user stack. In this example code: 0x000058000 / 0x3000 isn't it? But where is the result in the end? Swap lines at 100 and 105 and the division is as you sugg...
by JeeK
Mon Jun 30, 2014 7:13 pm
Forum: Hints and Tips
Topic: Small assembler test programms...
Replies: 17
Views: 11539

Re: Small assembler test programms...

For the 6809 emulator in Python i need some small test programs... I hope that helps debugging ;) [..] I have take a look on the "6809 32/16 divison" program: https://github.com/jedie/sbc09/blob/uslash/examples/uslash.asm But i need help here. The current listing: 0100 .ORG $100 0100 ; sample param...