1.1 --- a/ula.py Wed Jun 22 01:04:11 2016 +0200
1.2 +++ b/ula.py Wed Jun 22 15:49:54 2016 +0200
1.3 @@ -410,26 +410,6 @@
1.4
1.5 self.ram.column_select(self.ram_address)
1.6
1.7 - def negedge_pixel(self):
1.8 -
1.9 - "Pixel production."
1.10 -
1.11 - # For pixels within the frame, obtain and output the value.
1.12 -
1.13 - if self.write_pixels():
1.14 - self.output_colour_value()
1.15 -
1.16 - # Scale pixels horizontally, only accessing the next pixel value
1.17 - # after the required number of scan positions.
1.18 -
1.19 - if self.next_pixel():
1.20 - self.next_pixel_value()
1.21 -
1.22 - # Detect spacing between character rows.
1.23 -
1.24 - else:
1.25 - self.video.colour = BLANK
1.26 -
1.27 def negedge(self):
1.28
1.29 """
1.30 @@ -438,6 +418,7 @@
1.31
1.32 self.negedge_video()
1.33 self.negedge_ram()
1.34 + self.negedge_state()
1.35 self.negedge_pixel()
1.36
1.37 def negedge_video(self):
1.38 @@ -539,11 +520,33 @@
1.39 if self.access_ram():
1.40 self.have_pixels = 1
1.41
1.42 - # Start a new cycle.
1.43 + def negedge_state(self):
1.44 +
1.45 + "Start a new cycle."
1.46
1.47 self.cycle = rotate(self.cycle, 1)
1.48 self.x += 1
1.49
1.50 + def negedge_pixel(self):
1.51 +
1.52 + "Pixel production."
1.53 +
1.54 + # For pixels within the frame, obtain and output the value.
1.55 +
1.56 + if self.write_pixels():
1.57 + self.output_colour_value()
1.58 +
1.59 + # Scale pixels horizontally, only accessing the next pixel value
1.60 + # after the required number of scan positions.
1.61 +
1.62 + if self.next_pixel():
1.63 + self.next_pixel_value()
1.64 +
1.65 + # Detect spacing between character rows.
1.66 +
1.67 + else:
1.68 + self.video.colour = BLANK
1.69 +
1.70 def output_colour_value(self):
1.71
1.72 """