LoginSignup
1
0

More than 5 years have passed since last update.

IARからGASに書き換えるバッチファイルのメモ追記していく用

Last updated at Posted at 2017-02-26
convertIARtoGAS.bat
@echo off
setlocal enabledelayedexpansion

for /f "delims=" %%i in ('cmd /u /c echo;名') do (
    set CR=%%i
    set CR=!CR:~0,1!
)

set LF=^



rem set inFile=startup.s
rem set outFile=gnu_%inFile%
echo ^@ > gnu_startup.s

for /f "delims=" %%a in (startup.s) do (
    set str=%%a
    set str2=!str:^;=@!
    set str3=!str2:END=.end!
    set str4=!str3:SECTION=.section!
    set str5=!str4:^(1^)=!CR!!LF!        .align 1!
    echo !str5! >> gnu_startup.s
)

pause

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0