diff options
author | Mike Stirling <opensource@mikestirling.co.uk> | 2011-08-04 22:24:36 +0100 |
---|---|---|
committer | Mike Stirling <opensource@mikestirling.co.uk> | 2011-08-04 22:24:36 +0100 |
commit | e3e37956449ece7134b0386a3f67c304a159373b (patch) | |
tree | e4a70da58cbea8feeacde63b71ffd0123b6f719e /mc6845.vhd | |
parent | e28e9f3ac11db036e1b3c71493ecbd14a8d59eac (diff) | |
download | fpga-bbc-e3e37956449ece7134b0386a3f67c304a159373b.tar.gz fpga-bbc-e3e37956449ece7134b0386a3f67c304a159373b.tar.bz2 fpga-bbc-e3e37956449ece7134b0386a3f67c304a159373b.zip |
Added cursor support and teletext pass-through to video ULA. Fixed a couple of cursor bugs in the CRTC.
Diffstat (limited to 'mc6845.vhd')
-rw-r--r-- | mc6845.vhd | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -395,7 +395,11 @@ begin cursor_i <= '0';
cursor_line := '0';
elsif rising_edge(CLOCK) and CLKEN = '1' then
- if ma_i = r14_cursor_h & r15_cursor_l then
+ if h_display = '1' and v_display = '1' and ma_i = r14_cursor_h & r15_cursor_l then
+ if line_counter = 0 then
+ -- Suppress wrap around if last line is > max scan line
+ cursor_line := '0';
+ end if;
if line_counter = r10_cursor_start then
-- First cursor scanline
cursor_line := '1';
|