From f3c887173363d3a9f415e0274add3ca1419433b7 Mon Sep 17 00:00:00 2001 From: IanSB Date: Wed, 20 Mar 2019 16:12:11 +0000 Subject: [PATCH] Update comments in capture loops --- src/capture_line_atom_4bpp.S | 6 ++++-- src/capture_line_atom_8bpp.S | 6 ++++-- src/capture_line_default_4bpp_8bpp.S | 6 ++++-- src/capture_line_default_sixbits_4bpp_8bpp.S | 6 ++++-- src/capture_line_double_4bpp_8bpp.S | 6 ++++-- src/capture_line_fast_4bpp_8bpp.S | 6 ++++-- src/capture_line_fast_sixbits_4bpp_8bpp.S | 6 ++++-- src/capture_line_half_4bpp_8bpp.S | 6 ++++-- src/capture_line_inband_4bpp_8bpp.S | 2 +- src/capture_line_mode7_4bpp.S | 2 +- src/capture_line_oddeven_4bpp_8bpp.S | 6 ++++-- src/rgb_to_fb.S | 2 +- 12 files changed, 39 insertions(+), 21 deletions(-) diff --git a/src/capture_line_atom_4bpp.S b/src/capture_line_atom_4bpp.S index ce4862c6..1b0e846b 100644 --- a/src/capture_line_atom_4bpp.S +++ b/src/capture_line_atom_4bpp.S @@ -9,12 +9,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_atom_8bpp.S b/src/capture_line_atom_8bpp.S index 4cf0cdc9..81495a1d 100644 --- a/src/capture_line_atom_8bpp.S +++ b/src/capture_line_atom_8bpp.S @@ -19,12 +19,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_default_4bpp_8bpp.S b/src/capture_line_default_4bpp_8bpp.S index c599c8f7..ae29efab 100644 --- a/src/capture_line_default_4bpp_8bpp.S +++ b/src/capture_line_default_4bpp_8bpp.S @@ -10,12 +10,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_default_sixbits_4bpp_8bpp.S b/src/capture_line_default_sixbits_4bpp_8bpp.S index d18c0d5b..adb59b9c 100644 --- a/src/capture_line_default_sixbits_4bpp_8bpp.S +++ b/src/capture_line_default_sixbits_4bpp_8bpp.S @@ -10,12 +10,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_double_4bpp_8bpp.S b/src/capture_line_double_4bpp_8bpp.S index 5d6c2c0c..37120f51 100644 --- a/src/capture_line_double_4bpp_8bpp.S +++ b/src/capture_line_double_4bpp_8bpp.S @@ -10,12 +10,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_fast_4bpp_8bpp.S b/src/capture_line_fast_4bpp_8bpp.S index c870bd0d..6035019b 100644 --- a/src/capture_line_fast_4bpp_8bpp.S +++ b/src/capture_line_fast_4bpp_8bpp.S @@ -10,12 +10,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_fast_sixbits_4bpp_8bpp.S b/src/capture_line_fast_sixbits_4bpp_8bpp.S index 2b59dbdc..dd42d472 100644 --- a/src/capture_line_fast_sixbits_4bpp_8bpp.S +++ b/src/capture_line_fast_sixbits_4bpp_8bpp.S @@ -10,12 +10,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_half_4bpp_8bpp.S b/src/capture_line_half_4bpp_8bpp.S index 1355b3bc..a40268bd 100644 --- a/src/capture_line_half_4bpp_8bpp.S +++ b/src/capture_line_half_4bpp_8bpp.S @@ -11,12 +11,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/capture_line_inband_4bpp_8bpp.S b/src/capture_line_inband_4bpp_8bpp.S index b8abcee6..1b203dbe 100644 --- a/src/capture_line_inband_4bpp_8bpp.S +++ b/src/capture_line_inband_4bpp_8bpp.S @@ -19,7 +19,7 @@ // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = line number count down to 0 +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 // r7 = number of psyncs to skip // r8 = frame buffer height (=param_fb_height) diff --git a/src/capture_line_mode7_4bpp.S b/src/capture_line_mode7_4bpp.S index 03371642..cb1c7847 100644 --- a/src/capture_line_mode7_4bpp.S +++ b/src/capture_line_mode7_4bpp.S @@ -13,7 +13,7 @@ // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = line number count down to 0 +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 // r7 = number of psyncs to skip // r8 = frame buffer height (=param_fb_height) diff --git a/src/capture_line_oddeven_4bpp_8bpp.S b/src/capture_line_oddeven_4bpp_8bpp.S index ab982e4b..6eeb0d83 100644 --- a/src/capture_line_oddeven_4bpp_8bpp.S +++ b/src/capture_line_oddeven_4bpp_8bpp.S @@ -10,12 +10,14 @@ // The capture line function is provided the following: // r0 = pointer to current line in frame buffer -// r1 = number of 8-pixel blocks to capture (=param_chars_per_line) +// r1 = number of complete psync cycles to capture (=param_chars_per_line) // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant -// r5 = frame buffer height (=param_fb_height) +// r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 +// r7 = number of psyncs to skip +// r8 = frame buffer height (=param_fb_height) // // All registers are available as scratch registers (i.e. nothing needs to be preserved) diff --git a/src/rgb_to_fb.S b/src/rgb_to_fb.S index 0bd9829a..ecf4cde2 100644 --- a/src/rgb_to_fb.S +++ b/src/rgb_to_fb.S @@ -380,7 +380,7 @@ process_line_loop: // r2 = frame buffer line pitch in bytes (=param_fb_pitch) // r3 = flags register // r4 = GPLEV0 constant - // r5 = line number count down to 0 + // r5 = line number count down to 0 (initial value =param_nlines) // r6 = scan line count modulo 10 // r7 = number of psyncs to skip // r8 = frame buffer height (=param_fb_height)