Article View: bit.listserv.coco
Article #373Re: Flickery graphics
From: R Perea
Date: Thu, 11 Nov 2004 03:09
Date: Thu, 11 Nov 2004 03:09
37 lines
2160 bytes
2160 bytes
Took the liberty of crossposting your initial message, here's one reply: > Crossposting from comp.sys.m6809 and comp.sys.tandy: > > - - - - - - - - - - - - - > > Hi, > > Does anyone know how to perform a vsync in 6809 assembly language when > programming animation on the Dragon/Tandy to prevent flickering graphics? > I'm sure it's something to do with checking an interrupt, but I don't know > how. > > Thanks, > Collywobbles > > - - - - - - - - - - - - - - - > I'm going to assume that you can write a program but just don't know what data to look for. There is a flag in bit7 of $FF03 which is the field sync interrupt flag. It is set when a Vsync occurs. The flag is cleared by reading $FF02. This can be used on any model Coco. There is also at bit3 in $FF92 (IRQ) and $FF93 (FIRQ) which will enable interrupts via the GIME on a Coco3. You would need to enable the Coco3 interrupts at bit5 (IRQ) or bit4 (FIRQ) in %FF90 for the Coco3 interrupts to be active. Now you read either $FF92 or $FF93 to clear the interrupt and check the bits read to see from where the interrupt came. Depending on the use of the program you intend writing, you will either monitor these flags in a tight loop until a flag sets with orcc #$50 (interrupts off to the cpu) or create an interrupt routine which will check on which flags were set as the interrupts occur and the cpu vectors to the interrupt routine.
Technical Details
Message-ID:
<2vg3c5F2jvgllU1@uni-berlin.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<cmudt10150m@enews1.newsguy.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 110568,a0197f78a035165a X-Google-Attributes: gid110568,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "R Perea" <os9dude@hotmail.com> Newsgroups: bit.listserv.coco Subject: Re: Flickery graphics Date: Wed, 10 Nov 2004 22:09:50 -0500 Lines: 39 Message-ID: <2vg3c5F2jvgllU1@uni-berlin.de> References: <cmudt10150m@enews1.newsguy.com> X-Trace: news.uni-berlin.de bBbIYLHWy7YqLgCpYckcFAC9PoIQL08rvJXpxPU1lXTO0S4cUx X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original