Posts: 979
Threads: 27
Joined: Aug 2001
It'd probably be nicer as a standalone qlb. Then rel could package it, like FFix. I mean, what if you're using UGL?
I might be able to try this tonight. I ironically have another DSP lab due, the assignment after the one I was bitching about in a previous post here, but I should have the rest of the day off.
Posts: 3,288
Threads: 167
Joined: Nov 2001
Quote:This could be a nice new function for RelLib...
Just an ISR increasing by 1 a LONG every 1/1000th of second
Can't code. Busy at night with the "vigil". The only thing I can do is read.
Just finished reading:
Congo by Michael Crichton
and Chilhood's End by Arthur C. Clarke.
All books by Crichton are must reads. The Sphere is prolly the best of them. Better than J park and Lost world.
Posts: 6,419
Threads: 74
Joined: Mar 2002
Sorry, but I hate Crichton. His books are not good. Best-sellers, just that. But that's just my taste.
Posts: 979
Threads: 27
Joined: Aug 2001
I saw the movie "Sphere". It was the most boring god-awful piece of crap ever produced by Hollywood. Though "Timeline", another Crichton movie, is definately battling for the spot. "The 13th Warrior" is resting at a comfortable third
The thing is, though, is that as books all three were pretty good (Although 13th Warrior is the only one I've read... the rest came from character witnesses). Hollywood just loves to crapify books (anybody up for some "Battlefield Earth"?)
EDIT: Okay, I've hooked up an interrupt handler that basically resets the refresh rate 1024s^-1 every time 70h is called, and add 1 to a double word defined in DATA, which I
think is what I need to do. However, I'm not sure how to get that tick count back to QB, as I never really got that far in ASM programming. I get all sorts of "operand type" errors if I send it back. How do you return something bigger than a register to qb?
Posts: 83
Threads: 11
Joined: Apr 2004
Quote:Unfortunately, since you actually have to hook int 70h, you'll have to use assembly or C. You can't just call the interrupt from QB. So this is probably not a good solution for you unless you have experience with that sort of thing...
Gee, and I thought I was finally going to get somewhere with this. Oh well, I guess I'll skip this project I was working on and move on to something else. At least I'll learn something more in the process. Just too bad I can't find the kind of timing routine I was looking for.
That's all I really needed too but perhaps I'll find something else in return. No point in giving it all up. I'm moving onto side-scrolling platform games next. Probably will start learning and understanding the concepts used behind the Commander Keen games. Preferably the later installments such as, "Goodbye Galaxy". At least I can work on the basics of this for now but there is no way in the world that I could program the whole game in QBasic on my own. Heck, I wouldn't even try to. :normal:
I'm your Huckleberry; that's just my game."
Doc Holiday, TOMBSTONE
Posts: 3,288
Threads: 167
Joined: Nov 2001
Quote:Sorry, but I hate Crichton. His books are not good. Best-sellers, just that. But that's just my taste.
I dunno about that but his books are very good. Never liked the movie "The sphere" but read the book and tell me if his books still sucks.
One way to kill a good book is to watch its movie.
Joe, what value woud you like to return?
byte =al
integer = ax
long =dx:ax
Posts: 979
Threads: 27
Joined: Aug 2001
Yeah, but lets say I have a double word in assembly:
.DATA
ticks DD 0
How do I increment this and break it down into ax and dx so it can be returned to qb? I can't seem to make it play nice with my registers. And to be honest, I'm not even sure if add ticks, 1 is allowed.
Posts: 3,288
Threads: 167
Joined: Nov 2001
inc tics
But add ticks, 1 should work.
To put it into DX:AX
mov eax, tics
mov edx, eax
shr edx, 16