Fourth, P code instruction description
Since the system is simple, the underlying hardware is also simplified:
1, no registers, only one data stack
2, can only save the main memory, take action
3, only support the main memory indirect addressing
4, you can find the symbol in the symbol table, return to the symbol address
Instruction table (unfinished)
Help Requirements Description Pushpush
Poppop Popular Popp Poping Stack Top Content Points Pointed by JMPJMP unconditionally jumped to Pointed code JTJT < Address>,V. Error information table
(Defined in the Compiler.Exception.ErrorMessage interface)
ANALYZING_FAILURE file can not be parsed CLASS_DEFINED repeat the class definition CLASS_NOT_DEFINED class undefined IDENTIFIER_DEFINED duplicate identifiers defined IDENTIFIER_NOT_DEFINED identifier undefined ILLEGAL_EXPRESSION ILLEGAL_GRAMMER illegal expression syntax error ILLEGAL_OPERATION illegal operation ILLEGAL_TOKEN identifier can not be analyzed METHOD_DEFINED repeat method defined NOT_ALLOCATED unallocated memory OUT_OF_MEMORY memory is full READ_FILE The file cannot read the type_unmatched type mismatch