Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clock & Timer Program Question
#21
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.
Reply
#22
Quote:This could be a nice new function for RelLib...
Just an ISR increasing by 1 a LONG every 1/1000th of second Big Grin

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.
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#23
Sorry, but I hate Crichton. His books are not good. Best-sellers, just that. But that's just my taste.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#24
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 Smile

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?
Reply
#25
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...
Sad 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
Reply
#26
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
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#27
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.
Reply
#28
inc tics
But add ticks, 1 should work.



To put it into DX:AX


mov eax, tics
mov edx, eax
shr edx, 16
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)