annotate src/convert.inc @ 547:49be7b31b4db

2.25 stable RC2
author heinrichsweikamp
date Fri, 08 Sep 2017 13:36:04 +0200 (2017-09-08)
parents 5ad479f2a868
children b455b31ce022
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
heinrichsweikamp
parents:
diff changeset
3 ; File convert.inc
heinrichsweikamp
parents:
diff changeset
4 ;
heinrichsweikamp
parents:
diff changeset
5 ; Converts register values to string
heinrichsweikamp
parents:
diff changeset
6 ;
heinrichsweikamp
parents:
diff changeset
7 ; Copyright (c) 2011, Matthias Heinrichs, HeinrichsWeikamp, all right reserved.
heinrichsweikamp
parents:
diff changeset
8 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
9 ; HISTORY
heinrichsweikamp
parents:
diff changeset
10 ; 2007-10-07 : [MH] Creation for OSTC sources
heinrichsweikamp
parents:
diff changeset
11 ; 2010-12-10 : [jDG] Optimize macro size
heinrichsweikamp
parents:
diff changeset
12 ;
heinrichsweikamp
parents:
diff changeset
13
heinrichsweikamp
parents:
diff changeset
14 extern output16_3_call
heinrichsweikamp
parents:
diff changeset
15 output_16_3 macro ; displays only last three figures from a 16Bit value (0-999)
heinrichsweikamp
parents:
diff changeset
16 call output16_3_call
heinrichsweikamp
parents:
diff changeset
17 endm
heinrichsweikamp
parents:
diff changeset
18
300
5ad479f2a868 Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents: 0
diff changeset
19 extern output16_4_call
5ad479f2a868 Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents: 0
diff changeset
20 output_16_4 macro ; displays only last four figures from a 16Bit value (0-9999)
5ad479f2a868 Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents: 0
diff changeset
21 call output16_4_call
5ad479f2a868 Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents: 0
diff changeset
22 endm
5ad479f2a868 Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents: 0
diff changeset
23
0
heinrichsweikamp
parents:
diff changeset
24 extern output16
heinrichsweikamp
parents:
diff changeset
25 output_16dp macro temp4 ; 16Bit with decimal point
heinrichsweikamp
parents:
diff changeset
26 movlw temp4 ; Temp4 stores position for decimal point
heinrichsweikamp
parents:
diff changeset
27 call output16
heinrichsweikamp
parents:
diff changeset
28 endm
heinrichsweikamp
parents:
diff changeset
29
heinrichsweikamp
parents:
diff changeset
30 extern output16_call
heinrichsweikamp
parents:
diff changeset
31 output_16 macro ; 16Bit Normal
heinrichsweikamp
parents:
diff changeset
32 call output16_call
heinrichsweikamp
parents:
diff changeset
33 endm
heinrichsweikamp
parents:
diff changeset
34
heinrichsweikamp
parents:
diff changeset
35 extern output8_call
heinrichsweikamp
parents:
diff changeset
36 output_8 macro ; 8 Bit Normal
heinrichsweikamp
parents:
diff changeset
37 call output8_call
heinrichsweikamp
parents:
diff changeset
38 endm
heinrichsweikamp
parents:
diff changeset
39
heinrichsweikamp
parents:
diff changeset
40 extern output99_call
heinrichsweikamp
parents:
diff changeset
41 output_99 macro ; displays only last two figures from a 8Bit value (0-99)
heinrichsweikamp
parents:
diff changeset
42 call output99_call
heinrichsweikamp
parents:
diff changeset
43 endm
heinrichsweikamp
parents:
diff changeset
44
heinrichsweikamp
parents:
diff changeset
45 extern output99x_call
heinrichsweikamp
parents:
diff changeset
46 output_99x macro ; displays only last two figures from a 8Bit value with leading zero (00-99)
heinrichsweikamp
parents:
diff changeset
47 call output99x_call
heinrichsweikamp
parents:
diff changeset
48 endm