Jump to content
IGNORED

Adding to the x Register


Recommended Posts

One demo crashed on a 65816 simply because the coder gratuitously used LAX #imm in the init routine wherever LDA #imm or LDX #imm could have been used.

 

 

there is no such opcode. what is hexcode of this LAX #imm

Link to comment
Share on other sites

It's not always easy because some of the opcodes do things that would normally require an extra register or RAM variable. So, at the very least the macro might need to push and pop.

 

Yes, but targeted for source code, reserving e.g. one ZP location for them shouldn't be such an issue. There is a runtime penalty for sure, but the macros would allow at least an executable for 'non-original' CPUs.

The same could make sense for 65C02 to 6502 code... when 65C02 owners like to produce a 'std.-build'...

...and then we introduce something like a fat-binary, compatible for all machines but benefiting a CPU type. ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...