Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/screen.S
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ zproc screen_putchar, .text.screen_putchar
jmp _call_screen
zendproc

zproc screen_putstring, .text.screen_putstring
zproc _screen_putstring, .text.screen_putstring
ldy #SCREEN_PUTSTRING
jmp _call_screen
zendproc
Expand Down
4 changes: 4 additions & 0 deletions lib/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ extern void _screen_setcursor(uint16_t c);
extern uint16_t _screen_getcursor(void);
extern void screen_putchar(char c);
extern void screen_putstring(const char* s);
Comment thread
nick-less marked this conversation as resolved.
Outdated
extern void _screen_putstring(uint16_t s);
extern uint16_t screen_getchar(uint16_t timeout_cs);
extern uint8_t screen_waitchar(void);
extern void screen_scrollup(void);
Expand All @@ -22,6 +23,9 @@ extern void screen_clear_to_eol(void);
extern void screen_setstyle(uint8_t style);
extern void screen_showcursor(uint8_t show);

#define screen_putstring(x) \
_screen_putstring((uint16_t)x)

#define screen_setcursor(x, y) \
_screen_setcursor((x) | ((y)<<8))

Expand Down