Changeset 10 for trunk/Disassembler.pas
- Timestamp:
- Apr 20, 2026, 9:52:45 PM (6 days ago)
- File:
-
- 1 edited
-
trunk/Disassembler.pas (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Disassembler.pas
r7 r10 103 103 Value := Memory.ReadByte; 104 104 DecodedInstruction.AddOpcode(Value); 105 if Value = $ cbthen begin105 if Value = $CB then begin 106 106 Value := Memory.ReadByte; 107 107 DecodedInstruction.AddOpcode(Value); 108 108 Value := $100 or Value; 109 109 end else 110 if Value = $dd then begin 111 Value := Memory.ReadByte; 112 DecodedInstruction.AddOpcode(Value); 113 Value := $200 or Value; 110 if Value = $DD then begin 111 Value := Memory.ReadByte; 112 DecodedInstruction.AddOpcode(Value); 113 if Value = $CB then begin 114 Value := Memory.ReadByte; 115 DecodedInstruction.AddOpcode(Value); 116 Value := $500 or Value; 117 end else Value := $200 or Value; 114 118 end else 115 if Value = $ edthen begin119 if Value = $ED then begin 116 120 Value := Memory.ReadByte; 117 121 DecodedInstruction.AddOpcode(Value); 118 122 Value := $300 or Value; 119 123 end else 120 if Value = $fd then begin 121 Value := Memory.ReadByte; 122 DecodedInstruction.AddOpcode(Value); 123 Value := $400 or Value; 124 if Value = $FD then begin 125 Value := Memory.ReadByte; 126 DecodedInstruction.AddOpcode(Value); 127 if Value = $CB then begin 128 Value := Memory.ReadByte; 129 DecodedInstruction.AddOpcode(Value); 130 Value := $600 or Value; 131 end else Value := $400 or Value; 124 132 end; 125 133 if (Value >= 0) and (Value <= Integer(High(TInstruction))) then begin … … 153 161 DecodedInstruction.Parameters := DecodedInstruction.Parameters + '(' + IntToHex(Value, 4) + ')'; 154 162 end else 163 if InstructionInfo.Params[J] = ptDisplacement then begin 164 Value := Memory.ReadByte; 165 DecodedInstruction.AddOpcode(Value); 166 DecodedInstruction.Parameters := DecodedInstruction.Parameters + IntToStr(ShortInt(Value)); 167 end else 155 168 if InstructionInfo.Params[J] in [ptRegA, ptRegB, ptRegC, ptRegD, 156 ptRegE, ptRegH, ptRegL, ptRegBC, ptRegDE, ptRegHL, ptRegSP, ptRegIX, 157 ptRegIY, 158 ptFlagZ, ptFlagNZ, ptFlagC, ptFlagNC, ptFlagP, ptFlagPO, 159 ptRegBCIndir, ptRegDEIndir, ptRegHLIndir, ptRegSPIndir, 169 ptRegE, ptRegH, ptRegL, ptRegR, ptRegI, 170 ptRegAF, ptRegBC, ptRegDE, ptRegHL, ptRegSP, ptRegIX, ptRegIY, 171 ptRegAFPair, ptRegBCPair, ptRegDEPair, ptRegHLPair, 172 ptFlagZ, ptFlagNZ, ptFlagC, ptFlagNC, ptFlagP, ptFlagPO, ptFlagPE, ptFlagM, 173 ptRegBCIndir, ptRegDEIndir, ptRegHLIndir, ptRegSPIndir, ptRegCIndir, 160 174 pt00, pt08, pt10, pt18, pt20, pt28, pt30, pt38, 161 175 pt0, pt1, pt2, pt3, pt4, pt5, pt6, pt7] then begin
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/mzxemu/chrome/site/your_project_logo.png)