annotate src/convert.inc @ 14:440e537e19d6

Show "MOD:" instead of "EAD:" in gas setup
author heinrichsweikamp
date Tue, 11 Jun 2013 09:42:59 +0200
parents 11d4fc797f74
children 5ad479f2a868
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
heinrichsweikamp
parents:
diff changeset
19 extern output16
heinrichsweikamp
parents:
diff changeset
20 output_16dp macro temp4 ; 16Bit with decimal point
heinrichsweikamp
parents:
diff changeset
21 movlw temp4 ; Temp4 stores position for decimal point
heinrichsweikamp
parents:
diff changeset
22 call output16
heinrichsweikamp
parents:
diff changeset
23 endm
heinrichsweikamp
parents:
diff changeset
24
heinrichsweikamp
parents:
diff changeset
25 extern output16_call
heinrichsweikamp
parents:
diff changeset
26 output_16 macro ; 16Bit Normal
heinrichsweikamp
parents:
diff changeset
27 call output16_call
heinrichsweikamp
parents:
diff changeset
28 endm
heinrichsweikamp
parents:
diff changeset
29
heinrichsweikamp
parents:
diff changeset
30 extern output8_call
heinrichsweikamp
parents:
diff changeset
31 output_8 macro ; 8 Bit Normal
heinrichsweikamp
parents:
diff changeset
32 call output8_call
heinrichsweikamp
parents:
diff changeset
33 endm
heinrichsweikamp
parents:
diff changeset
34
heinrichsweikamp
parents:
diff changeset
35 extern output99_call
heinrichsweikamp
parents:
diff changeset
36 output_99 macro ; displays only last two figures from a 8Bit value (0-99)
heinrichsweikamp
parents:
diff changeset
37 call output99_call
heinrichsweikamp
parents:
diff changeset
38 endm
heinrichsweikamp
parents:
diff changeset
39
heinrichsweikamp
parents:
diff changeset
40 extern output99x_call
heinrichsweikamp
parents:
diff changeset
41 output_99x macro ; displays only last two figures from a 8Bit value with leading zero (00-99)
heinrichsweikamp
parents:
diff changeset
42 call output99x_call
heinrichsweikamp
parents:
diff changeset
43 endm