neuschaefer / wpcm450

Nuvoton WPCM450 tools and documentation
26 stars 4 forks source link

Allow to comment command line #12

Closed StidOfficial closed 3 years ago

StidOfficial commented 3 years ago

Allow to comment a command line after command arguments.

Example of bootstrap.txt :

# Test alias memory
echo Run test...
ww 2000 1 2 3 4 5 6 7 8    # write a test pattern into RAM
rw 2000 16                 # read it back
rw 08002000 16             # same content at 128 MiB
rw 0c002000 16             # not at 192 MiB
rw 10002000 16             # same at 256 MiB
rw 20002000 16

# Load and run Linux
echo Loading Linux...
cw   40b80000 8000 0x120000
call 8000 0 0xffffffff 0
neuschaefer commented 3 years ago

Looks good, thanks!

neuschaefer commented 3 years ago

I just noticed:

> rw#00
Unknown command rw#00

When a # appears in the middle of a word it is considered part of the word.

I don't mind, though.