ranged/count-based ;l listings

This commit is contained in:
Kelvin Sherlock 2013-07-13 13:46:41 -04:00
parent 69cd091397
commit ccd3273ff0

View File

@ -182,6 +182,16 @@ stmt ::= expr(a) SEMIL EOL.
Debug::List(a);
}
stmt ::= expr(a) AT expr(b) SEMIL EOL.
{
Debug::List(a, (int)b);
}
stmt ::= expr(a) COLON expr(b) SEMIL EOL.
{
Debug::List(a, b);
}
stmt ::= DREGISTER(a) EQ expr(b) EOL.
{
@ -232,6 +242,7 @@ unary(rhs) ::= BANG unary(a). { rhs = !a; }
unary(rhs) ::= STAR unary(a). [BANG] { rhs = Debug::ReadLong(a); }
term(rhs) ::= LPAREN expr(a) RPAREN. { rhs = a; }
term(rhs) ::= INTEGER(a). { rhs = a; }
term(rhs) ::= DREGISTER(a). { rhs = cpuGetDReg(a); }