mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6mobile wallpaper 7mobile wallpaper 8
191 words
1 minute
Assembly Language Terms
2025-09-04

COE538 Assembly Basics Cheat Sheet#

Instruction Abbreviations#

  • LDAALoaD Accumulator A
    • Example: LDAA #55 → Load A with 55
  • LDABLoaD Accumulator B
  • ADDAADd to Accumulator A
    • Example: ADDA $20 → A = A + value at memory address $20
  • SUBASUBtract from Accumulator A
  • STAASTore Accumulator A into memory
  • TFRTRansFeR between registers
  • EXGEXchanGe registers
  • INCAINCrement A → A = A + 1
  • NOPNo 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 #55A = 55;
  • LDAA $20A = memory[0x20];
  • LDAA @XA = 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/
Author
Oscar Wang
Published at
2025-09-04
License
Unlicensed

Some information may be outdated

Table of Contents