My favorites | Sign in
Project Home Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 9: The run-time disassembler produces misleading output for MOVE instruction
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  vance.mo...@gmail.com
Closed:  Feb 2014
Cc:  vance.mo...@gmail.com


 
Project Member Reported by h.paul.h...@gmail.com, Feb 18, 2014
What steps will reproduce the problem?
         MOVE   R5,R6 ;in source code



What is the expected output? What do you see instead?
yields
         MOVE R6,R5   in the run-time disassembler


Please use labels and text to provide additional information.


Feb 18, 2014
Project Member #1 vance.mo...@gmail.com
Even worse, clicking the Disassemble button causes the generated code to have the operands swapped!
Owner: vance.mo...@gmail.com
Feb 18, 2014
Project Member #2 vance.mo...@gmail.com
Fixed this, will be in the next commit.
Class: edu.wtamu.wtcs.client.presenter.Disassembler
Method: private String disassemble(String firstByte, String secondByte, int location)

Changed
} else if (firstNibble.equals("4")) {
			return "move " + "R" + thirdNibble + ",R" + fourthNibble;
To
} else if (firstNibble.equals("4")) {
			return "move " + "R" + fourthNibble + ",R" + thirdNibble;
Feb 18, 2014
Project Member #3 vance.mo...@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting