9 Writing Script Files
245
9. Writing Script Files
This debugger allows you to run script files in a Script Window. The script file contains the controls
necessary for automatically executing the script commands.
9.1 Structural Elements of a Script File
You can include the following in script files:
•
Script commands
•
Assign statements
•
Conditional statements (if, else, endi)
Program execution branches to the statement(s) to be executed according to the result of the
conditional expression.
•
Loop statements (while, endw)
A block of one or more statements is repeatedly executed according to the expression.
•
break statement
Exits from the innermost loop.
•
Comment statements
You can include comments in a script file. The comment statements are ignored when the script
commands are executed.
Specify only one statement on each line of the script file. You cannot specify more than one statement
on a line, or write statements that span two or more lines.
Notes
•
You cannot include comments on the same lines as script commands.
•
You can nest script files up to five levels.
•
You can nest if statements and while statements up to 32 levels.
•
If statements must be paired with endi statements, and while statements with endw statements
in each script file.
•
Expressions included in script files are evaluated as unsigned types. Therefore, operation cannot
be guaranteed if you use negative values for comparison in if or while statements.
•
You can specify up to 4096 characters per line. An error occurs if a line exceeds this number of
characters.
•
When a script file containing illegal commands is automatically executed (when you select
[ Option ] -> [Script]-> [ Run ] from the Script Window menu after opening a script file, or click
the button in the Script Window), execution of the script file continues even after the error is
detected, except when the script line itself cannot be read. If an error is detected and the script
file continues to be executed, operation after detection of the error cannot be guaranteed.
Reliability cannot therefore be placed on the results of execution after an error has been detected.
Summary of Contents for Emulator Debugger M16C PC4701
Page 13: ...Setup of Debugger 1...
Page 14: ...Blank Page 2...
Page 73: ...Tutorial 59...
Page 74: ...Blank Page 60...
Page 95: ...Reference 81...
Page 96: ...Blank Page 82...
Page 128: ...Example Writing byte length data 32h to even address 400h 114...
Page 130: ...16 bits bus width 116...
Page 132: ...2nd point 118...
Page 133: ...7 Windows Dialogs 16 bits bus width 119...
Page 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Page 138: ...Example Writing byte length data 32h to even address 400h 124...
Page 140: ...16 bits bus width 126...
Page 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Page 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Page 146: ...Example Writing byte length data 32h to even address 400h 132...
Page 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Page 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Page 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Page 294: ...MEMO 280...