Assembler for the microprocessor Casio uPD1007 (NM-320)

Command line arguments:
  NM320ASM <options> input_file

  Options:
    -L - creation of the listing file
    -T - test mode, assembly of instructions typed on the keyboard

Syntax of an assembler statement
  ([ LABEL: ]) [ Mnemonic ] [ OP1 ] [, OP2 ] [, OP3 ] ... ([; Comment ])

  The label and comment fields are optional.
  The colon following the label name can be omitted.
  The label must be placed in the first column of the line.
  The mnemonic must be preceded with a space or a tab.
  The mnemonic must be separated from the first operand by a space or a tab.
  Upper and lower case letters aren't distinguished.

Numerical values
  Supported sizes of numerical values
	8 bit integer type IM8: 0 to 255
	16 bit integer type IM16: 0 to 65535
  Supported notation of numerical constants
	decimal (default): 123
	hexadecimal: &HAB
	character: "A"
        value of the current location counter: *

Labels
  A label may contain upper and lower case letters, the digits "0" to "9", and
  the underscore. The first character must not be a digit.
  The label is assigned the current location counter or a value specified
  by the EQU pseudo instruction.

Expressions and operators
  The expressions are evaluated in order of operator precedence. Parentheses
  can be used to override this order.
  The list of available operators (from the highest to the lowest precedence):
  (1) unary operators:
	- unary minus, negates the value of the operand
	HIGH returns the high-order byte of an expression
	LOW returns the low-order byte of an expression
	NOT returns the bitwise complement of an expression
  (2) arithmetical multiplicative operators:
	* multiplication
	/ division
	MOD modulo
  (3) arithmetical additive operators:
	+ addition
	- subtraction
  (4) relational operators (used to compare values):
	EQ equal to
	GT greater than
	LT less than
	GE greater than or equal to
	LE less than or equal to
	NE not equal to
  (5) bitwise logical operator AND
  (6) bitwise logical operator OR
  (7) bitwise logical operator XOR

Pseudo instructions (can be preceded with an optional dot)

  ORG - loads the location counter with the specified value

  label EQU value - assigns specified value to a label

  END - end of the source file (optional), allows to terminate the program
        in the test mode

  DB - stores sequence of bytes delimited by comma at the current address

  DW - stores sequence of words delimited by comma at the current address in
       little endian order

  DS - reserves a block of memory of specified size

  INCLUDE - inserts the file of specified name into the source file

  IF, ELSE, ENDIF - control conditional assembly
