Skip to content

Commit

Permalink
printing: Add shortcut to lcd4setcur
Browse files Browse the repository at this point in the history
The shortcut is called 'set_cursor'.
  • Loading branch information
Makman2 committed Sep 17, 2016
1 parent dc4d3ff commit debc37f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LCM/printing.asm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ reset_cursor:
rjmp lcd4reset_cursor


; Sets the display cursor (position has to be passed via r16).
;
; The display has two lines with 16 chars each, so the range is from
; 0x00-0x1F. Values outside of this range are ignored.
set_cursor:
rjmp lcd4setcur


; Prints a value (passed via r16) in binary form to display.
print_binary_value:
push r16
Expand Down

0 comments on commit debc37f

Please sign in to comment.