Re: [Amforth] 128KB flash access

2013-06-17 Thread Enoch
Hello Matthias, Matthias Trute writes: > Hi Enoch, > >> Would you be ready to replace the autogenerated readflashcell / >> writeflashcell code in device.asm for 128KB architectures as follows: > > Some of the 128KB devices use two bits in the RAMPZ register (at > least according to the partdescr

Re: [Amforth] 128KB flash access

2013-06-17 Thread Matthias Trute
Hi Enoch, > Would you be ready to replace the autogenerated readflashcell / > writeflashcell code in device.asm for 128KB architectures as follows: Some of the 128KB devices use two bits in the RAMPZ register (at least according to the partdescription files). And all of the 256KB devices (obvious

[Amforth] 128KB flash access

2013-06-17 Thread Enoch
Hello Matthias & All: Would you be ready to replace the autogenerated readflashcell / writeflashcell code in device.asm for 128KB architectures as follows: - clr temp7 - lsl zl - rol zh - rol temp7 - out_ RAMPZ, temp7 - elpm @0, Z+ - elpm @1, Z+ + lsl z