📄 tdata.asm
字号:
page ,132
; SCCSID = @(#)tdata.asm 4.3 85/05/17
; SCCSID = @(#)tdata.asm 4.3 85/05/17
TITLE COMMAND Transient Initialized DATA
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; MODIFICATION HISTORY
;
; EE 10-20-83 Changed the drive check indicator bytes (DCIB's) in
; COMTAB to be a flag byte in which bit 0 is now the
; DCIB(bit) and bit 1 is on if the command can take
; switches.
;
; M003 SR 07/16/90 Added LoadHigh to command table, added
; parse control block for LoadHigh
;
; M008 SA 8/1/90 Remove /h parameter. Eliminate code to
; internally handle /? message.
;
; M010 SA 8/5/90 Add support for /l (lowercase) option.
;
; M016 SR 08/09/90 Added public statements for new error
; messages for LoadHigh.
;
comment %
The TRANDATA segment contains data that is assumed to have predefined
initial values at the beginning of each command cycle. It is
included in the transient checksum area. If values in TRANDATA
change, the transient will be reloaded for the next command cycle.
Modification History
--------------------
8/12/89 DBO History resumes after six years.
8/12/89 DBO Added for new DIR:
-8/14/89 DirEnvVar, AttrLtrs, OrderLtrs;
New PARSE_DIR and subordinate parse blocks
(called PARSE_DIR_E for now);
%
fmt macro name,string,args
local a
a db string
PUBLIC name
name dw offset trangroup:a
irp val,<args>
dw offset trangroup:val
endm
endm
btab macro b,sym
db b
dw offset trangroup:sym
endm
.xlist
.xcref
INCLUDE version.inc
INCLUDE comsw.asm ;AC000;
INCLUDE comseg.asm
INCLUDE dirent.inc ;AN042;
.list
.cref
BREAK MACRO subtitle
SUBTTL subtitle
PAGE
ENDM
;
; WARNING: DO NOT INCLUDE DOSSYM.INC BECAUSE IT DESTROYS THE MACRO 'FMT' THAT
; has been defined above - RS.
;
INCLUDE ERROR.INC
INCLUDE ifequ.asm
INCLUDE comequ.asm
; Note curdir.inc is included by comequ.asm
TRANSPACE SEGMENT PUBLIC BYTE ;AC000;
EXTRN arg_buf:BYTE
EXTRN bwdbuf:byte
EXTRN bytes_free:WORD
EXTRN charbuf:byte
EXTRN copy_Num:WORD
EXTRN DATE_OUTPUT:BYTE ;AC000;
EXTRN Dir_Num:WORD
ifdef DBLSPACE_HOOKS
EXTRN Dir_CRatio_1:BYTE
EXTRN Dir_CRatio_2:BYTE
endif
EXTRN DRIVE_OUTPUT:BYTE ;AC000;
EXTRN file_size_high:WORD
EXTRN file_size_low:WORD
EXTRN FileSiz:DWORD ; accumulated file size for DIR
EXTRN major_ver_num:WORD
EXTRN minor_ver_num:WORD
EXTRN one_char_val:BYTE
EXTRN PARSE1_OUTPUT:BYTE ;AC000;
EXTRN srcbuf:byte
EXTRN string_ptr_2:WORD
EXTRN system_cpage:word
EXTRN TIME_OUTPUT:BYTE ;AC000;
EXTRN vol_drv:BYTE
EXTRN vol_serial:dword ;AN000;
TRANSPACE ENDS
TRANCODE SEGMENT PUBLIC BYTE ;AC000;
EXTRN $CALL:NEAR
EXTRN $CHDIR:NEAR
EXTRN $EXIT:NEAR
EXTRN $FOR:NEAR
EXTRN $IF:NEAR
EXTRN $MKDIR:NEAR
EXTRN $RMDIR:NEAR
EXTRN ADD_NAME_TO_ENVIRONMENT:NEAR
EXTRN ADD_PROMPT:NEAR
EXTRN build_dir_for_prompt:near
EXTRN CATALOG:NEAR
EXTRN CHCP:NEAR
EXTRN CLS:NEAR
EXTRN CNTRLC:NEAR
EXTRN COPY:NEAR
EXTRN CRENAME:NEAR
EXTRN CRLF2:NEAR
EXTRN CTIME:NEAR
EXTRN CTTY:NEAR
EXTRN DATE:NEAR
EXTRN ECHO:NEAR
EXTRN ERASE:NEAR
EXTRN GOTO:NEAR
EXTRN IFERLEV:NEAR
EXTRN IFEXISTS:NEAR
EXTRN IFNOT:NEAR
EXTRN PATH:NEAR
EXTRN PAUSE:NEAR
EXTRN PRINT_B:NEAR
EXTRN PRINT_BACK:NEAR
EXTRN PRINT_DATE:NEAR
EXTRN PRINT_CHAR:NEAR
EXTRN PRINT_DRIVE:NEAR
EXTRN PRINT_EQ:NEAR
EXTRN PRINT_ESC:NEAR
EXTRN PRINT_G:NEAR
EXTRN PRINT_L:NEAR
EXTRN PRINT_TIME:NEAR
EXTRN PRINT_VERSION:NEAR
EXTRN SHIFT:NEAR
EXTRN TCOMMAND:NEAR
EXTRN TRUENAME:NEAR ;AN000;
EXTRN TYPEFIL:NEAR
EXTRN VERSION:NEAR
EXTRN VOLUME:NEAR
EXTRN VERIFY:NEAR
extrn LoadHigh:NEAR ; M003
;
; WARNING!!! No code may appear after this label!!!!
;
;
; Bugbug:
; 8/12/89 Looks like somebody ignored/missed this warning. TRANCODE
; is added to at the end of this file. Fortunately, it looks
; like no modules refer to this label.
;
PUBLIC TranCodeLast
TranCodeLast LABEL BYTE
TRANCODE ENDS
; Data for transient portion
TRANDATA SEGMENT PUBLIC BYTE
PUBLIC accden_ptr ;AN000;
PUBLIC acrlf_ptr ;AN000;
PUBLIC arg_buf_ptr ;AN000;
PUBLIC AttrLtrs
PUBLIC badbat_ptr ;AN000;
PUBLIC badcd_ptr ;AN000;
PUBLIC badCPmes_ptr ;AN000;
PUBLIC badcurdrv ;AN000;
PUBLIC baddat_ptr ;AN000;
PUBLIC baddev_ptr ;AN000;
PUBLIC baddrv_ptr ;AN000;
PUBLIC badlab_ptr ;AN000;
PUBLIC badmkd_ptr ;AN000;
PUBLIC badnam_ptr ;AN000;
PUBLIC bad_on_off_ptr ;AN000;
PUBLIC badPmes_ptr ;AN000;
PUBLIC badrmd_ptr ;AN000;
PUBLIC badtim_ptr ;AN000;
PUBLIC batext
PUBLIC bytes_ptr
PUBLIC bytmes_ptr ;AN000;
PUBLIC CLSSTRING
PUBLIC comext
PUBLIC comspec_flag ;AN071;
PUBLIC COMSPECSTR
PUBLIC COMTAB
PUBLIC copied_ptr ;AN000;
PUBLIC cp_active_ptr ;AN000;
PUBLIC cp_not_all_ptr ;AN000;
PUBLIC cp_not_set_ptr ;AN000;
PUBLIC ctrlcmes_ptr ;AN000;
PUBLIC curdat_mo_day ;AN000;
PUBLIC curdat_ptr ;AN000;
PUBLIC curdat_yr ;AN000;
PUBLIC curtim_hr_min ;AN000;
PUBLIC curtim_ptr ;AN000;
PUBLIC curtim_sec_hn ;AN000;
PUBLIC dback_ptr ;AN000;
PUBLIC del_Y_N_ptr ;AN000;
PUBLIC devwmes_ptr ;AN000;
PUBLIC dircont_ptr
PUBLIC dirdattim_ptr ;AN000;
ifdef DBLSPACE_HOOKS
PUBLIC DirCompRatio_Ptr
PUBLIC AveCompRatio_Ptr
endif
PUBLIC dirdat_mo_day ;AN000;
PUBLIC dirdat_yr ;AN000;
PUBLIC DirEnvVar
PUBLIC dirhead_ptr ;AN000;
PUBLIC dirmes_ptr ;AN000;
PUBLIC dirtim_hr_min ;AN000;
PUBLIC dirtim_sec_hn ;AN000;
PUBLIC DIR_SW_PTRS
PUBLIC disp_file_size_ptr ;AN000;
PUBLIC DosHma_Ptr
PUBLIC DosLow_Ptr
PUBLIC DosRev_Ptr
PUBLIC DosRom_Ptr
PUBLIC dmes_ptr ;AN000;
PUBLIC echomes_ptr ;AN000;
PUBLIC enverr_ptr ;AN000;
PUBLIC errparsenv_ptr
PUBLIC eurdat_ptr ;AN000;
PUBLIC exeext
PUBLIC extend_buf_off ;AN000;
PUBLIC extend_buf_ptr ;AN000;
PUBLIC extend_buf_seg ;AN000;
PUBLIC extend_buf_sub ;AN000;
PUBLIC file_name_ptr ;AN000;
PUBLIC fornestmes_ptr ;AN000;
PUBLIC fuldir_ptr ;AN000;
PUBLIC IFTAB
PUBLIC inBdev_ptr ;AN000;
PUBLIC inornot_ptr ;AN000;
PUBLIC Inv_code_page ;AN000;
PUBLIC inval_path_ptr ;AN000;
PUBLIC japdat_ptr ;AN000;
PUBLIC Losterr_ptr ;AN000;
PUBLIC md_exists_ptr ;AN006;
PUBLIC msg_cont_flag ;AN000;
PUBLIC msg_disp_class ;AN000;
PUBLIC needbat_ptr ;AN000;
PUBLIC newdat_format ;AN000;
PUBLIC newdat_ptr ;AN000;
PUBLIC newtim_ptr ;AN000;
PUBLIC NLSFUNC_ptr ;AN000;
PUBLIC nospace_ptr ;AN000;
PUBLIC no_values ;AN000;
PUBLIC nulpath_ptr ;AN000;
PUBLIC offmes_ptr ;AN000;
PUBLIC onmes_ptr ;AN000;
PUBLIC OrderLtrs ; list of sort order letters for DIR
PUBLIC overwr_ptr ;AN000;
PUBLIC PARSE_BREAK ;AN000;
PUBLIC PARSE_CHCP ;AN000;
PUBLIC PARSE_CHDIR ;AN000;
PUBLIC PARSE_CTTY ;AN000;
PUBLIC PARSE_DATE ;AN000;
PUBLIC PARSE_DIR ;AN000;
PUBLIC PARSE_ERASE ;AN000;
PUBLIC PARSE_MRDIR ;AN000;
PUBLIC PARSE_RENAME ;AN000;
PUBLIC PARSE_TIME ;AN000;
PUBLIC PARSE_VER
PUBLIC PARSE_VOL ;AN000;
public Parse_LoadHi ; Parse block for LoadHigh; M003
PUBLIC PATH_TEXT
PUBLIC pausemes_ptr ;AN000;
PUBLIC pipeEmes_ptr ;AN000;
PUBLIC promptdat_moday ;AN000;
PUBLIC promptdat_ptr ;AN000;
PUBLIC promptdat_yr ;AN000;
PUBLIC PROMPT_TABLE
PUBLIC PROMPT_TEXT
PUBLIC promtim_hr_min ;AN000;
PUBLIC promtim_ptr ;AN000;
PUBLIC promtim_sec_hn ;AN000;
PUBLIC renerr_ptr ;AN000;
PUBLIC SLASH_P_SYN ;AN000;
PUBLIC string_buf_ptr ;AN000;
PUBLIC suremes_ptr ;AN000;
PUBLIC switch_list
PUBLIC syntmes_ptr ;AN000;
PUBLIC tab_ptr ;AN000;
PUBLIC total_ptr
PUBLIC TRANDATAEND
PUBLIC usadat_ptr ;AN000;
PUBLIC verimes_ptr ;AN000;
PUBLIC vermes_ptr ;AN000;
PUBLIC volmes_ptr ;AN000;
PUBLIC volmes_ptr_2 ;AN000;
PUBLIC volsermes_ptr ;AN000;
PUBLIC WEEKTAB
public NoExecBat_Ptr ; M016
public LhInvFil_Ptr ; M016
public NoCntry_Ptr ; M045
public LhInvArg_Ptr
public ReqParmMiss
public LhInvSwt_Ptr
public LhBadUMB_Ptr
INCLUDE tranmsg.asm
; Lists of help message numbers for internal commands and /?
;;NoHelpMsgs dw 1200,0 ;M014
BreakHelpMsgs dw 1300,0
ChcpHelpMsgs dw 1320,1321,0
CdHelpMsgs dw 1340,1341,1342,0
ClsHelpMsgs dw 1360,0
CopyHelpMsgs dw 1400,1401,1402,1403,1404,0
CttyHelpMsgs dw 1420,0
DateHelpMsgs dw 1440,1441,0
DelHelpMsgs dw 1460,1461,1462,0
ifdef DBLSPACE_HOOKS
DirHelpMsgs dw 1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,0
else
DirHelpMsgs dw 1480,1493,1482,1483,1484,1485,1486,1487,1489,1494,1492,0
endif
ExitHelpMsgs dw 1500,0
MdHelpMsgs dw 1520,0
PathHelpMsgs dw 1540,1541,1542,0
PromptHelpMsgs dw 1560,1561,1562,1563,1564,1565,1566,1567,1568,0
RdHelpMsgs dw 1580,0
RenHelpMsgs dw 1600,1601,1602,0
SetHelpMsgs dw 1620,1621,1622,0
TimeHelpMsgs dw 1640,1641,0
TypeHelpMsgs dw 1660,0
VerHelpMsgs dw 1680,0
VerifyHelpMsgs dw 1700,0
VolHelpMsgs dw 1720,0
CallHelpMsgs dw 1740,1741,0 ;M014
RemHelpMsgs dw 1760,0 ;M014
PauseHelpMsgs dw 1780,0 ;M014
EchoHelpMsgs dw 1800,1801,0 ;M014
GotoHelpMsgs dw 1820,1821,0 ;M014
ShiftHelpMsgs dw 1840,0 ;M014
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -