home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9268 < prev    next >
Encoding:
Text File  |  1992-09-11  |  2.0 KB  |  63 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!tangram.informatik.uni-kl.de!d_hopp
  3. From: d_hopp@tangram.informatik.uni-kl.de (Daniel Hopp)
  4. Subject: Help! Problems with EMM386.EXE. 
  5. Message-ID: <1992Sep11.123421.13832@rhrk.uni-kl.de>
  6. Keywords: emm386 
  7. Sender: news@rhrk.uni-kl.de
  8. Reply-To: d_hopp@tangram.informatik.uni-kl.de (Daniel Hopp)
  9. Organization: University of Kaiserslautern (Germany)
  10. Date: Fri, 11 Sep 1992 12:34:21 GMT
  11. Lines: 50
  12.  
  13. Hi,
  14.  
  15. I've got a problem switching the expanded memory manager EMM386.EXE, using
  16. the functions documentated in Ralf Brown's interrupt list. Although switching
  17. to modes OFF and AUTO works fine, I COULDN'T SWITCH IT ON !!!!!
  18.  
  19. Here's the excerpt from the list:
  20.  
  21. >        INT 67 - Microsoft EMM386.EXE v4.20+ - INSTALLATION CHECK
  22. >                AX = FFA5h
  23. >        Return: AX = 845Ah if loaded
  24. >                    BX:CX -> API entry point
  25. >
  26. >        Call API entry point with:
  27. >                AH = 00h get memory manager's status
  28. >                    Return: AH = status
  29. >                                bit 0: not active (OFF)
  30. >                                bit 1: in "Auto" mode
  31. >                AH = 01h set memory manager's state
  32. >                    AL = new state (00h ON, 01h OFF, 02h AUTO)
  33. >
  34.  
  35. This is the assembler program I use:
  36.  
  37.          QUEST     dw 0ffa5h
  38.          INSTALLED dw 0845ah
  39.          API_POINT dd ?
  40.  
  41. MAIN:    mov  ax,QUEST                  ; test installation
  42.          int  67h
  43.          cmp  ax,INSTALLED              ; equal if installed
  44.          jne  EXIT
  45.  
  46.          mov  word ptr API_POINT,cx     ; entry point in BX:CX
  47.          mov  word ptr API_POINT[2],bx
  48.  
  49. ENABLE:  mov  ah,01h                    ; set state
  50.          mov  al,00h                    ; ON - does not work !
  51.          mov  si,offset API_POINT
  52.          call dword ptr cs:[si]
  53.  
  54.  
  55. As this thing is of great importance for me, it would be nice if somebody
  56. could help me here. Thanx!
  57.  
  58.  
  59.                                        Daniel Hopp
  60.  
  61.  
  62.  
  63.