Mercurial > public > hwos_code
comparison src/convert.inc @ 604:ca4556fb60b9
bump to 2.99beta, work on 3.00 stable
author | heinrichsweikamp |
---|---|
date | Thu, 22 Nov 2018 19:47:26 +0100 |
parents | b455b31ce022 |
children | c40025d8e750 |
comparison
equal
deleted
inserted
replaced
603:00b24fb4324d | 604:ca4556fb60b9 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File convert.inc ## V2.98 | 3 ; File convert.inc ## V2.98b |
4 ; | 4 ; |
5 ; Converts register values to string | 5 ; Converts register values to string |
6 ; | 6 ; |
7 ; Copyright (c) 2011, Matthias Heinrichs, HeinrichsWeikamp, all right reserved. | 7 ; Copyright (c) 2011, Matthias Heinrichs, HeinrichsWeikamp, all right reserved. |
8 ;============================================================================= | 8 ;============================================================================= |
10 ; 2007-10-07 : [MH] Creation for OSTC sources | 10 ; 2007-10-07 : [MH] Creation for OSTC sources |
11 ; 2010-12-10 : [jDG] Optimize macro size | 11 ; 2010-12-10 : [jDG] Optimize macro size |
12 | 12 |
13 | 13 |
14 extern output16_3_call | 14 extern output16_3_call |
15 output_16_3 macro ; displays only last three figures from a 16Bit value (0-999) | 15 output_16_3 macro ; displays only last three digits from a 16 bit value (0-999) |
16 call output16_3_call | 16 call output16_3_call |
17 endm | 17 endm |
18 | 18 |
19 extern output16_4_call | 19 extern output16_4_call |
20 output_16_4 macro ; displays only last four figures from a 16Bit value (0-9999) | 20 output_16_4 macro ; displays only last four digits from a 16 bit value (0-9999) |
21 call output16_4_call | 21 call output16_4_call |
22 endm | 22 endm |
23 | 23 |
24 extern output16 | 24 extern output16 |
25 output_16dp macro dp_position ; 16 Bit with decimal point | 25 output_16dp macro dp_position ; 16 bit with decimal point |
26 movlw dp_position | 26 movlw dp_position |
27 call output16 | 27 call output16 |
28 endm | 28 endm |
29 | 29 |
30 extern output16_call | 30 extern output16_call |
31 output_16 macro ; 16Bit Normal | 31 output_16 macro ; 16 bit normal |
32 call output16_call | 32 call output16_call |
33 endm | 33 endm |
34 | 34 |
35 extern output8_call | 35 extern output8_call |
36 output_8 macro ; 8 Bit Normal | 36 output_8 macro ; 8 bit normal |
37 call output8_call | 37 call output8_call |
38 endm | 38 endm |
39 | 39 |
40 extern output99_call | 40 extern output99_call |
41 output_99 macro ; displays only last two figures from a 8Bit value (0-99) | 41 output_99 macro ; displays only last two digits from a 8 bit value (0-99) |
42 call output99_call | 42 call output99_call |
43 endm | 43 endm |
44 | 44 |
45 extern output99x_call | 45 extern output99x_call |
46 output_99x macro ; displays only last two figures from a 8Bit value with leading zero (00-99) | 46 output_99x macro ; displays only last two figures from a 8 bit value with leading zero (00-99) |
47 call output99x_call | 47 call output99x_call |
48 endm | 48 endm |
49 | |
50 extern outputHEX_call | |
51 output_hex macro ; displays 8 bit integer in hex, input via WREG | |
52 call outputHEX_call | |
53 endm |