question about color and HBlankInt
Moderators: BigEvilCorporation, Mask of Destiny
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
I still have some questions did not find out
I set twice interval in NMI(Vint) and IRQ(Hint),The settings in IRQ do not take effect immediately.
Code: Select all
NMI: MOVEM.L d0-a7,-(sp)
CMP.W #$ff,m_IRQFlag
BNE ?OnlyMusic
MOVE.W #$8A30,$C00004 ;Set the interval
MOVE.W #$8014,$C00004 ;Enable IRQ
Code: Select all
IRQ:
MOVEM.L d0-a7,-(sp)
MOVE.W #$8A01,$C00004 ;Set new irq Cycle
Code: Select all
NMI #$8A30--->$C00004
......
NMIEND
......
SOME TIME
IRQ #$8A01--->$C00004 ;here changes Interval =0x01
......
IRQEND
Interval--0x30 ;why wait 0x30? I think that will wait 0x01
IRQ1 #$8A01--->$C00004
......
IRQ1END
Interval--0x01
IRQ2
......
NextNMIBegin
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 2442
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Interrupt count is only updated when interrupt happens, not when the count register is written to.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 158
- Joined: Sat May 12, 2012 7:37 pm
- Location: Ukraine
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 158
- Joined: Sat May 12, 2012 7:37 pm
- Location: Ukraine
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 158
- Joined: Sat May 12, 2012 7:37 pm
- Location: Ukraine
-
- Very interested
- Posts: 2442
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
That screenshot is from real hardware, in 50Hz and at 240 line resolution. This does not work in 60Hz.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 158
- Joined: Sat May 12, 2012 7:37 pm
- Location: Ukraine
-
- Very interested
- Posts: 2442
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
240 line mode is not supported in 60Hz, the VDP will not generate VBlank and VBL interrupt runs in 30Hz. Horizontal ints probably don't work because of it...
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 158
- Joined: Sat May 12, 2012 7:37 pm
- Location: Ukraine
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
It can work in NTSC and PAL.But the HINT time is shorter in NTSC. if you want to get the better effect,we need to adjust the code. For example,greatkreator wrote:what is reason it doesn't work in 60 hz?
Code: Select all
MOVE.W #0x8A02, 0xC00004 ;0x8A01-->0x8A02
Code: Select all
move.w #0x00f7,0xA1630C |set to NTSC
CheckROMInfo:
move.w #0x5350,0xa14480 |raise cpu speed, 0xffff to close,0x5350 for raise
move.w #0xBf,0xa14484 |Double cpu speed
-
- Very interested
- Posts: 158
- Joined: Sat May 12, 2012 7:37 pm
- Location: Ukraine