home *** CD-ROM | disk | FTP | other *** search
File List | 1986-12-21 | 3.0 KB | 65 lines |
- Microsoft (R) Macro Assembler Version 4.00 12/21/86 10:35:08
- Page 1-1
-
-
- ; C Usage: get_int (n, *array [ 2 ])
- ; Returns: array [0] = interrupt segment
- ; array [1] = interrupt offset
-
- 0000 _TEXT SEGMENT BYTE PUBLIC 'CODE'
- ASSUME CS:_TEXT
- PUBLIC _get_int
- 0000 _get_int PROC NEAR
- ;
- 0000 55 push bp
- ; save bp register
- 0001 8B EC mov bp, sp
- ; make the stack pointer
- ; addressable
- 0003 B4 35 mov ah, 35h
- ; load in the get interrupt
- ; function
- 0005 8A 46 04 mov al, [bp + 4]
- ; get the interrupt number off
- ; the stack
- 0008 CD 21 int 21h
- ; call the dos interrupt
- 000A 8B 6E 06 mov bp, [bp + 6]
- ; make the array addressable
- 000D 8C 46 00 mov [bp + 0], es
- ; save interrupt segment
- 0010 89 5E 02 mov [bp + 2], bx
- ; save interrupt offset
- 0013 5D pop bp
- ; restore bp
- 0014 C3 ret
- ;
- _get_int ENDP
- 0015 _TEXT ENDS
- END
- Microsoft (R) Macro Assembler Version 4.00 12/21/86 10:35:08
- Symbols-1
-
-
- Segments and Groups:
-
- N a m e Size Align Combine Class
-
- _TEXT . . . . . . . . . . . . . 0015 BYTE PUBLIC 'CODE'
-
- Symbols:
-
- N a m e Type Value Attr
-
- _GET_INT . . . . . . . . . . . . N PROC 0000 _TEXT Global Length = 0015
-
-
- 35 Source Lines
- 35 Total Lines
- 24 Symbols
-
- 50376 Bytes symbol space free
-
- 0 Warning Errors
- 0 Severe Errors
-