Saturday, September 26, 2026

Assembly x86 Linux : Hello, Earth!

 โปรแกรม Assembly แสดง Hello, Earth!

 

ตัวโปรแกรม 

 

msg  db "Hello. Earth!", 10 

 

* ต่อไป เป็นคำอธิบายจากการถาม เอไอ

 

len  equ $ - msg 

 

  1. mov rsi, msg ; จะได้ค่า Address Pointer ของ msg ไปเก็บใน rsi
  2. mov rsi, [msg]; จะได้ค่า ใน Byte-Addressable Memory ไปเก็บใน rsi จำนวน 8 bytes

 DDD

 

คำอธิบายเพิ่มเติม เพื่อจะได้ไม่สับสนเหมือนผม

No comments:

Post a Comment