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

WDM not supported by ca65 #715

Closed
fadden opened this issue Aug 16, 2018 · 1 comment
Closed

WDM not supported by ca65 #715

fadden opened this issue Aug 16, 2018 · 1 comment
Labels

Comments

@fadden
Copy link

fadden commented Aug 16, 2018

The table of instructions in src/ca65/instr.c doesn't have WDM in it. This causes assembly to fail when it encounters something like "WDM $00":

Checkcc.S(3): Error: `:' expected
Checkcc.S(3): Error: Unexpected trailing garbage characters

The disassembler sources know about WDM, treating it similarly to COP. src/da65/opc65816.c has:

    {   "cop",  2,  flNone,                   OH_Implicit              }, /* $02 */
   ....
    {   "wdm",  2,  flNone,                   OH_Implicit              }, /* $42 */

I would argue that the assembler should treat it the same way.

polluks added a commit to polluks/cc65 that referenced this issue Aug 19, 2018
@polluks polluks mentioned this issue Aug 19, 2018
@polluks
Copy link
Contributor

polluks commented Aug 19, 2018

000000r 1                       .setcpu "65816"
000000r 1  A9 11                lda #$11
000002r 1  00                   brk
000003r 1  EA                   nop
000004r 1  00 22                brk $22
000006r 1  02 33                cop $33
000008r 1  42 44                wdm $44
00000Ar 1  60                   rts
00000Ar 1               

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants