SlideShare a Scribd company logo
1 of 7
Download to read offline
เป็นภาษาที่ใช้สัญลักษณ์ในการสื่อความหมายภาษาแอสแซมบลีมีลักษณะ
คาสั่งที่ขึ้นกับเครื่องคอมพิวเตอร์ที่ใช้งานและมีการแปลคาสั่งให้เป็นภาษาเครื่อง
นอกจากภาษาเครื่อง และภาษาแอสแซมบลีแล้ว ยังมีภาษาระดับสูง เช่นBasic
Cobol FORTRANซึ่งเป็นภาษาที่มีคาสั่งใกล้เคียงกับภาษาอังกฤษมาก ทาให้ผู้เขียน
โปรแกรมสามารถเขียนโปรแกรมได้สะดวกและรวดเร็วแต่ว่าโปรแกรมที่เขียนด้วย
ภาษาระดับสูงต้องใช้เนื้อที่เก็บในหน่วยความจาเป็นจานวนมากอีกทั้งทางานได้ช้ากว่า
แบ่งออกเป็น 4 ชนิดคือ

1. Machine instruction เป็นคาสั่งที่ทาให้เกิดการปฏิบัติการ ( execution )
ชุดของคาสั่งอยู่ใน assembler's instruction

                   2. Assembler instruction เป็นคาสั่งที่บอกแอสเซมเบลร์ให้ทาการระหว่างการ
                   แอสเซมบลี source program.
3. Macro instruction เป็นคาสั่งที่บอกแอสสเซมเบลร์ให้ดาเนินการกับชุดของคาสังที่ได้บอกไว้
                                                                               ่
ก่อน แล้ว ซึ่งจากชุดของคาสั่งนี้ แอสเซมเบลร์จะผลิตชุดของคาสั่งซึ่งต่อไปจะดาเนินการเหมือหนึ่ง
ว่าชุดของคา สั่งนี้เป็นส่วนหนึ่งของ source program แต่เริ่มแรก
                     4. Pseudo instruction เป็นคาสั่งที่บอกให้แอสเซมเบลร์รู้วา ควรปฏิบัติการเช่นไรกับข้อมูลการ
                                                                             ่
                     branch อย่างมีข้อแม้ แมคโคและ listing ซึ่งปกติแล้วคาสั่งเหล่านี้จะไม่ผลิตคาสังภาษาเครื่องให้
                                                                                                  ่
OP-CODE         อยู่ในไบท์แรกของคาสั่งภาษาแอสแซมบลีแทนด้วยตัวอักษร
ส่วนภาษาเครื่องแทนด้วยเลขฐาน 2 สองบิทแรก ในไบท์นี้เป็นตัวกาหนดความ
ยาวของคาสั่งนั้นด้วย อย่างเช่น
                 บิท                                 OP-CODE             ความยาว
    0 1   2     3     4    5    6     7    เลขฐาน 16     ภาษาแอสแซมบลี
    0 0    0     1     1   0      1   0        1A                AR      1.     1 HW
    0 1   0     1    1     0    1     0        5A                 A      2.     2 HW
    0 1   0    0      1    0     1    0        4A                AH      2.     2 HW
    0 0   0     0     0     1    0     1       05               BALR          1 HW
    1 1   0    1     0     0    1     0        D2               MVC           3 HW
: สร้างโปรแกรม 2 byte .com เป็นบริการของ bios เพื่อแสดง Divide overflow ถ้าเป็น
Windows XP จะแสดงข้อความเท่าที่เห็น แต่ถ้าเป็น 98 จะแสดงดังตัวอย่างด้านล่าง
C:>debug test.com
-a
11BD:0100 int 0h
11BD:0102
-rcx
CX 0001
:2
-w
Writing 00002 bytes
-q
C:>test.com
Your program caused a divide overflow error.
If the problem persists, contact your program vendor.
C:>
นายพงศ์พิทักษ์ รัตนภักดี เลขที่ 1

More Related Content

Viewers also liked

Keynote Talk on Recent Advances in Mobile Grid and Cloud Computing
Keynote Talk on Recent Advances in Mobile Grid and Cloud ComputingKeynote Talk on Recent Advances in Mobile Grid and Cloud Computing
Keynote Talk on Recent Advances in Mobile Grid and Cloud ComputingSayed Chhattan Shah
 
KM by jirawit jan 30
KM by jirawit jan 30KM by jirawit jan 30
KM by jirawit jan 30jirawit
 
Senior tourism 20 june 2014
Senior tourism  20 june 2014Senior tourism  20 june 2014
Senior tourism 20 june 2014jirawit
 
Tips on Applying for a Scholarship
Tips on Applying for a ScholarshipTips on Applying for a Scholarship
Tips on Applying for a ScholarshipSayed Chhattan Shah
 
Introduction to Mobile Ad hoc Networks
Introduction to Mobile Ad hoc NetworksIntroduction to Mobile Ad hoc Networks
Introduction to Mobile Ad hoc NetworksSayed Chhattan Shah
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingSayed Chhattan Shah
 
pemasaran word of mouth untuk usaha kecil dan menengah
pemasaran word of mouth untuk usaha kecil dan menengahpemasaran word of mouth untuk usaha kecil dan menengah
pemasaran word of mouth untuk usaha kecil dan menengahmamitfauzie
 
How to become Real Estate Developer in Indonesia, without Big Money
How to become Real Estate Developer in Indonesia, without Big MoneyHow to become Real Estate Developer in Indonesia, without Big Money
How to become Real Estate Developer in Indonesia, without Big Moneymamitfauzie
 

