Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!wuarchive!udel!haven!umd5!brianf From: brianf@umd5.umd.edu (Brian Farmer) Newsgroups: comp.windows.ms Subject: __ahincr Keywords: 64k+ data in in-line assembly Message-ID: <6887@umd5.umd.edu> Date: 13 Jul 90 20:53:05 GMT Distribution: usa Organization: University of Maryland, College Park Lines: 20 Has anyone tried to use the predefined variable '__ahincr'. We have a program that works with bitmaps that are > 64k so it needs to update the selector after passing the end of the segment but we can't get __ahincr to work. We are using MSC 6.0 with the 3.0 SDK. The code is written in C and in-line assembly. The definitions we have used are extern int __ahincr; extern int _ahincr; The first definition gives an undefined external on linking. The second compiles and links correctly but on running has a value of zero. The code the actually works with the segments is in-line code. Thanks for any help you might be able to offer. Brian Farmer brianf@umd5.umd.edu