Skip to content

Instantly share code, notes, and snippets.

@thetooth
Last active October 8, 2015 21:52
Show Gist options
  • Select an option

  • Save thetooth/6e2e2ebfd81dc6b2473b to your computer and use it in GitHub Desktop.

Select an option

Save thetooth/6e2e2ebfd81dc6b2473b to your computer and use it in GitHub Desktop.
// local ram 0x100-1FF, external 0x200-2FF
__xdata Stack openList; // Stack is allocated on the stack at 0x108
initStack(&openList); // doesn't work because it expects an ext ram address but has local
__xdata Stack* openList; // Stack is referenced on the heap at 0x200
initStack(openList); // works???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment