Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruction STAX does not support operand 'h' #15

Closed
tatsuvalue opened this issue Feb 13, 2017 · 2 comments
Closed

Instruction STAX does not support operand 'h' #15

tatsuvalue opened this issue Feb 13, 2017 · 2 comments
Assignees

Comments

@tatsuvalue
Copy link
Contributor

in 8085-instructions.c (line 744-);

/* 12 STAX H */
static gint
_eef_inst_func_18 (eef_addr_t opnd_addr)
{
return _eef_inst_func_stax (opnd_addr, 'D');
}

I guess that 'D' is 'H'.
return _eef_inst_func_stax (opnd_addr, 'H');

(and need for code 'stax d')

@onkarshinde
Copy link
Contributor

As far as I know there is no STAX H instruction in 8085 because STA stores the accumulator content to the memory location and address of the location is mentioned in HL pair.
The code you are referring to is meant for STAX D but the comment is wrong.

@tatsuvalue
Copy link
Contributor Author

Thnaks!

I had forgot M operand for mov instruction (mov m, a).

"STAX H" equals "MOV M, A" (code 77h) ^^;

@onkarshinde onkarshinde self-assigned this May 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants