home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7638 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: Norway.EU.net!usenet
  2. From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Start and end address of memory
  5. Date: 19 Apr 1996 18:49:54 GMT
  6. Organization: EUnet Norway
  7. Message-ID: <923.6682T1203T241@login.eunet.no>
  8. NNTP-Posting-Host: pc9.asker-pm2-1.eunet.no
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  10.  
  11.  
  12. This source:
  13.  
  14. printf("ln_Name = %s\n",SysBase->MemList.lh_TailPred->ln_Name);
  15. printf("mh_Lower = $%x\n",((struct MemHeader*)SysBase->MemList.lh_TailPred)-
  16. >mh_Lower);
  17. printf("mh_Upper = $%x\n",((struct MemHeader*)SysBase->MemList.lh_TailPred)-
  18. >mh_Upper);
  19.  
  20. Outputs:
  21.  
  22. ln_Name = chip memory
  23. mh_Lower = $3020
  24. mh_Upper = $200000
  25.  
  26. Now I have upper and lower bound of chip memory, but I want the start and stop
  27. address. (meu_Addr and me_Length)
  28.  
  29. Well.. Where are they. I cant find them anywhere in the SysBase->MemList.
  30. Is the name a joke?
  31.  
  32. -----------------------------------------------------------------------------
  33. ..    Patrick Hanevold - VR developer - patrick.hanevold@login.eunet.no   ///
  34. ....  Amiga and official Be developer - Visual Technologies           \\\///
  35. ......               wATcH oUT fOr tHE cApSlOcK vIRuS!                 \X//
  36. -----------------------------------------------------------------------------
  37.  
  38.