⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rxdoscin.asm

📁 dos source
💻 ASM
字号:




        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  RxDOS Command Shell Data Structures and Definitions          ;
        ;...............................................................;

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Real Time Dos Data Structure Definitions                     ;
        ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
        ;                                                               ;
        ;  Data Structure Definitions                                   ;
        ;                                                               ;
        ;                                                               ;
        ;  (c) Copyright 1990, 1997. Api Software and Mike Podanoffsky  ;
        ;      All Rights Reserved Worldwide.                           ;
        ;                                                               ;
        ;  This product is protected under copyright laws and  may not  ;
        ;  be reproduced  in whole  or in part, in any form  or media,  ;
        ;  included but not limited to source listing, facsimile, data  ;
        ;  transmission, cd-rom, or  floppy disk without the expressed  ;
        ;  written consent of the author.                               ;
        ;                                                               ;
        ;  License  for  distribution  for commercial  use  or  resale  ;
        ;  required from:                                               ;
        ;                                                               ;
        ;  Api Software                                                 ;
        ;  12 South Walker Street                                       ;
        ;  Lowell,  MA   01851                                          ;
        ;                                                               ;
        ;  internet: mikep@world.std.com                                ;
        ;                                                               ;
        ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
        ;  Compile with MASM 5.1                                        ;
        ;...............................................................;

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Switches                                                     ;
        ;...............................................................;

        SWITCHENTRY struc

swChar                          db ?
swFlags                         dw ?
swMinValue                      dw ?
swMaxValue                      dw ?
swActualValue                   dw ?

        SWITCHENTRY ends

SW_MINMAXVALUE                  equ 0001h
SW_LETTERCHOICE                 equ 0002h

SW_SWITCHSET                    equ 8000h
sizeSWITCHENTRY                 equ size SWITCHENTRY

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Sprintf flags                                                ;
        ;...............................................................;

SPRINTF_COMMADELIM              equ 8000h
SPRINTF_LONGFLAG                equ 4000h
SPRINTF_LEFTALIGN               equ 2000h

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Replace Macro                                                ;
        ;...............................................................;

Translate macro c1, c2, goto

        mov ah, c2
        cmp al, c1
        jz goto 
        endm

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Define Date/Time Template                                    ;
        ;...............................................................;

intldate macro country, template

        dw country
        db template, 0
        endm

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  For Argument List                                            ;
        ;...............................................................;

        FORARGS struc

forVarIdent                     dw ?
forVarLetter                    dw ?
forInArg                        dw ?
forInStartParen                 dw ?

        FORARGS ends

_IN                             equ 0
_DO                             equ 1

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Expanded Filename                                            ;
        ;...............................................................;

        EXPANDEDNAME struc

expDrive                        db   2 dup(?)
expPath                         db 129 dup(?)
expFilename                     db   9 dup(?)
expExtension                    db   5 dup(?)

        EXPANDEDNAME ends

sizeExpandedName                equ size EXPANDEDNAME

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Date Control Block                                           ;
        ;...............................................................;

        DATE struc

_DAY                            dw ?
_MONTH                          dw ?
_YEAR                           dw ?

        DATE ends

        ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
        ;  Time Control Block                                           ;
        ;...............................................................;

        TIME struc

_HOURS                          dw ?
_MINUTES                        dw ?
_SECONDS                        dw ?
_HUNDREDTHS                     dw ?

        TIME ends

sizeDATE                        equ size DATE
sizeTIME                        equ size TIME        
        

⌨️ 快捷键说明

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