home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / ibm / pc / hardware / 34637 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  3.8 KB

  1. Xref: sparky comp.sys.ibm.pc.hardware:34637 comp.sys.ibm.pc.misc:16295
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!wupost!emory!wa4mei!nanovx!mycro!scott
  3. From: scott@mycro.UUCP (Scott C. Sadow)
  4. Newsgroups: comp.sys.ibm.pc.hardware,comp.sys.ibm.pc.misc
  5. Subject: Re: Memory addressing in protected mode (specifically address pin A20)
  6. Message-ID: <1993Jan02.123332@mycro.UUCP>
  7. Date: Sat, 02 Jan 93 12:33:32 EST
  8. References: <1992Dec29.193519.13638@verdix.com> 
  9. Lines: 70
  10.  
  11. In article <1992Dec29.193519.13638@verdix.com>, drew@verdix.com (Drew Johnson) writes:
  12. >I am trying to run some code on a 'bare' IBM AT board, ie no DOS.  I have
  13. >everything working fine except for one problem:  I cannot get the board
  14. >to recognize address bit 20.  If I access memory at address 0x100000, it
  15. >is the same memory as at address 0x0.  I am switching the board into protected
  16. >mode 'manually', not by using the BIOS function.  Does anybody out there
  17. >know what I have to do to get a PC board to use bit 20 in protected mode?
  18. >On a PS/2, there is a configuration I/O address that you have to write to
  19. >to turn on gate A20 addressing.  I can find no equivalent for the AT.  
  20. >
  21. >Any help would be greatly appreciated.
  22. >
  23. >Drew Johnson
  24. >drew@verdix.com
  25.  
  26.  
  27.    I had the same problem. What I found is that there is a line on the
  28. keyboard that enables/disables A20. I started with the following file from
  29. Simtel: 
  30.    PD1:<MSDOS.SYSUTL>A20TEST.ZIP 4728 901222
  31.       A20 address line enable/disable/status display
  32.  
  33.    From that program, I wrote a simple test program that queries, enables,
  34. and disables the A20 line. (I use this code to enter & exit 80386
  35. protected mode)
  36.  
  37.    Here is a uuencoded zip file with A20.ASM and A20.EXE:
  38.  
  39. begin 400 a20.zip
  40.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8::9H!+/!A$HU1*_BG56I%VZ1A2,6]:!<I'2J02#J(,-*A
  57. M$D!]4Z$:)A8YA?&L8H''1;2-G,'C(IJ&B91% 89L@D7(@AJ%DX!FRU ^G;AE
  58. M5 &0F2U_CO++^5B=5L^I5'1?6S:OV#<7JLF@J/64PMYL?+?E-$S@Z'D39^Z[
  59. M+ENR;D_2@6:F O<F@F,1> WD3>!!L'D?0O$ET[=OX= 9-_,;A!P8%W:=#.+F
  60. MNLZF@&?Z]"D4*X0QE0Y3)CBO,>)9)V@R-TN-<#'#-E!+ P0*    !@!$92(:
  61. ME\5-*(8!  #D!P  !P   $$R,"Y%6$4/ !(#)!4V)S@Y:GM,G6X?"08!$S3E
  62. M]I;WFVH%#Y# L8,8]O__'0)@9L'N8]@# MP/4ZV<, +^+QCPKH!] B*>+DC0
  63. M@@'R+$IW(L^R=!_RS$IW(<^\= _.!(Z^+,#U!G$5WNB["(\3H.Z? .L.U T5
  64. M(&/DCK'33M@\)&Z 3(@/*A,FR+1S019U&E0HTZ)$&RHD 4T233HE&H_JT>!5
  65. MJ[XV=\?>?4,$.,/XX_QS Q0X_Y37CP\(U.O7@Q^S#E\(O*Y(]$BZ?BCLZ.;)
  66. MHC/;=<+N;AXL>AO(QX3]+]I;((]R/4CT)HP/$<X[((\1]K=PIX#\@W"^ #FT
  67. M!.F'6?UPJ%%G)B=/EJ1 \/JS8AWV:8#_^T3 _WU<P/\% P#<+Q7@0 ;'+A#@
  68. MA6@RP#<T> /OD *.!BH!?-8]($3^_Y]G+Z#.J@V:-,#,F&;1',$[1[#/_PU[
  69. M@G>NX)G^E\S>G<$S$7R#G$4^H"<AL),.J"91X$4R..83KD8?>"<7'),K[HE#
  70. MZ"Z#3FURK !02P$""P *    !@ ,:DH80^!<F'X#  ###   !P         !
  71. M "          03(P+D%335!+ 0(+  H    & $1E(AJ7Q4THA@$  .0'   '
  72. M            (    *,#  !!,C N15A%4$L%!@     "  ( :@   $X%    
  73. !    
  74.  
  75. end
  76.  
  77.  
  78.    Scott C. Sadow
  79.    scott@mycro.UUCP
  80.    ...gatech!nanovx!mycro!scott
  81.