annotate src/convert.inc @ 632:0347acdf6d8e

changelog updates
author heinrichsweikamp
date Sat, 29 Feb 2020 16:57:45 +0100
parents cd58f7fc86db
children 4050675965ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
3 ; File convert.inc combined next generation V3.04.2
0
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
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
12
0
heinrichsweikamp
parents:
diff changeset
13
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
14 extern output16_3_call
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
15 output_16_3 macro ; displays only last three digits from a 16 bit value (0-999)
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
16 call output16_3_call
0
heinrichsweikamp
parents:
diff changeset
17 endm
heinrichsweikamp
parents:
diff changeset
18
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
19 extern output16_4_call
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
20 output_16_4 macro ; displays only last four digits from a 16 bit value (0-9999)
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
21 call output16_4_call
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
22 endm
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
23
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
24 extern output16
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
25 output_16dp macro dp_position ; 16 bit with decimal point
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
26 movlw dp_position
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
27 call output16
300
5ad479f2a868 Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents: 0
diff changeset
28 endm
5ad479f2a868 Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents: 0
diff changeset
29
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
30 extern output16_call
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
31 output_16 macro ; 16 bit normal
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
32 call output16_call
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
33 endm
0
heinrichsweikamp
parents:
diff changeset
34
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
35 extern output8_call
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
36 output_8 macro ; 8 bit normal
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
37 call output8_call
0
heinrichsweikamp
parents:
diff changeset
38 endm
heinrichsweikamp
parents:
diff changeset
39
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
40 extern output99_call
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
41 output_99 macro ; displays only last two digits from a 8 bit value (0-99)
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
42 call output99_call
0
heinrichsweikamp
parents:
diff changeset
43 endm
heinrichsweikamp
parents:
diff changeset
44
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
45 extern output99x_call
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
46 output_99x macro ; displays only last two digits from a 8 bit value with leading zero (00-99)
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 300
diff changeset
47 call output99x_call
0
heinrichsweikamp
parents:
diff changeset
48 endm
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
49
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
50 extern output99dd_call
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
51 output_99dd macro ; displays only last two digits from a 8 bit value, prints double-dots if zero - small fonts
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
52 call output99dd_call
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
53 endm
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
54
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
55 extern output99DD_call
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
56 output_99DD macro ; displays only last two digits from a 8 bit value, prints double-dots if zero - big fonts
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
57 call output99DD_call
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
58 endm
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
59
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
60 extern outputHEX_call
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
61 output_hex macro ; displays 8 bit integer in hex, input via WREG
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
62 call outputHEX_call
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 582
diff changeset
63 endm