Welcome, Guest. Please login or register.

Author Topic: Why C= never made a 65816 based machine?  (Read 11237 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline 6502addict

  • Newbie
  • *
  • Join Date: Aug 2023
  • Posts: 1
  • Country: fr
    • Show all replies
Re: Why C= never made a 65816 based machine?
« on: August 15, 2023, 11:34:24 AM »
perhaps simply because the 65c816 has bug

I discovered with the W65C816SXB board that it was not working correctly in emulation mode

if you try this code in emulation mode

     LDA #$FF
     STA  $40
     STA  $41
     LDY  #$02
     LDA  ($40), Y

either you have an error if the machine only has 64k of memory
or if the read works you get a byte from $010001 and not from $000001

there is probably a work around by taking into account the E flag
while loading the latch (if in emulation the latch is kept a $00 it should work)