Viewers also liked (10)

Keynote Talk on Recent Advances in Mobile Grid and Cloud Computing
Keynote Talk on Recent Advances in Mobile Grid and Cloud ComputingKeynote Talk on Recent Advances in Mobile Grid and Cloud Computing
Keynote Talk on Recent Advances in Mobile Grid and Cloud Computing
 
KM by jirawit jan 30
KM by jirawit jan 30KM by jirawit jan 30
KM by jirawit jan 30
 
Senior tourism 20 june 2014
Senior tourism  20 june 2014Senior tourism  20 june 2014
Senior tourism 20 june 2014
 
Tips on Applying for a Scholarship
Tips on Applying for a ScholarshipTips on Applying for a Scholarship
Tips on Applying for a Scholarship
 
Cloud Robotics
Cloud RoboticsCloud Robotics
Cloud Robotics
 
Cluster and Grid Computing
Cluster and Grid ComputingCluster and Grid Computing
Cluster and Grid Computing
 
Introduction to Mobile Ad hoc Networks
Introduction to Mobile Ad hoc NetworksIntroduction to Mobile Ad hoc Networks
Introduction to Mobile Ad hoc Networks
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed Computing
 
pemasaran word of mouth untuk usaha kecil dan menengah
pemasaran word of mouth untuk usaha kecil dan menengahpemasaran word of mouth untuk usaha kecil dan menengah
pemasaran word of mouth untuk usaha kecil dan menengah
 
How to become Real Estate Developer in Indonesia, without Big Money
How to become Real Estate Developer in Indonesia, without Big MoneyHow to become Real Estate Developer in Indonesia, without Big Money
How to become Real Estate Developer in Indonesia, without Big Money
 

นายพงศ์พิทักษ์ รัตนภักดี เลขที่ 1

  • 1.
  • 2.
  • 3. เป็นภาษาที่ใช้สัญลักษณ์ในการสื่อความหมายภาษาแอสแซมบลีมีลักษณะ คาสั่งที่ขึ้นกับเครื่องคอมพิวเตอร์ที่ใช้งานและมีการแปลคาสั่งให้เป็นภาษาเครื่อง นอกจากภาษาเครื่อง และภาษาแอสแซมบลีแล้ว ยังมีภาษาระดับสูง เช่นBasic Cobol FORTRANซึ่งเป็นภาษาที่มีคาสั่งใกล้เคียงกับภาษาอังกฤษมาก ทาให้ผู้เขียน โปรแกรมสามารถเขียนโปรแกรมได้สะดวกและรวดเร็วแต่ว่าโปรแกรมที่เขียนด้วย ภาษาระดับสูงต้องใช้เนื้อที่เก็บในหน่วยความจาเป็นจานวนมากอีกทั้งทางานได้ช้ากว่า
  • 4. แบ่งออกเป็น 4 ชนิดคือ 1. Machine instruction เป็นคาสั่งที่ทาให้เกิดการปฏิบัติการ ( execution ) ชุดของคาสั่งอยู่ใน assembler's instruction 2. Assembler instruction เป็นคาสั่งที่บอกแอสเซมเบลร์ให้ทาการระหว่างการ แอสเซมบลี source program. 3. Macro instruction เป็นคาสั่งที่บอกแอสสเซมเบลร์ให้ดาเนินการกับชุดของคาสังที่ได้บอกไว้ ่ ก่อน แล้ว ซึ่งจากชุดของคาสั่งนี้ แอสเซมเบลร์จะผลิตชุดของคาสั่งซึ่งต่อไปจะดาเนินการเหมือหนึ่ง ว่าชุดของคา สั่งนี้เป็นส่วนหนึ่งของ source program แต่เริ่มแรก 4. Pseudo instruction เป็นคาสั่งที่บอกให้แอสเซมเบลร์รู้วา ควรปฏิบัติการเช่นไรกับข้อมูลการ ่ branch อย่างมีข้อแม้ แมคโคและ listing ซึ่งปกติแล้วคาสั่งเหล่านี้จะไม่ผลิตคาสังภาษาเครื่องให้ ่
  • 5. OP-CODE อยู่ในไบท์แรกของคาสั่งภาษาแอสแซมบลีแทนด้วยตัวอักษร ส่วนภาษาเครื่องแทนด้วยเลขฐาน 2 สองบิทแรก ในไบท์นี้เป็นตัวกาหนดความ ยาวของคาสั่งนั้นด้วย อย่างเช่น บิท OP-CODE ความยาว 0 1 2 3 4 5 6 7 เลขฐาน 16 ภาษาแอสแซมบลี 0 0 0 1 1 0 1 0 1A AR 1. 1 HW 0 1 0 1 1 0 1 0 5A A 2. 2 HW 0 1 0 0 1 0 1 0 4A AH 2. 2 HW 0 0 0 0 0 1 0 1 05 BALR 1 HW 1 1 0 1 0 0 1 0 D2 MVC 3 HW
  • 6. : สร้างโปรแกรม 2 byte .com เป็นบริการของ bios เพื่อแสดง Divide overflow ถ้าเป็น Windows XP จะแสดงข้อความเท่าที่เห็น แต่ถ้าเป็น 98 จะแสดงดังตัวอย่างด้านล่าง C:>debug test.com -a 11BD:0100 int 0h 11BD:0102 -rcx CX 0001 :2 -w Writing 00002 bytes -q C:>test.com Your program caused a divide overflow error. If the problem persists, contact your program vendor. C:>