Asmgame is a game that teaches you how to write assembly language. The game is based on the concept of a CPU with 3 registers and an accumulator
(which is like another register): A
, B
, and *A
. The game is played by writing assembly language to solve puzzles. The game is designed to be a fun way to learn assembly language. For example, in the first puzzle, you need to write assembly code that swaps the values of the A
and B
registers. One way to do this would be putting the A
register in to the accumulator
, putting the B register into the A register(and in doing so overwriting the previous value), and then putting the accumulator
into the B register. The game is designed to be a fun way to learn assembly language.
Reference
Registers
- A: A general purpose register. Controls the address accessed by the *A register.
- B: A general purpose register. No special attributes.
- *A: A register that when modified changes the value at the memory address of the A register(i.e. if A is 5, then accessing the *A register will access the memory address 5).