Skip to content

Instantly share code, notes, and snippets.

@rmartinho
Last active April 9, 2019 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmartinho/9485770 to your computer and use it in GitHub Desktop.
Save rmartinho/9485770 to your computer and use it in GitHub Desktop.
Program that swaps the values of variables x and y, with the usual algorithm that uses a temporary variable in a weird nonexistent language.
temporary_ACC creation_V.
temporary_DAT assignment_V x_ACC.
y_ACC x_DAT assignment_V.
assignment_V temporary_ACC y_DAT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment