191 words
1 minute
Assembly Language Terms
COE538 Assembly Basics Cheat Sheet
Instruction Abbreviations
- LDAA → LoaD Accumulator A
- Example:
LDAA #55→ Load A with 55
- Example:
- LDAB → LoaD Accumulator B
- ADDA → ADd to Accumulator A
- Example:
ADDA $20→ A = A + value at memory address $20
- Example:
- SUBA → SUBtract from Accumulator A
- STAA → STore Accumulator A into memory
- TFR → TRansFeR between registers
- EXG → EXchanGe registers
- INCA → INCrement A → A = A + 1
- NOP → No OPeration (do nothing)
Special Symbols
-
#→ Immediate Value- Means: “Use this number directly, not from memory.”
- Example:
LDAA #55→ A = 55
-
$→ Hexadecimal Number- Means: “The following number is in hexadecimal.”
- Example:
LDAA $20→ A = value stored at memory[0x20]
-
@→ Indirect Addressing (pointer)- Means: “Use the memory location stored in a register or memory cell.”
- Example:
LDAA @X→ A = memory[X]
C Language Analogy
LDAA #55→A = 55;LDAA $20→A = memory[0x20];LDAA @X→A = memory[X];
CCR (Condition Code Register) Flags
- C (Carry): Unsigned overflow → e.g. 255 + 1 = 0 with C = 1
- V (Overflow): Signed overflow → e.g. 127 + 1 = -128 with V = 1
- Z (Zero): Result is zero
- N (Negative): Result is negative (most significant bit = 1)
Share
If this article helped you, please share it with others!
Assembly Language Terms
https://miikka11212.github.io/posts/assembly/ Some information may be outdated
Related Posts Smart
1
HCS12 Register Summary Sheet
Notes Some notes on HCS12 registers and assembly codes
2
村上春树作品分析:三部小说与三首音乐
Articles 以《1Q84》《没有色彩的多崎作》《刺杀骑士团长》为线索,写三首贯穿全文的音乐:雅纳切克《小交响曲》、李斯特《巡礼之年·乡愁》与莫扎特《唐·璜》。
3
About Me
Articles Some info about this site and ME!
4
How to change workflow after depreciation of Ubuntu 20.04?
Short Ubuntu depreciation
5
Ways of Living-Ethics Across Classical Philosophies
Articles An explanatory and discussive essay on ethics, epistemology, and metaphysics.
Random Posts Random
1
How to change workflow after depreciation of Ubuntu 20.04?
Short 2025-04-16
2
What Does Plato, Socrates, and Aristotle Believe in Ethics?
Articles 2025-01-23
3
村上春树作品分析:三部小说与三首音乐
Articles 2026-02-20
4
Ways of Living-Ethics Across Classical Philosophies
Articles 2025-04-16
5
HCS12 Register Summary Sheet
Notes 2025-10-21













