วันพุธที่ 8 มีนาคม พ.ศ. 2560

Assembly code [ แสดงสั่งกระโดด ]

Ex. 3 แสดงสั่งกระโดด
.model  small

.data
msg1 db 'AL more than CL','$'
msg2 db 'AL less than CL','$'

.code
start:
            mov ax,@data
            mov ds,ax
            mov al,5
            mov cl,0
            cmp al,cl
            jg  more
            lea dx,msg2
            mov ah,9
            int 21h
more:
            lea dx,msg1
            mov ah,9
            int 21h

        mov     ax,4C00h  ;exit
        int     21h
end     start






ไม่มีความคิดเห็น:

แสดงความคิดเห็น

Set Enable .Net framework 3.5 on windows 10 (ติดตั้ง .Netframework 3.5 บนวินโดวน์ 10)

1. Download windows 8.1 file [ TH : ดาวน์โหลดไฟล์ ของ windows 8.1 ] 2. Mount File windows Copy file \sources\sxs from mount drive ...