Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cursor_or_display_shift instruction #7

Closed
arsdever opened this issue Oct 22, 2021 · 0 comments
Closed

Implement cursor_or_display_shift instruction #7

arsdever opened this issue Oct 22, 2021 · 0 comments
Labels
subtask A smaller task to do. Usually is a part of a tas.

Comments

@arsdever
Copy link
Owner

From HD44780U documentation

Cursor or Display Shift

Cursor or display shift shifts the cursor position or display to the right or left without writing or reading
display data (Table 7). This function is used to correct or search the display. In a 2-line display, the cursor
moves to the second line when it passes the 40th digit of the first line. Note that the first and second line
displays will shift at the same time.
When the displayed data is shifted repeatedly each line moves only horizontally. The second line display
does not shift into the first line position.
The address counter (AC) contents will not change if the only action performed is a display shift.

Table 7

S/C R/L Details
0 0 Shifts the cursor position to the left. (AC is decremented by one.)
0 1 Shifts the cursor position to the right. (AC is incremented by one.)
1 0 Shifts the entire display to the left. The cursor follows the display shift.
1 1 Shifts the entire display to the right. The cursor follows the display shift.
@arsdever arsdever added the subtask A smaller task to do. Usually is a part of a tas. label Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subtask A smaller task to do. Usually is a part of a tas.
Projects
None yet
Development

No branches or pull requests

1 participant