Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.misc > #386
| From | Leo <ttdhead@gmail.com> |
|---|---|
| Newsgroups | comp.lang.basic.misc |
| Subject | Re: Help with calling Interrupts in MS BASIC PDS 7.1 |
| Date | 2013-04-03 09:39 +1100 |
| Organization | A noiseless patient Spider |
| Message-ID | <kjfmd0$k9e$1@dont-email.me> (permalink) |
| References | (6 earlier) <5156ff4a$0$6879$e4fe514c@news2.news.xs4all.nl> <kjedri$tv6$1@dont-email.me> <515ae789$0$6923$e4fe514c@news2.news.xs4all.nl> <kjetmc$g9v$1@dont-email.me> <515b504c$0$6918$e4fe514c@news2.news.xs4all.nl> |
R.Wieser has brought this to us : > Leo, > >> 'Don't do anything as I am not interested in XMS > > That might be, but if you do it like that the 'Major' and 'Minor' variables > will simply not be altered from what the select case. > > And that means you could get *any* result, including valid ones. :-o > > Most likely though those two variables will simply stay Zero, falsely > indicating a 'CASE &H0' result. :-\ > > In other words: You *must* set a result there. Either set 'Major' and > 'Minor' to some value indicating an error of sorts (both to 255 ?) or clear > an error-flag befor the 'select case' and set it in there (and ofcourse test > for it afterwards :-) ). > > Regards, > Rudy Wieser > > > -- Origional message > Leo <ttdhead@gmail.com> schreef in berichtnieuws > kjetmc$g9v$1@dont-email.me... > <snip> >> The below code was written in my newsreader so may not be exact and >> plus I can't test for Windows/386 2.x since I don't have it. >> So something like: >> SELECT CASE outregs.ax AND 255 >> CASE &H80 >> 'Don't do anything as I am not interested in XMS >> CASE &H0 >> Major = 0 >> Minor = 0 >> CASE &HFF, &H1 >> Major = 2 >> Minor = 0 >> CASE ELSE >> Major = outregs.ax AND 255 >> Minor = outregs.ax / 256 >> END SELECT >> >>> >>> Good ! :-) >>> >>>> but wasn't completely understanding it. >>> >>> You now do? If not, don't hesitate to ask for clarification. >> I understand it alot better now. >> >>> Regards, >>> Rudy Wieser Thanks for all your help. I went with setting them to 255. -- ClassicVB Users Regroup! comp.lang.basic.visual.misc Free usenet access at http://www.eternal-september.org
Back to comp.lang.basic.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-03-29 22:10 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 "R.Wieser" <address@not.available> - 2013-03-29 15:00 +0100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-03-30 03:10 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-03-30 03:14 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 "R.Wieser" <address@not.available> - 2013-03-30 03:32 +0100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-03-31 00:28 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 "R.Wieser" <address@not.available> - 2013-03-30 16:06 +0100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-04-02 22:07 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 "R.Wieser" <address@not.available> - 2013-04-02 16:14 +0200
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-04-03 02:37 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 "R.Wieser" <address@not.available> - 2013-04-02 23:41 +0200
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-04-03 09:39 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 "R.Wieser" <address@not.available> - 2013-04-03 22:50 +0200
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Karl E. Peterson <karl@exmvps.org> - 2013-03-29 10:23 -0700
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-04-02 22:05 +1100
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Karl E. Peterson <karl@exmvps.org> - 2013-04-02 09:39 -0700
Re: Help with calling Interrupts in MS BASIC PDS 7.1 Leo <ttdhead@gmail.com> - 2013-04-03 09:34 +1100
csiph-web