Commands
The following is a list of commands available as part of the z390 toolkit.
These commands are scripts that are included in the z390 source and distribution and can be enabled by including the script directory in your system path.
Alternatively you can reference the scripts directly from the command line by specifying the full path.
(z390 install dir)\bat
(z390 install dir)/bash
Command reference
z390
Start the GUI interface with optional startup command file input.
mac
Run mz390 macro processor to expand MLC macro source file to BAL assembler source file.
asm
Run mz390 and az390 assembler to expand MLC macro assembler source file and generate relocatable OBJ relocatable object file.
Note
The default object file format is binary 80 byte record mainframe compatible
format.
Use option OBJHEX for ASCII text format containing hex format for object
code. The OBJHEX format supports single CSECT’s over 16 MB and you can read
the OBJ file for debugging purposes.
See Z390 options for more details.
asml
Run mz390, az390, and lz390 to expand MLC macro assembler source, assemble, and link to generate 390 load module.
asmlg
Run mz390, az390, lz390 and ez390 to expand MLC macro source, assemble, link, and execute 390 load module.
link
Run lz390 linker to read one or more relocatable OBJ files and create binary relocatable 390 load module file.
If the linker option AUTOLINK is on, the linker will search SYSLIB OBJ file directory for external references to be statically linked.
See z390 options for more details.
The linker includes options for AMODE and RMODE to control loading and execution modes.
The linker also has optional input command file with suffix LKD which may contain explicit INCLUDE, ENTRY, ALIAS, and NAME commands.
exec
Run ez390 emulator to execute 390 load module.
Interactive debugger
The ez390 emulator supports the following interactive test commands when the TEST option is specified:
addr=sdt
– set memory value (i.e. 1r?=x'80' changes mem at (r1) 31 bitreg=sdt
- set register value (i.e. 15r=8 changes reg 15 to 8)A addr
– set or reset up to 100 instruction address stops with hex address or relative expression such as *+4AR nn
– display specified access register else all AR 0-15B=addr
- set base for rel addr (ie B=15r% sets base to (r15) 24 bitD
– display DCB file information from TIOTE
– toggle between EBCDIC and ASCII modeF nn
– display floating point register else FPC and all FPR 0-15FPC
– display floating-point-control registerFPC+
– display floating-point-control register in verbose modeG
- nn/addr/opcode - exec nn instr. or until specified instruction address or opcode is found with no trace. One instruction is always executed before next opcode break even if it’s the same instruction such as a BCT 1,. Addresses are distinguished from count by hex . or relative expression term such as , +, or -.H
- list help command summaryJ addr
- jump to new addr and trace instructionL
- list all regs and trace current instructionL reg
- list contents of register (ie l 1r dumps register 1L addr len
- list contents of memory area (ie l 10. 4 dumps cvt addrM
– display total memory in MB and total allocate and free bytesP
– display current loaded program information from CDE including name, entry and lengthPSW
– display current PSWPSW+
– display current PSW in verbose modePSW16
– display 16 byte current PSWQ
- quit execution nowR nn
– display specified general purpose register else all GPR 0-15S
- clear register, address, and memory breaksS reg??sdt
- set break on register changeS addr??sdt
- set break on memory changeT nn/addr/opcode
- trace nn instr. or until specified instruction address or opcode is found. One instruction is always executed before next opcode break even if it’s the same instruction such as a BCT 1,. Addresses are distinguished from count by hex . or relative expression term such as , +, or -. The symbol EPA may be used in place of address to refer to last program load point address.V
- validate/verifyV * nn
- validate nn bytes starting at PSW addressV psw.subfield
- validate PSW subfieldV nnr
- validate GPR nn
Z
- exit test and run to end of program without trace* addr
= hex.,+-hex, *+-hex, dec, nnr% (24 bit), nnr? (31 bit)* reg
= nnr where nn = 0-15* sdt
= self defining term (b'01',c'ab',f'1',h'2',x'ff')* ??
= break compare operator (=,!=,<,<=,>,>=)