1 / 8

โครงสร้างคอมพิวเตอร์ และภาษาแอสเซมบลี้

โครงสร้างคอมพิวเตอร์ และภาษาแอสเซมบลี้. inkey.com. ผศ.บุรินทร์ รุจจนพันธุ์ . ปรับปรุง 1 9 ตุลาคม 2555. มหาวิทยาลัยเนชั่น จังหวัดลำปาง http://www. nation.ac.th. inkey.com คืออะไร.

neal
Download Presentation

โครงสร้างคอมพิวเตอร์ และภาษาแอสเซมบลี้

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. โครงสร้างคอมพิวเตอร์ และภาษาแอสเซมบลี้ inkey.com ผศ.บุรินทร์ รุจจนพันธุ์ . ปรับปรุง 19 ตุลาคม 2555 มหาวิทยาลัยเนชั่น จังหวัดลำปาง http://www.nation.ac.th

  2. inkey.com คืออะไร โปรแกรมรับค่าจากแป้นพิมพ์แบบไม่แสดงผล แต่ Batch File สามารถตรวจสอบค่า Error Level ได้จากการกดแป้นพิมพ์ โปรแกรมนี้สร้างขึ้นอย่างง่าย ๆ ด้วยโปแกรม Debug ซึ่งมีคำสั่งเรียนกใช้Interrupt ที่ 21 จากบริการ AH=08 และ AH=4C จึงนำมาประยุกต์ใช้เป็นเมนูใน Batch File ได้อย่างมีประสิทธิภาพ ในโปรแกรมเมนูยุค DOS ข้อมูลจาก http://www.thaiall.com/assembly/inkey.htm

  3. สร้าง inkey.com (1/3) DOS>debug -n inkey.com -e 0100 b4 08 cd 21 b4 4c cd 21 -rcx :0008 -w -q

  4. สร้าง inkey.com (2/3) DOS>copy con inkey.scr n inkey.com e 0100 b4 08 cd 21 b4 4c cd 21 rcx 0008 w q ^Z DOS>debug < inkey.scr

  5. สร้าง inkey.com (3/3) DOS>debug -n inkey.com -a mov ah,08 int 21h mov ah,4c int 21h -rcx :0008 -w -q

  6. แสดงภาษา ASSEMBLY ของ inkey.com MOV AH,08 INT 21 MOV AH,4C INT 21 ข้อมูลจาก http://www.thaiall.com/assembly/register.htm

  7. สร้าง menu1.bat cls inkey.com if errorlevel 97 if not errorlevel 98 goto ok goto end :ok dir /w goto end :end echo bye bye

  8. สร้าง menu2.bat @echo off :menu cls echo a: dir echo 0: bye inkey.com if errorlevel 65 if not errorlevel 66 goto dodirw if errorlevel 97 if not errorlevel 98 goto dodirw if errorlevel 48 if not errorlevel 49 goto end goto menu :dodirw dir /w goto end :end echo bye bye

More Related