0
|
1 ;=============================================================================
|
|
2 ;
|
|
3 ; File convert.inc
|
|
4 ;
|
|
5 ; Converts register values to string
|
|
6 ;
|
|
7 ; Copyright (c) 2011, Matthias Heinrichs, HeinrichsWeikamp, all right reserved.
|
|
8 ;=============================================================================
|
|
9 ; HISTORY
|
|
10 ; 2007-10-07 : [MH] Creation for OSTC sources
|
|
11 ; 2010-12-10 : [jDG] Optimize macro size
|
|
12 ;
|
|
13
|
|
14 extern output16_3_call
|
|
15 output_16_3 macro ; displays only last three figures from a 16Bit value (0-999)
|
|
16 call output16_3_call
|
|
17 endm
|
|
18
|
|
19 extern output16
|
|
20 output_16dp macro temp4 ; 16Bit with decimal point
|
|
21 movlw temp4 ; Temp4 stores position for decimal point
|
|
22 call output16
|
|
23 endm
|
|
24
|
|
25 extern output16_call
|
|
26 output_16 macro ; 16Bit Normal
|
|
27 call output16_call
|
|
28 endm
|
|
29
|
|
30 extern output8_call
|
|
31 output_8 macro ; 8 Bit Normal
|
|
32 call output8_call
|
|
33 endm
|
|
34
|
|
35 extern output99_call
|
|
36 output_99 macro ; displays only last two figures from a 8Bit value (0-99)
|
|
37 call output99_call
|
|
38 endm
|
|
39
|
|
40 extern output99x_call
|
|
41 output_99x macro ; displays only last two figures from a 8Bit value with leading zero (00-99)
|
|
42 call output99x_call
|
|
43 endm
|