当前位置:网站首页>The role of MOV ah, 4CH int 21
The role of MOV ah, 4CH int 21
2022-06-12 01:24:00 【Poem water world】
int Indicates the meaning of interrupt .
mov ah,4ch
int 21h
Express , Execute interrupt instruction 4c ( Check the table below to see End program with return code )
AH yes ax The high
AH | function | Call parameters | Returns the parameter |
00 | Termination of procedure ( Same as INT 20H) | CS= Segment prefixes | |
01 | Keyboard input and echo | AL= The input character | |
02 | display output | DL= The output characters | |
03 | Asynchronous communication input | AL= input data | |
04 | Asynchronous communication output | DL= Output data | |
05 | Printer output | DL= The output characters | |
06 | Direct console I/O | DL=FF( Input ) | AL= The input character |
07 | Keyboard entry ( No echo ) | AL= The input character | |
08 | Keyboard entry ( No echo ) | AL= The input character | |
09 | display string | DS:DX= String address | |
0A | Keyboard input to buffer | DS:DX= Buffer first address | (DS:DX+1)= The number of characters actually entered |
0B | Verify keyboard status | AL=00 There's input | |
0C | Clear the input buffer and | AL= Enter function number | |
0D | Disk reset | Clear file buffer | |
0E | Specify the current default disk drive | DL= Drive letter 0=A,1=B,... | AL= Number of drives |
0F | Open file | DS:DX=FCB The first address | AL=00 File found |
10 | Close file | DS:DX=FCB The first address | AL=00 Directory modification succeeded |
11 | Find the first catalog entry | DS:DX=FCB The first address | AL=00 find |
12 | Find the next catalog entry | DS:DX=FCB The first address | AL=00 find |
13 | Delete file | DS:DX=FCB The first address | AL=00 Delete successful |
14 | Sequential reading | DS:DX=FCB The first address | AL=00 Read successfully |
15 | Sequential writing | DS:DX=FCB The first address | AL=00 Write a successful |
16 | Build documents | DS:DX=FCB The first address | AL=00 Build success |
17 | Change the name of the document | DS:DX=FCB The first address | AL=00 success |
19 | Take the current default disk drive | AL= The default drive letter 0=A,1=B,2=C,... | |
1A | Set up DTA Address | DS:DX=DTA Address | |
1B | Take the default drive FAT Information | AL= Sectors per cluster | |
1C | Take any drive FAT Information | DL= Drive letter | ditto |
21 | random block read | DS:DX=FCB The first address | AL=00 Read successfully |
22 | Write at random | DS:DX=FCB The first address | AL=00 Write a successful |
23 | Determine file size | DS:DX=FCB The first address | AL=00 success ( Fill in the length of the document FCB) |
24 | Set random record number | DS:DX=FCB The first address | |
25 | Set interrupt vector | DS:DX= Interrupt vector | |
26 | Set up block prefixes | DX= New segment prefix | |
27 | Read in random chunks | DS:DX=FCB The first address | AL=00 Read successfully |
28 | Write in random blocks | DS:DX=FCB The first address | AL=00 Write a successful |
29 | Analysis file name | ES:DI=FCB The first address | AL=00 Standard document |
2A | Take the date | CX= year | |
2B | Setting date | CX:DH:DL= year : month : Japan | AL=00 success |
2C | Take the time | CH:CL= when : branch | |
2D | Setup time | CH:CL= when : branch | AL=00 success |
2E | Set the disk auto read / write flag | AL=00 Turn off the sign | |
2F | Take the first address of the disk buffer | ES:BX= Buffer first address | |
30 | take DOS Version number | AH= Issue No ,AL= edition | |
31 | End and stay | AL= Return code | |
33 | Ctrl-Break testing | AL=00 Take the State | DL=00 close Ctrl-Break testing |
35 | Take the interrupt vector | AL= Interrupt type | ES:BX= Interrupt vector |
36 | Get free disk space | DL= Drive letter | success :AX= Sectors per cluster |
38 | Set up / Take country information | DS:DX= First address of information area | BX= Country code ( Prefix code of international telephone ) |
39 | Create subdirectories (MKDIR) | DS:DX=ASCIIZ String address | AX= Error code |
3A | delete a sub dir (RMDIR) | DS:DX=ASCIIZ String address | AX= Error code |
3B | Change the current directory (CHDIR) | DS:DX=ASCIIZ String address | AX= Error code |
3C | create file | DS:DX=ASCIIZ String address | success :AX= Document code |
3D | Open file | DS:DX=ASCIIZ String address | success :AX= Document code |
3E | Close file | BX= Document code | Failure :AX= Error code |
3F | Read a document or device | DS:DX= Data buffer address | Read successfully : |
40 | Write a document or device | DS:DX= Data buffer address | Write a successful : |
41 | Delete file | DS:DX=ASCIIZ String address | success :AX=00 |
42 | Move file pointer | BX= Document code | success :DX:AX= New file pointer location |
43 | Set up / Take file properties | DS:DX=ASCIIZ String address | success :CX= File attribute |
44 | Device file I/O control | BX= Document code | DX= Equipment information |
45 | Copy file code | BX= Document code 1 | success :AX= Document code 2 |
46 | Manual copy of document code | BX= Document code 1 | Failure :AX= Error code |
47 | Take the path name of the current directory | DL= Drive letter | (DS:SI)=ASCIIZ strand |
48 | Allocate memory space | BX= Request memory capacity | success :AX= Allocate memory first |
49 | Free up content space | ES= Memory starting segment address | Failure :AX= Error code |
4A | Adjust allocated storage blocks | ES= Original memory starting address | Failure :BX= Maximum available space |
4B | assembly / Execution procedure | DS:DX=ASCIIZ String address | Failure :AX= Error code |
4C | End with return code | AL= Return code | |
4D | Take the return code | AX= Return code | |
4E | Find the first matching file | DS:DX=ASCIIZ String address | AX= Error code (02,18) |
4F | Find the next matching file | DS:DX=ASCIIZ String address | AX= Error code (18) |
54 | Automatic read / write mark for disk Retrieval | AL= Current flag value | |
56 | Change the name of the document | DS:DX=ASCIIZ strand ( used ) | AX= Error code (03,05,17) |
57 | Set up / Take the document date and time | BX= Document code | DX:CX= Date and time |
58 | take / Set allocation policy code | AL=0 Take the code | success :AX= Strategy code |
59 | Take the extended error code | AX= Extended error code | |
5A | Create temporary documents | CX= File attribute | success :AX= Document code |
5B | Create new document | CX= File attribute | success :AX= Document code |
5C | Control file access | AL=00 The blockade | Failure :AX= Error code |
62 | Take program segment prefix | BX=PSP Address | |
边栏推荐
- Chapter V - Fund professional ethics
- Interviewer: do you understand redis' shared object pool?
- Matlab foundation 04 - detailed analysis of the use and complex application of colon operator ":"
- Global and Chinese medical styrene block copolymer industry prospect research and investment planning proposal report 2022-2028
- Elegant throttling / de buffeting decorator under LAYA
- 2022年金属非金属矿山(小型露天采石场)安全管理人员考试模拟100题及模拟考试
- In depth description of Weibull distribution (1) principle and formula
- Go language learning summary (7) -- Dachang go programming specification summary
- Defect detection, introduction to Halcon case.
- Forecast report on market demand and future prospect of cvtf industry of China's continuously variable transmission oil
猜你喜欢

