Skip to content

Distinguish skipped instructions from invalid instructions#3

Merged
a2geek merged 1 commit intoAppleCommander:mainfrom
ThomasFok:skipped_instructions
Oct 28, 2023
Merged

Distinguish skipped instructions from invalid instructions#3
a2geek merged 1 commit intoAppleCommander:mainfrom
ThomasFok:skipped_instructions

Conversation

@ThomasFok
Copy link
Copy Markdown
Contributor

@ThomasFok ThomasFok commented Jan 24, 2023

The disassembler display both skipped instructions and invalid instructions as ???.

For example, acdasm c600 –a=0xc600 –-offset=4

C600- A2                   ???
C601- 20                   ???
C602- A0                   ???
C603- 00                   ???
C604- A2 03                LDX #$03
C606- 86 3C     LC606      STX $3C
C608- 8A                   TXA
C609- 0A                   ASL

Apple II Programmers are used to interpreting ??? as invalid opcodes. In this listing, The first opcode A2 is not invalid. It is the opcode of LDX # instruction.

I have renamed the class InvalidInstruction to SkippedInstruction and display the mnemonic as ---. Here is the sample output.

C600- A2                   ---
C601- 20                   ---
C602- A0                   ---
C603- 00                   ---
C604- A2 03                LDX #$03
C606- 86 3C     LC606      STX $3C
C608- 8A                   TXA
C609- 0A                   ASL

@ThomasFok ThomasFok changed the title Distinguish skipped instructions from illegal instructions Distinguish skipped instructions from invalid instructions Jan 28, 2023
@a2geek
Copy link
Copy Markdown
Contributor

a2geek commented Oct 28, 2023

I like it. Thank you!

@a2geek a2geek merged commit 8629a6c into AppleCommander:main Oct 28, 2023
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

Successfully merging this pull request may close these issues.

2 participants