Skip to content

Instantly share code, notes, and snippets.

@dkorolev
Created May 21, 2022 14:27
Show Gist options
  • Save dkorolev/fb188fbb107e37c434a69f34702ebcf1 to your computer and use it in GitHub Desktop.
Save dkorolev/fb188fbb107e37c434a69f34702ebcf1 to your computer and use it in GitHub Desktop.
al = 0
si = 0x500
ram[si] = al
++si;
++al;
ram[si] = al
cx = ram[0]
cx -= 2;
while (cx) {
al = ram[si - 1]
al += ram[si]
++si
ram[si] = al
--cx
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment