Jump to content
IGNORED

48 pixel sprite positioning and optimisations


Mikes360

Recommended Posts

Out of curiosity, how common was the use of illegal opcodes in classic games? I grepped for LAX in a couple of sources, but did not find anything.

I don't think they got used at all. Sometimes even some legal opcodes seemed unknown.

 

E.g. Starmaster uses CLC, ROR instead of LSR.

Edited by Thomas Jentzsch
Link to comment
Share on other sites

There is one case I know of, but I don't have time to look it up. I believe Airlock uses SAX of some form. It was a mistake IIRC, a bad branch was involved between and opcode and operand. It was a few years ago, but I seem to remember it looked like an error, as there was no point to the instruction, and if the branch was adjusted by 1 place it would make total sense.

Link to comment
Share on other sites

I don't think they got used at all. Sometimes even some legal opcodes seemed unknown.

 

E.g. Starmaster uses CLC, ROR instead of LSR.

Tom,

perhaps the programmer needed to pad cycles? Those opcodes are less frequently used but I would expect the Activision programmers to to be familiar.

Link to comment
Share on other sites

Tom,

perhaps the programmer needed to pad cycles? Those opcodes are less frequently used but I would expect the Activision programmers to to be familiar.

I found it hard to believe too, but it is very obvious. LSR is getting used, but probably not 100% understood. Else using CLC, ROR makes no sense. Just check the disassembly.

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...