Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/aa_wordprocessor.asm @ 838:2750099bf5bb
3.15 release
author | heinrichsweikamp |
---|---|
date | Tue, 19 Jan 2021 12:57:23 +0100 |
parents | f32b9ad6244c |
children |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/aa_wordprocessor.asm Fri Jan 01 19:57:21 2021 +0100 +++ b/code_part1/OSTC_code_asm_part1/aa_wordprocessor.asm Tue Jan 19 12:57:23 2021 +0100 @@ -467,13 +467,23 @@ ; Setup pointers for a char: ; Inputs : letter : string to print (SHOULD BE NULL TERMINATED) ; Output : DISPLAY commands on port D + clocks. -; + global aa_wordprocessor ; Callable from C-code. aa_wordprocessor: + movlw .20 + cpfseq win_leftx2 + bra aa_wordprocessor_no_menu + + clrf WREG + movff WREG,letter+.18 + +aa_wordprocessor_no_menu: ; Make sure context is well known movlb HIGH win_top ; Switch to bank 0... rcall aa_string_width ; Set win_height, compute win_width + + movlb HIGH win_top ; Switch to bank 0... call DISP_box_write ; Use that for the box. ; Restart the loop for each char to print