Am Montag, den 03.12.2018, 18:22 +0000 schrieb Jan Kromhout: > Hello, > > I have this code in my program (Arduino IDE). > > // Standard ASCII 5x7 font > > static const unsigned char font[] PROGMEM = { > 0x00, 0x00, 0x00, 0x00, 0x00, > 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, > 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, > 0x1C, 0x3E, 0x7C, 0x3E, 0x1C, ………… > > > How do I translate that to amForth?
I did not test it, but it shall work not too far from the following definition(s) create font[] $00 , $00 , $00 , .... access to the data may look like : @font[] ( n -- m ) font[] + @i ; (flash is 16 bytes per address, hence the , but no cells in the access word) I hope yout get the idea Matthias _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel