Enoch,

I just tried out multi line comments for the first time using the shell and
it doesn't seem to work as I would expect.

Here is a little bit of the code I am working on

\ Define some named bit fields
&5  &0 &4 bitfield: READ_BL_LEN
&6  &0 &2 bitfield: C_SIZE_HIGH
&7  &0 &8 bitfield: C_SIZE_MID
&8  &5 &2 bitfield: C_SIZE_LOW
&9  &0 &2 bitfield: C_SIZE_MULT_HIGH
&10 &7 &1 bitfield: C_SIZE_MULT_LOW

\ Return size of card in 512 byte blocks as double number
: cardSize        ( --- ls ms )

    CMD9 BUFFER readRegister NO_ERROR =
    if

    then
;

(*
parseCSD

variable read_bl_len
...

Here is the response when I include this code via the shell:

|C|   82|\ Define some named bit fields
|S|   83|&5  &0 &4 bitfield: READ_BL_LEN
|S|   84|&6  &0 &2 bitfield: C_SIZE_HIGH
|S|   85|&7  &0 &8 bitfield: C_SIZE_MID
|S|   86|&8  &5 &2 bitfield: C_SIZE_LOW
|S|   87|&9  &0 &2 bitfield: C_SIZE_MULT_HIGH
|S|   88|&10 &7 &1 bitfield: C_SIZE_MULT_LOW
|W|   89|
|W|   90|
|C|   91|\ Return size of card in 512 byte blocks as double number
|S|   92|: cardSize        ( --- ls ms )
|W|   93|
|S|   94|    CMD9 BUFFER readRegister NO_ERROR =
|S|   95|    if
|W|   96|
|S|   97|    then
|S|   98|;
|W|   99|
|S|  100|(*
|E=(* ?? -13 2

What am I doing wrong ?

Craig Lindley

If you’re one in a million, there are now seven thousand people exactly
like you.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to