Parser does not recognize relative addressing, and pre-processor directives #14
Labels
bug
Something isn't working
enhancement
New feature or request
hacktoberfest
Hacktoberfest 2020
help wanted
Extra attention is needed
Parser does not recognize relative addressing and pre-processor directives
Addressing types
As of now, the parser is very simple and recognizes only Immediate, Register and Direct (Memory) addressing, as you can see in lexer.js. The goal is to support all types of addressing supported by Intel 8086.
Pre-processor directives
The parser does not support pre-processor instructions such as
assume
, or segments such as the data and the code segment. Support for this is essential for users to be able to create named procedures and store strings, etc. in the data segment.Instruction validation
Currently, the parser does not do a lot of syntax validation, in parser.js. This might allow instructions such as:
Stronger syntax checking needs to be implemented.
8086.js/src/emulator/parser/parser.js
Lines 44 to 60 in 017505b
The text was updated successfully, but these errors were encountered: