term.inc (1033B)
1 ;;; -*- asm -*- 2 3 ;;; Copyright 2021 Gerd Beuster (gerd@frombelow.net). This is free 4 ;;; software under the GNU GPL v3 license or any later version. See 5 ;;; COPYING in the root directory for details. 6 7 ;;; ----------------------------------- 8 ;;; 9 ;;; ANSI Terminal 10 ;;; 11 ;;; ----------------------------------- 12 13 .namespace term 14 15 SET_COLOR .macro color 16 lda #color 17 jsr term.set_color 18 .endm 19 20 SET_BACKGROUND_COLOR .macro color 21 lda #color 22 jsr term.set_background_color 23 .endm 24 25 SET_TEXT .macro attribute 26 lda #\attribute 27 jsr term.set_text 28 .endm 29 30 CURSOR_UP .macro steps 31 lda #\steps 32 jsr term.cursor_up 33 .endm 34 35 CURSOR_DOWN .macro steps 36 lda #\steps 37 jsr term.cursor_down 38 .endm 39 40 CURSOR_FORWARD .macro steps 41 lda #\steps 42 jsr term.cursor_forward 43 .endm 44 45 CURSOR_BACK .macro steps 46 lda #\steps 47 jsr term.cursor_back 48 .endm 49 50 SCROLL_UP .macro steps 51 lda #\steps 52 jsr term.scroll_up 53 .endm 54 55 SCROLL_DOWN .macro steps 56 lda #\steps 57 jsr term.scroll_DOWN 58 .endm 59 60 SET_CURSOR .macro x, y 61 lda \y 62 ldx \x 63 jsr term.set_cursor 64 .endm 65 66 .endn