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 and I get: > 10 dup_ ok > .s 0 16379 10 1 16381 9546 ok > 20 dup_ ok > .s 0 16375 20 1 16377 9546 2 16379 10 3 16381 9546 ok > drop_ drop_ ok > .s 0 16379 20 1 16381 9546 ok > the ++_ demo crashes... Any help, new update, or I did something wrong (I loaded assembler.frt of course). P. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Amforth-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amforth-devel
