In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: James, I managed to resolve address references without sasm. Basically, a small c program only consists of rom (the program and initializers) and ram (variables, heap and stack), both areas may not overlap. I use the M4 macro processor as a two pass 'assembler' that generates a list of byte values. It is up to the interpreter to remap memory areas into builtin memory, external memory or ports. The only glue logic is a BIOS call with a 2 byte operand. The order in which files are generated: c source (testgen.c) compiles into testgen.m4 M4 then assembles testgen.m4 into testgen.txt This testgen.txt has quite a lot of blank lines that I remove with a utility with testgen2.txt as result pcodedef.txt holds the pcode definitions. Now I will write an interpreter for the javelin (so when sx/c comes along I can port that to the sx). regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=115467#m118340 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)