[Amforth-devel] Driver for PCF8563 RTC

2010-09-08 Thread pito
Hi, enclosed pls find the driver for PCF8563 RTC. Enjoy, Pito. \ i2c_rtc_PCF8563.frt \ read/set time on PCF8563 real time clock \ Pito 9/2010 \ based on EW lib 2008 PCF8583, bcd>dec, needs i2c.frt, twi.frt \ words: get.rtc ( -- x0 .. x5 yy ) \set.rtc ( Y m wd d H M S -- ) \printdat

Re: [Amforth-devel] A collection of new ".s" - for fun

2010-09-08 Thread Stefan Schwarzer
Hi pito, Thanks for the stack printing words. I suggest to have the tos at the right or bottom end, for two reasons: - In case there are many values on the stack, having the tos at the end avoids scrolling the "top" value off the visible screen. - Having the tos at the right is consistent w

Re: [Amforth-devel] Assembler - initial issues FIXED

2010-09-08 Thread pito
.. and my not so elegant code, it works as well and is commented a little bit. Good for beginners who are not reading forth's sources.. Thanks a lot Marcin, your code is of course optimised to the bones..Pito \ Assembler demo \ ATmega 1284p, amforth 4.0 \ v68.0, Pito 9/2010 marker -asstest : loa

Re: [Amforth-devel] Assembler - initial issues or bugi

2010-09-08 Thread Marcin Cieslak
On Wed, 8 Sep 2010, pito wrote: > A version with unused registers, crashes (anforth 4.0, > assembler.frt). > > \ Manual v 4.0 : The registers from R10 to R13 are currently unused, > > \ but may be used for the VM extended registers X and Y sometimes. > > code ++_ \ ( x1 x2 x3 -- x4 ) Looking at m

[Amforth-devel] Some nitpicking

2010-09-08 Thread Marcin Cieslak
Small tidbits from 4.1: avra complains with 2r>: [exec] ../../core/words/2r_from.asm(6) : Warning : A .DB segment with an odd number of bytes is detected. A zero byte is added. Fix: Index: 2r_from.asm === --- 2r_from.asm (we

Re: [Amforth-devel] Assembler - initial issues or bug

2010-09-08 Thread pito
A version with unused registers, crashes (anforth 4.0, assembler.frt). \ Manual v 4.0 : The registers from R10 to R13 are currently unused, \ but may be used for the VM extended registers X and Y sometimes. code ++_ \ ( x1 x2 x3 -- x4 ) R10 push, \ save everything R11 push, R12 push, \ shall th

Re: [Amforth-devel] Assembler - initial issues or bug

2010-09-08 Thread pito
Marcin, yes to study the manual is important! However, we do not do it quite often.. I've seen the manual and therefore I am using register allowed. loadtos and savetos works with 24 and 25(? as used in loadtos, savetos), and I used 10-13 and 14-21 for ++_ routine. However results differs. So my un

Re: [Amforth-devel] Assembler - initial issues or bug

2010-09-08 Thread Marcin Cieslak
On Wed, 8 Sep 2010, pito wrote: > Marcin, I am ansewering to you in this thread: No, R16 and R17 are > ok for my cpu, but not correct from OS prospecive. I've spent a > sleepless night with playing with registers against definitions in > macros.asm (it seems Registers 10,11,12,13, are not used by

Re: [Amforth-devel] Assembler - initial issues or bug

2010-09-08 Thread pito
Marcin, I am ansewering to you in this thread: No, R16 and R17 are ok for my cpu, but not correct from OS prospecive. I've spent a sleepless night with playing with registers against definitions in macros.asm (it seems Registers 10,11,12,13, are not used by OS but in reality code crashes) and the p

Re: [Amforth-devel] Assembler - initial issues or bug (solved?)

2010-09-08 Thread Marcin Cieslak
On Wed, 8 Sep 2010, pito wrote: > Hi, I started with LP asm (amforth 4.0): > \ - Test AvrAsm - > : loadtos, 16 Y+ ld, 17 Y+ ld, ; \ define macro > : savetos, -Y 17 st, -Y 16 st, ; \ tosl=r22, tosh=r23 > > code dup_ savetos, end-code \ insert asm code > code drop_ loadtos, end-code On m

Re: [Amforth-devel] arduino duemilanova

2010-09-08 Thread Marcin Cieslak
On Wed, 8 Sep 2010, Kalus Michael wrote: > Hi. > > Is there a readme.txt or so giving hints how to establish the > communicate via the USB of arduino board, after the > duemilanove.eep.hex and duemilanove.hex are flashed successfully? > > Friends keep complaining not getting the ok using it from t