Fix parsing of LDVR/STVR
This commit is contained in:
parent
4a67848627
commit
cd5ff1e105
1 changed files with 2 additions and 2 deletions
|
|
@ -27,6 +27,8 @@ parseByLiteral = foldl (<|>) empty . map (\(a, b) -> b <$ C.string' a)
|
|||
smallOpcode' :: Parser SmallOpcode
|
||||
smallOpcode' = parseByLiteral
|
||||
[ ( "LDC", LDC)
|
||||
, ("LDVR", LDVR) -- Needs to be before LDV
|
||||
, ("STVR", STVR) -- Needs to be before STV
|
||||
, ( "LDV", LDV)
|
||||
, ( "STV", STV)
|
||||
, ( "ADD", ADD)
|
||||
|
|
@ -39,8 +41,6 @@ smallOpcode' = parseByLiteral
|
|||
, ("LDIV", LDIV)
|
||||
, ("STIV", STIV)
|
||||
, ("CALL", CALL)
|
||||
, ("LDVR", LDVR)
|
||||
, ("STVR", STVR)
|
||||
]
|
||||
|
||||
largeOpcode' :: Parser LargeOpcode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue