Home    Prev Next    
Contents
RapidDebugger
Introduction
RapidDebugger User Interface
Command-line Debugging
Scripting Debugging
C/C++ Declarations
Pascal Declarations
Basic Declarations
Constants
Command-line Debugging
Go to RapidDriver Main Page

 
Notes:  
 
1. All values are hexadecimal  
 
2. All commands are case-insensitive  
 
3. [size]='B' or empty for a byte value, 'W' for a word, 'D' for a double word.  
 
HELP, H, or ? - this help file.  

Common hardware operations  

Command

Description


I[size] port  
Input a value from an I/O port.  
Example: i 378 - read LPT data port  

O[size] port value  
Output a value to an I/O port.  
Example: ow 300 1045 - write 1045h value to the port  

PEEK[size] address  
Read from physical memory.  
Example: peekd E000040 - read double word from the memory  

POKE[size] address value  
Write to physical memory.  
Example: pokew 408 278 - write 278h word value to the memory  

DUMP address length  
Print a formatted physical memory dump of a given region.  
Example: dump c0040 100 - print 256 bytes starting with c0040h address.  


PCI operations  
 
Note: You must enumerate all PCI devices, then open selected device before you can issue any other PCI command.

Command

Description


PCI [ENUM]  
Enumerate all PCI devices.  
Example: pci enum  

PCI OPEN bus/dev/func  
Open a PCI device by the location.  
Example: pci open 01/0f/00  
 
PCI OPEN number  
Open a PCI device by the number in list printed by PCI ENUM command.  
Example: pci open 5  

PCI HEADER  
Print a formatted header of a PCI device (first 64 bytes).  
Example: pci header  
 
PCI HEADER DUMP  
Print a formatted dump of PCI header (all 256 bytes).  
Example: pci header dump  

PCI HEADER DS  

Print a formatted dump of device-specific part of PCI header (last 192 bytes).  
Example: pci header ds  
 
PCI COMMAND [value]  
Read or write PCI command register. Write if value is set.  
Example: pci command 03 - write 03h to the command register  
 
PCI COMMAND BIT nbit value  
Set or clear selected bit in PCI command register.  
Example: pci command 2 0 - clear bit 2 in command register  
 
PCI STATUS [mask]  
Read PCI status register then apply the mask value if set.  
Example: pci status f7 - read PCI status register then apply f7h mask.  
I[size] BAR<number> offset  
Read a value from a register addressing by a PCI BAR number and offset.  
Example: id bar0 8 - read double word from the register addressing by BAR0 + 8.  
O[size] BAR<number> offset value  
Write a value to a register addressing by a PCI BAR number and offset.  
Example: o bar0 8 4A - write 4Ah byte value to the register addressing by BAR0 + 8.  


USB operations  
 
Note: You must enumerate all USB devices, then open selected device before you can issue any other USB command.

Command

Description


USB [ENUM]  
Enumerate all USB devices. Device number that is printed as a result of enumeration is used by USB OPEN command and in debugger scripts as parameter of OpenUsbDevice function.  
Example: usb enum  
 
USB OPEN number  
Open a USB device by the number in list printed by USB ENUM command. You can open only RapidUSB device.  
Example: usb open 5  

USB CONINFO  
Print the connection info structure assosiated with previously opened USB device.  
Example: usb coninfo