2fopen.scr
来自「汇编源代码大全」· SCR 代码 · 共 40 行
SCR
40 行
;; 2FOPEN.SCR
;; Intended for use with versions of DOS >=3.1 and <4.00
include "dosstruc"
intercept 21h
function 3dh
on_entry
output "== DOS OPEN (3Dh) ====================="
output "File name: " (ds:dx->byte,asciiz,40)
output "Open mode: " al
on_exit
output ""
output "== 3D OPEN Completed "
if (cflag == 1) sameline "(FAILED " ax ") =========="
if (cflag == 0) sameline "(Handle " ax ") =========="
intercept 2fh
function 11h
subfunction 16h
on_entry
output ""
output "-- 2F Open (16h) -----------------"
output "File name: " (sda_seg:sda_ofs->SDA3.FN1)
output "Open mode: " (sda_seg:sda_ofs->SDA3.OPEN_MODE)
output "Uninitialized SFT:"
output (es:di->SFT)
on_exit
output ""
output "-- 2F Open completed "
if (cflag == 0)
sameline "-----------------"
output "Completed SFT:"
output (es:di->SFT)
if (cflag == 1) sameline "(FAILED " ax ") ---------"
run "command /c type %1"
report "2fopen.out"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?