Arrays
Arrays can be seen as chains of variables. A text string is an
example of a byte array, each character is presented as an ASCII code
value (0..255).
Here are some array definition examples:
a DB 48h, 65h, 6Ch, 6Ch, 6Fh, 00h
b DB 'Hello', 0
b is an exact copy of the a array, when compiler sees a string inside
quotes it automatically converts it to set of bytes. This chart shows a part
of the memory where these arrays are declared:
อาร์เรย์
อาร์เรย์สามารถมองเห็นเป็นกลุ่มของตัวแปร สตริงข้อความเป็น
ตัวอย่างของอาร์เรย์ไบต์, ตัวละครแต่ละตัวจะนำเสนอเป็นรหัส ASCII
ค่า (0..255).
นี่คือตัวอย่างความหมายอาร์เรย์คือ:
48h DB, 65H, 6CH, 6CH, 6Fh, 00h
ข DB ' สวัสดี ', 0
ขเป็นสำเนาถูกต้องของอาเรย์เมื่อคอมไพเลอร์เห็นสตริงภายใน
คำพูดมันจะแปลงการตั้งไบต์ แผนภูมินี้แสดงให้เห็นส่วนหนึ่ง
ของหน่วยความจำที่อาร์เรย์เหล่านี้จะประกาศ:
การแปล กรุณารอสักครู่..
