SourcePoint Intel Help
Table of Contents
- Using Help
- Contacting ASSET InterTech
- Introduction to SourcePoint
- SourcePoint Environment
- SourcePoint Overview
- SourcePoint Parent Window Introduction
- SourcePoint Icon Toolbar
- File Menu
- File Menu - Project Menu Item
- File Menu - Layout Menu Item
- File Menu - Program Menu Item
- File Menu - Macro Menu Item
- File Menu - Print Menu Items
- File Menu - Update Emulator Flash Menu Item
- File Menu - Program Target Device Menu Item
- File Menu - Other Menu Items
- Edit Menu
- View Menu
- Processor Menu
- Options Menu
- Options Menu - Preferences Menu Item
- Options Menu - Target Configuration Menu Item
- Options Menu - Load Target Configuration File Menu Item
- Options Menu - Save Target Configuration File Menu Item
- Options Menu - Emulator Configuration Menu Item
- Options Menu - Emulator Connection Menu Item
- Options Menu - Emulator Reset Menu Item
- Options Menu - Confidence Tests Menu Item
- Window Menu
- Help Menu
- How To -- SourcePoint Environment
- Add Emulator Connections
- Configure Custom Macro Icons
- Configure Autoloading Macros
- Display Text on the Icon Toolbar
- Edit Icon Groups to Customize Your Toolbars
- Modify a Defined Memory Region
- Refresh SourcePoint Windows
- Save a Program
- Start SourcePoint With Command Line Arguments
- Use the New Project Wizard
- Verify Emulator Network Connections
- SourcePoint Overview
- Breakpoints Window
- Breakpoints Window Overview
- How To - Breakpoints
- Code Window
- Command Window
- Command Window Overview
- Confidence Tests Window
- Confidence Tests Window Overview
- Descriptors Tables Window
- Descriptors Tables Window Overview
- How To - Descriptors
- Devices Window
- Devices Window Overview
- How To - Devices Window
- Log Window
- Log Window Overview
- Memory Window
- Memory Window Overview
- How To - Memory Window
- Page Translation Window
- Page Translation Windows Overview
- PCI Devices Window
- PCI Devices Window Overview
- How To - PCI Devices Window
- Registers Window
- Registers Window Overview
- How To - Registers
- Symbols Windows
- Symbols Window Overview
- How To - Symbols Window
- Trace Window
- Trace Window Overview
- How To - Trace Window
- Advanced
- Viewpoint Window
- Viewpoint Window Overview
- Watch Window
- Watch Window Overview
- How To - Watch Window
- Technical Notes
- Descriptor Cache: Revealing Hidden Registers
- UEFI Framework Debugging
- Memory Casting
- Microsoft PE Format Support in SourcePoint
- Multi-Clustering
- Python/CScripts
- OpenIPC Integration, Installation and Usage
- Registers Keyword Table
- SourcePoint Licensing
- Stepping
- Symbols Textsym Format
- Target Configuration
- Using Bookmarks
- Which Processor Is Which
- Getting Started with DbC
- SourcePoint Command Language
- Overview
- Commands and Control Variables
- aadump
- abort
- abs
- acos
- advanced
- asin
- asm
- asmmode
- atan
- atan2
- autoconfigure
- base
- bell (beep)
- bits
- break
- breakall
- cachememory
- cause
- Character Functions
- clock
- continue
- cos
- cpubreak commands
- cpuid_eax
- cpuid_ebx
- cpuid_ecx
- cpuid_edx
- createprocess
- cscfg, local_cscfg
- csr
- ctime
- cwd
- dbgbreak commands
- defaultpath
- #define
- define
- definemacro
- deviceconfigure
- devicelist
- devicescan
- disconnect
- displayflag
- do while
- dos
- dport
- drscan
- edit
- editor
- emubreak, emuremove, emudisable, emuenable
- emulatorstate
- encrypt
- error
- eval
- evalprogramsymbol
- execution point ($)
- exit
- exp
- fc
- fclose
- feof
- fgetc
- fgets
- first_jtag_device
- flist
- flush
- fopen
- for
- forward
- fprintf
- fputc
- fputs
- fread
- fseek
- ftell
- fwrite
- getc
- getchar
- getnearestprogramsymbol
- getprogramsymboladdress
- gets
- globalsourcepath
- go
- halt
- help
- homepath
- idcode
- if
- include
- invd
- irscan
- isdebugsymbol
- isem64t
- isprogramsymbol
- isrunning
- issleeping
- issmm
- itpcompatible
- jtagchain
- jtagconfigure
- jtagdeviceadd
- jtagdeviceclear
- jtagdevices
- jtagscan
- jtagtest
- keys
- last
- last_jtag_device
- left
- libcall
- license
- linear
- list, nolist
- load
- loadbreakpoints
- loadlayout
- loadproject
- loadtarget
- loadwatches
- log, nolog
- log10
- loge
- logmessage
- macropath
- Memory Access
- messagebox
- mid
- msgclose
- msgdata
- msgdelete
- msgdr
- msgdump
- msgir
- msgopen
- msgreturndatasize
- msgscan
- msr
- num_activeprocessors
- num_all_devices
- num_devices
- num_jtag_chains
- num_jtag_devices
- num_processors
- num_uncore_devices
- openipc
- pause
- physical
- port
- pow
- print cycles
- printf
- proc
- processorcontrol
- processorfamily
- processormode
- processors
- processortype
- projectpath
- putchar
- puts
- rand
- readsetting
- reconnect
- Register Access
- reload
- reloadproject
- remove
- reset
- restart
- return
- right
- runcontroltype
- safemode
- save
- savebreakpoints
- savelayout
- savewatches
- selectdirectory
- selectfile
- shell
- show
- sin
- sizeof
- sleep
- softbreak, softremove, softdisable, softenable
- sprintf
- sqrt
- srand
- step
- stop
- strcat
- strchr
- strcmp
- strcpy
- _strdate
- string [ ] (index into string)
- strlen
- _strlwr
- strncat
- strncmp
- strncpy
- strpos
- strstr
- _strtime
- strtod
- strtol
- strtoul
- _strupr
- swbreak
- switch
- swremove
- tabs
- tan
- tapdatashift
- tapstateset
- targpower
- targstatus
- taskattach
- taskbreak, taskremove, taskdisable, taskenable
- taskend
- taskgetpid
- taskstart
- tck
- time
- uncoreconfigure
- uncorescan
- #undef
- unload
- unloadproject
- upload
- use
- verify
- verifydeviceconfiguration
- verifyjtagconfiguration
- version
- viewpoint
- vpalias
- wait
- wbinvd
- while
- windowrefresh
- wport
- writesetting
- yield
- yieldflag
Character Functions
Built-in functions for character classification and transformation.
Syntax
[result =] function(char-expr)
Where:
result |
specifies the debug object to which the function return value is assigned. If result is not specified, or the return value is not used by another command, the return value is displayed on the next line of the screen. |
function |
specifies the name of the character function (see the following table). |
char-expr |
specifies a quoted character or an expression specifying a character. |
Discussion
There are two classes of character functions: character classification and character transformation.
The character classification functions return a boolean data type with the value non-zero (true) or zero (false). These functions take a single argument (char-expr) that must be compatible with the int4 data type.
The character transformation functions return an int4 containing an ASCII-coded value. These functions take a single argument that must be compatible with the int4 data type.
Character Functions
Function |
Discussion |
isalpha |
Returns true when char-expr is alphabetic. The hexadecimal values for these characters are 41 through 5a (A . . . Z) and 61 through 7a (a . . . z). |
isupper |
Returns true when char-expr is an uppercase alphabetic character. The hexadecimal values for these characters are 41 through 5a (A . . . Z). |
islower |
Returns true when char-expr is a lowercase alphabetic character. The hexadecimal values for these characters are 61 through 7a (a . . . z). |
isdigit |
Returns true when char-expr is a numeric digit. The hexadecimal values for these characters are 30 through 39 (0 . . . 9). |
isxdigit |
Returns true when char-expr is a hexadecimal digit. The hexadecimal values for these characters are 30 through 39 (0 . . . 9), 41 through 46(A . . . F), and 61 through 66 (a . . . f). |
isalnum |
Returns true when char-expr is alphanumeric. The hexadecimal values for these characters are 41 through 5a (A . . . Z), 61 through 7a (a . . . z), and 30 through 39 (0 . . . 9). |
isspace |
Returns true when char-expr is a blank. This blank can be a single space (hexadecimal value 20), carriage return, line feed (new line or "\n"), tab ("\t"), vertical tab, or form feed (new page or "\p"). |
ispunct |
Returns true when char-expr is a punctuation mark (neither a control nor an alphanumeric character). The hexadecimal values for these characters are 21 through 2f, 3a through 40, 5b through 60, and 7b through 7e. |
isprint |
Returns true when char-expr is a printable character. The hexadecimal values for these characters are 20 through 7e. |
iscntrl |
Returns true when char-expr is a delete character (hexadecimal 7f) or any control character (hexadecimal 0 through 1f). |
isascii |
Returns true when char-expr is a coded value (hexadecimal 0 through 7f). |
toupper |
Returns the uppercase value of char-expr. If char-expr does not contain a lowercase letter, the result is the original char-expr, unchanged. The char-expr itself is not changed. |
tolower |
Returns the lowercase value of char-expr. If char-expr does not contain a uppercase letter, the result is the original char-expr, unchanged. The char-expr itself is not changed. |
toint |
Returns the "weight" of a hexadecimal digit: 0 - 9 for the characters "0" through "9", respectively, and 10 - 15 for the letters "a" through "f" (or "A" through "F"), respectively. |
toascii |
Clears all bits of char-expr that are not part of a standard ASCII character and returns this value. The char-expr itself is not changed. |
Examples
Character classification functions:
Command input:
define char cvar = 'a'
define int4 ivar
ivar = cvar
ivar
Result:
00000061H
Command input:
isalpha(cvar)
Result:
TRUE
Command input:
isalpha(ivar)
Result:
TRUE
Command input:
define int4 answer = isalpha(cvar)
answer
Result:
00000001H
Command input:
cvar
Result:
'a'
Command input:
isupper(cvar)
Result:
FALSE
Command input:
islower(cvar)
Result:
TRUE
Command input:
cvar = 'a'
isupper(cvar)
Result:
TRUE
Command input:
isdigit(cvar)
Result:
FALSE
Command input:
isxdigit(cvar)
Result:
TRUE
Command input:
isalnum(cvar)
Result:
TRUE
Command input:
isspace(cvar)
Result:
FALSE
Command input:
ivar = 20H
isspace(ivar)
Result:
TRUE
Command input:
cvar = '!'
ispunct(cvar)
Result:
TRUE
Command input:
isprint(ivar)
Result:
TRUE
Command input:
cvar = 5
cvar
Result:
'\005'
Command input:
isprint(cvar)
Result:
FALSE
Command input:
iscntrl(cvar)
Result:
TRUE
Command input:
isascii(cvar)
Result:
TRUE
Character transformation functions:
Command input:
define int4 ivar = 5
define char cvar
cvar = toascii(ivar)
cvar
Result:
'\005'
Command input:
cvar = toascii(61H)
cvar
Result:
'a'
Command input:
toascii(cvar)
Result:
00000061H
Command input:
toupper(cvar)
Result:
00000041H
Command input:
cvar
Result:
'a'
Command input:
cvar = toupper(cvar)
cvar
Result:
'A'
Command input:
ivar = 41H
cvar = tolower(ivar)
cvar
Result:
'a'
Related Topics:
ย
ย