Mercurial > public > hwos_code
annotate src/convert.inc @ 622:02d1386429a6
0x60 added for (future) option to change logbook offset via PC/Bluetooth
author | heinrichsweikamp |
---|---|
date | Wed, 10 Apr 2019 10:51:07 +0200 |
parents | ca4556fb60b9 |
children | c40025d8e750 |
rev | line source |
---|---|
0 | 1 ;============================================================================= |
2 ; | |
604 | 3 ; File convert.inc ## V2.98b |
0 | 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 | |
582 | 12 |
0 | 13 |
582 | 14 extern output16_3_call |
604 | 15 output_16_3 macro ; displays only last three digits from a 16 bit value (0-999) |
582 | 16 call output16_3_call |
0 | 17 endm |
18 | |
582 | 19 extern output16_4_call |
604 | 20 output_16_4 macro ; displays only last four digits from a 16 bit value (0-9999) |
582 | 21 call output16_4_call |
22 endm | |
23 | |
24 extern output16 | |
604 | 25 output_16dp macro dp_position ; 16 bit with decimal point |
582 | 26 movlw dp_position |
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 | 30 extern output16_call |
604 | 31 output_16 macro ; 16 bit normal |
582 | 32 call output16_call |
33 endm | |
0 | 34 |
582 | 35 extern output8_call |
604 | 36 output_8 macro ; 8 bit normal |
582 | 37 call output8_call |
0 | 38 endm |
39 | |
582 | 40 extern output99_call |
604 | 41 output_99 macro ; displays only last two digits from a 8 bit value (0-99) |
582 | 42 call output99_call |
0 | 43 endm |
44 | |
582 | 45 extern output99x_call |
604 | 46 output_99x macro ; displays only last two figures from a 8 bit value with leading zero (00-99) |
582 | 47 call output99x_call |
0 | 48 endm |
604 | 49 |
50 extern outputHEX_call | |
51 output_hex macro ; displays 8 bit integer in hex, input via WREG | |
52 call outputHEX_call | |
53 endm |