Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8fe3069a4e

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Assembly conventions

The code in this library adheres to some code conventions. It is advised to stick to these when using the code in this library. That is, if you want your code to behave as expected.

Register states

  • The A, B and C registers are used to push arguments into a function.
  • The A register will hold the return value from a function if applicable.
  • When calling a function, the A, B and C registers are considered free for all. Their contents are not preserved across calls. So if you are using them for anything important, you are required to save/restore them manually.
  • The registers X, Y, Z, I and J are guaranteed to be preserved across function calls. This means that any function which anticipates usage of these registers must first push their value to the stack and pop them back once done.
Something went wrong with that request. Please try again.