Skip to content

Commit

Permalink
fix: Fix stax and ldax instruction assembling
Browse files Browse the repository at this point in the history
  • Loading branch information
debjitbis08 committed Nov 26, 2024
1 parent c3be0dc commit 4170d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/8085.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,8 @@ singleRegisterOperandError = .* {
}`);
}

op_stax = "STAX"i operands:ldaxStaxOperands { return [op].concat(operands); }
op_ldax = "LDAX"i operands:ldaxStaxOperands { return [op].concat(operands); }
op_stax = op:"STAX"i operands:ldaxStaxOperands { return [op].concat(operands); }
op_ldax = op:"LDAX"i operands:ldaxStaxOperands { return [op].concat(operands); }

ldaxStaxOperands = w:whitespace+ r:(registerPairB / registerPairD) {
return [w, r];
Expand Down

0 comments on commit 4170d0a

Please sign in to comment.