Mobile wallpaper 1Mobile wallpaper 2Mobile wallpaper 3Mobile wallpaper 4Mobile wallpaper 5Mobile wallpaper 6Mobile wallpaper 7Mobile wallpaper 8
188 words
1 minute
Assembly Language Terms

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)
Assembly Language Terms
https://mizuki.mysqil.com/posts/assembly/
Author
Oscar Wang
Published at
2025-09-04
License
Unlicensed

Some information may be outdated

封面
示例歌曲
示例艺术家
封面
示例歌曲
示例艺术家
0:00 / 0:00