Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

dtasm should output error if push/pop is used as wrong operand #226

Open
orlof opened this issue Feb 18, 2013 · 1 comment
Open

dtasm should output error if push/pop is used as wrong operand #226

orlof opened this issue Feb 18, 2013 · 1 comment

Comments

@orlof
Copy link

orlof commented Feb 18, 2013

dtasm should give loud error if stupid programmer writes code like
set a, push
or
set pop, a

...coming from stupid programmer who just spent 3 hours without realizing this

@patflick
Copy link
Member

unfortunately that is not soo easy, the lexer already turns POP and PUSH into the same opcode, and the lexer has no contextual information. i will think about this for a bit, but i don't see a nice solution to warn the user/programmer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants