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' :: Parser SmallOpcode
|
||||||
smallOpcode' = parseByLiteral
|
smallOpcode' = parseByLiteral
|
||||||
[ ( "LDC", LDC)
|
[ ( "LDC", LDC)
|
||||||
|
, ("LDVR", LDVR) -- Needs to be before LDV
|
||||||
|
, ("STVR", STVR) -- Needs to be before STV
|
||||||
, ( "LDV", LDV)
|
, ( "LDV", LDV)
|
||||||
, ( "STV", STV)
|
, ( "STV", STV)
|
||||||
, ( "ADD", ADD)
|
, ( "ADD", ADD)
|
||||||
|
|
@ -39,8 +41,6 @@ smallOpcode' = parseByLiteral
|
||||||
, ("LDIV", LDIV)
|
, ("LDIV", LDIV)
|
||||||
, ("STIV", STIV)
|
, ("STIV", STIV)
|
||||||
, ("CALL", CALL)
|
, ("CALL", CALL)
|
||||||
, ("LDVR", LDVR)
|
|
||||||
, ("STVR", STVR)
|
|
||||||
]
|
]
|
||||||
|
|
||||||
largeOpcode' :: Parser LargeOpcode
|
largeOpcode' :: Parser LargeOpcode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue