prog8_7.asm

来自「汇编语言-王爽 源代码 加 卜艳萍版源代码」· 汇编 代码 · 共 31 行

ASM
31
字号
stack  segment stack
       dw  64 dup(?)
stack  ends
data  segment
mess  db  'this is an example about foft interrupt.$'
err   db  0ah,0dh,'error!$'
data  ends
extrn int4ah:far
code  segment
      assume  cs:code,ds:data,ss:stack
bg:   mov  ax,seg int4ah
      mov  ax,254ah
      int  21h
      mov  ax,data
      mov  ds,ax
      mov  ax,offset mess
      int  4ah
      cmp  ah,0ffh
      je  er
      mov  ah,4ch
      int  21h
er:   lea  dx,err
      mov  ah,9
      int  21h
      mov  ah,4ch
      int  21h
code  ends
      end  bg


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?