comparison code_part1/OSTC_code_asm_part1/aa_wordprocessor.asm @ 167:cb055a7d75f3

+ Use overlay local vars. + Make all private functions static. + Merge calc_tissue 2sec and 1min + Merge sim_tissue 1min and 10min + Expose basic display utilities for c-code. + Prepare stand-alone utilities for p2_main.c testing platform. + New c utility: int read_custom_function(cf#)
author JeanDo
date Mon, 24 Jan 2011 23:31:57 +0100
parents 8b75ba28d641
children bde83cac971f
comparison
equal deleted inserted replaced
166:80de93d72a17 167:cb055a7d75f3
387 ;------------------------------------------------------------------------------ 387 ;------------------------------------------------------------------------------
388 ; Setup pointers for a char: 388 ; Setup pointers for a char:
389 ; Inputs : letter : string to print (SHOULD BE NULL TERMINATED) 389 ; Inputs : letter : string to print (SHOULD BE NULL TERMINATED)
390 ; Output : OLED commands on port D + clocks. 390 ; Output : OLED commands on port D + clocks.
391 ; 391 ;
392 global aa_wordprocessor ; Callable from C-code.
392 aa_wordprocessor: 393 aa_wordprocessor:
393 ; Make sure context is well known 394 ; Make sure context is well known
394 movlb HIGH win_top ; Switch to bank 0... 395 movlb HIGH win_top ; Switch to bank 0...
395 396
396 rcall aa_string_width ; Set win_height, compute win_width 397 rcall aa_string_width ; Set win_height, compute win_width