[<<][staapl][>>][..]
Sun Apr 10 11:53:59 EDT 2011

Debug output

Sending messages from Flash is trivial.  How to encode it in the
source?  Does backtick still work?

No.  This needs a different prefix parser.

I do have "fstring:" which is based on f->

Since this is just for debugging, it would be nice to have something
more general.  Something that's part of the parser.

Alternatively, conditions could be stored on the host too.

What I really need is tracing info: this way a single word "trace"
could be inserted at a particular point to see where execution is
going.



Ok, what works:
- 0xFF : normal console logging and ack for empty message.
- 0xFE : hex dump

What I want: a trace command that allows the host to execute code in
the sync loop, i.e. to query the target.


OK. The sync is a bit patched together but at least it works:


(define (trace-hook addr)
  (printf "trace: ~x\n" addr)
  (abd 0)
  )

: foo trace trace trace ;
.OK
foo
trace: 312
000  F8 12 A4 ED 05 24 53 02
008  D3 80 5A 20 C5 C2 14 0C
trace: 314
000  F8 12 A4 ED 05 24 53 02
008  D3 80 5A 20 C5 C2 14 0C
trace: 17e
000  F8 12 A4 ED 05 24 53 02
008  D3 80 5A 20 C5 C2 14 0C
OK


This should enable any kind of program instrumentation at trace
points.



[Reply][About]
[<<][staapl][>>][..]