OpenCores
URL https://opencores.org/ocsvn/yavga/yavga/trunk

Subversion Repositories yavga

[/] [yavga/] [trunk/] [charmaps/] [convert.sh] - Diff between revs 2 and 7

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 7
Line 56... Line 56...
CURR_ELEM=0
CURR_ELEM=0
CURR_INIT=""
CURR_INIT=""
INIT_NUM=0
INIT_NUM=0
while read LINE ; do
while read LINE ; do
  case "${LINE}" in
  case "${LINE}" in
    --*) # skip
    \#*) # skip
         ;;
         ;;
 
 
      *) HEX=`echo "obase=16; ibase=2; ${LINE}" | bc`
      *) HEX=`echo "obase=16; ibase=2; ${LINE}" | sed -e ' s/-/0/g ' | sed -e ' s/@/1/g ' | bc`
 
 
         CURR_ELEM=$((${CURR_ELEM} + 1))
         CURR_ELEM=$((${CURR_ELEM} + 1))
#         echo ${CURR_ELEM}
#         echo ${CURR_ELEM}
 
 
         if [ ${#HEX} = 1 ] ; then
         if [ ${#HEX} = 1 ] ; then

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.