Shop OBEX P1 Docs P2 Docs Learn Events
Percent Sign Test — Parallax Forums

Percent Sign Test

Duane DegnDuane Degn Posts: 10,588
edited 2012-06-13 13:56 in General Discussion
As discussed in this and other threads, the forum software often doesn't display percent signs correctly.

Here are some examples.

Edit: None of the percent signs disappeared in this test post. I wonder why they do sometimes?

and     iByte, #%1111_1111                                
                        cmp     iByte, #%0100_1010 wz   
              if_z      call    #flashRoutineOn
                        mov     statusCog, iByte
                        mov     rxPipe, statusCog   ' flashByte used as temp variable to hole data pipe number
                        and     rxPipe, #%0000_1110 


The second line of code should read "cmp iByte, #%0100_1010 wz".

Here's an example from this thread.

%1010AAAX

In quotes:
The address of the EEPROM has this format.

%1010AAAX

Using an underscore after the "%".

%_1010AAAX

Now with "noparse" tags.

[noparse]%1010AAAX[/noparse]

So how do use "noparse" insde code tags?
and     iByte, [noparse]#%1111_1111[/noparse]                                
                        cmp     iByte, [noparse]#%0100_1010[/noparse] wz   
              if_z      call    #flashRoutineOn
                        mov     statusCog, iByte
                        mov     rxPipe, statusCog   ' flashByte used as temp variable to hole data pipe number
                        and     rxPipe, [noparse]#%0000_1110[/noparse] 

Sign In or Register to comment.