Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Some background Reply to this message
Posted byRiff
Posted on11/29/03 04:01 AM



Its a different story when running in virtual mode. I'm not sure how consistent the various flavors of Windows are going to be, but you're essentially going to have to program the 8254 to run at 10 Mhz, set the counter to reset/reload mode with an appropriate value to trigger an interrupt every millisecond and then use an interrupt handler to do your animation control. The usage should be fairly obvious if you are doing time-based animation

I don't recall which vectors are used by the 8254 in the PC. All you need to do is store your interrupt handler address into the table when the program begins and restore the old value when the program exits. There is a BIOS handler which will do this.

Rif> This being my first semester with assembly I couldn't honestly say I know how to
> do either of those things. What I'm writing is in 16 bit real addressing mode
> written for use with Tasm. I just read about 3 billion things on the 8253 PIT


-
Entire Thread
Subject  Posted byPosted On
*Just a matter of time...Assembly fun cont'd  Snowball 211/29/03 02:46 AM
.*Re: Just a matter of time...Assembly fun cont'd  Riff11/29/03 03:15 AM
..*Some background  Snowball 211/29/03 03:40 AM
....Re: Some background  Riff11/29/03 04:01 AM
....*Alright I gotta have you be a little more descriptive here  Snowball 211/29/03 01:39 PM
.....*Re: Alright I gotta have you be a little more descriptive here  Bart T.11/29/03 03:05 PM
......*Re: Alright I gotta have you be a little more descriptive here  finaldave12/02/03 06:36 AM
.......*Re: Alright I gotta have you be a little more descriptive here  Bart T.12/02/03 11:34 AM
........*Re: Alright I gotta have you be a little more descriptive here  finaldave12/03/03 08:04 AM
.........*Re: Alright I gotta have you be a little more descriptive here  Bart T.12/03/03 11:14 AM
..........*Re: Alright I gotta have you be a little more descriptive here  smf12/04/03 06:02 AM
....*Re: Some background  abcdef11/29/03 07:27 AM