Argodb 3.2 of star ring technology was officially released to comprehensively upgrade ease of use, performance and security

Zhongchuang patents | China has 18000 necessary patents for 5g standards, respects intellectual property rights and jointly builds a strong intellectual property country

LabVIEW Arduino electronic weighing system (project Part-1)

100 deep learning cases | day 41: speech recognition - pytorch implementation

flowable 工作流
![[project training] verification notes](/img/bd/fa6111d967da6258bc53d6755cc3a2.png)
[project training] verification notes

Low code platform design exploration, how to better empower developers

Vscode - the problem of saving a file and automatically formatting the single quotation mark 'into a double quotation mark'

Learn to crawl steadily 07 - detailed explanation of how to use XPath

手写MapReduce程序详细操作步骤
随机推荐
Uniapp gets the instance of the previous page
Jmeter接口测试之常用断言
The CSV used for JMeter performance test is bullshit
Article 3: Design of multifunctional intelligent trunk following control system | undergraduate graduation project - [defense ppt]
UoE UG2 Inf Course Research
2022年金属非金属矿山(小型露天采石场)安全管理人员考试模拟100题及模拟考试
Some suggestions on writing code to reproduce the paper!
Article 6: Design of multi-functional intelligent trunk following control system | undergraduate graduation design - [Key Technology - positioning technology related data (UWB WiFi Bluetooth)]
Weibull Distribution韦布尔分布的深入详述(1)原理和公式
Argodb 3.2 of star ring technology was officially released to comprehensively upgrade ease of use, performance and security
[project training] wechat official account to obtain user openid
[n32g457] remote monitoring of graffiti cloud based on RT thread and n32g457
How much is the child's critical illness insurance coverage appropriate? Which product is better now
[project training] JWT
UoE UG3 Inf Course Research
Global and Chinese medical styrene block copolymer industry prospect research and investment planning proposal report 2022-2028
Yixin Huachen talks about how to do a good job in customer master data management
SQL exercise summary 3
websocket服务器实战
Inventory: more than 20 typical safety incidents occurred in February, with a loss of nearly $400million