[bug] mov M,r unsupported (register to memory transfer)

Bug #579349 reported by Onkar Shinde
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnusim8085
Invalid
Wishlist
Unassigned

Bug Description

mov M,r is apparently unsupported, even though the intel manual says, we are supposed to be able to run this, example code is:

;----
mem: equ 100

mvi a,0FFh
mov mem,a ; fails - but should copy register value to memory cell, so that 100 contains 0xFF

Revision history for this message
Bug Importer (bug-importer) wrote :

this also applies to immediate mode:

mvi 100,0FFh; fail

Revision history for this message
Bug Importer (bug-importer) wrote :

that's wrong: on the 8085 the instruction "mov M,r" assumes M to be specified via the hl word/register, so whenever you want to transfer anything to memory, you have to put the address into the hl reg - this is different from some other chips, so make sure to carefully read the manual!

Revision history for this message
Bug Importer (bug-importer) wrote :

thanks for the clarification and sorry for my misconception, please do feel free to close this issue

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Not a bug. This should have not been imported from sourceforge.net.

Changed in gnusim8085:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.