Notes

Updated 4 Oct 2026

  • ถ้าสมมติว่าเรากำหนดตัวแปรโดยใช้ .EQU ขึ้นมาเป็น X1,X2,X3
  • In assembly language, whether X1, X2, and X3 are treated as addresses or as values depends entirely on the context of how they're used in specific instructions.
    • STS X1, R20, X1 is used as an address (where to store the value from R20)
    • แต่ถ้าเรามี LDI R23, X1 แล้ว ADD R24, X1 X1 would be treated as a value to add.