blob: eeb01a49636359eeaa282ea7f458704e39b38b9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
1 ;--------------------------------------------------------
2 ; File Created by SDCC : free open source ANSI-C Compiler
3 ; Version 3.9.3 #11345 (Linux)
4 ;--------------------------------------------------------
5 .module ispunct
6 .optsdcc -mstm8
7
8 ;--------------------------------------------------------
9 ; Public variables in this module
10 ;--------------------------------------------------------
11 .globl _isalnum
12 .globl _isspace
13 .globl _isprint
14 .globl _ispunct
15 ;--------------------------------------------------------
16 ; ram data
17 ;--------------------------------------------------------
18 .area DATA
19 ;--------------------------------------------------------
20 ; ram data
21 ;--------------------------------------------------------
22 .area INITIALIZED
23 ;--------------------------------------------------------
24 ; absolute external ram data
25 ;--------------------------------------------------------
26 .area DABS (ABS)
27
28 ; default segment ordering for linker
29 .area HOME
30 .area GSINIT
31 .area GSFINAL
32 .area CONST
33 .area INITIALIZER
34 .area CODE
35
36 ;--------------------------------------------------------
37 ; global & static initialisations
38 ;--------------------------------------------------------
39 .area HOME
40 .area GSINIT
41 .area GSFINAL
42 .area GSINIT
43 ;--------------------------------------------------------
44 ; Home
45 ;--------------------------------------------------------
46 .area HOME
47 .area HOME
48 ;--------------------------------------------------------
49 ; code
50 ;--------------------------------------------------------
51 .area CODE
52 ; ../ispunct.c: 33: int ispunct (int c)
53 ; -----------------------------------------
54 ; function ispunct
55 ; -----------------------------------------
000000 56 _ispunct:
57 ; ../ispunct.c: 35: return (isprint (c) && !isspace (c) && !isalnum (c));
000000 1E 04 [ 2] 58 ldw x, (0x04, sp)
000002 89 [ 2] 59 pushw x
000003 8Ds00r00r00 [ 5] 60 callf _isprint
000007 5B 02 [ 2] 61 addw sp, #2
000009 5D [ 2] 62 tnzw x
00000A 27 18 [ 1] 63 jreq 00103$
00000C 1E 04 [ 2] 64 ldw x, (0x04, sp)
00000E 89 [ 2] 65 pushw x
00000F 8Ds00r00r00 [ 5] 66 callf _isspace
000013 5B 02 [ 2] 67 addw sp, #2
000015 5D [ 2] 68 tnzw x
000016 26 0C [ 1] 69 jrne 00103$
000018 1E 04 [ 2] 70 ldw x, (0x04, sp)
00001A 89 [ 2] 71 pushw x
00001B 8Ds00r00r00 [ 5] 72 callf _isalnum
00001F 5B 02 [ 2] 73 addw sp, #2
000021 5D [ 2] 74 tnzw x
000022 27 02 [ 1] 75 jreq 00104$
000024 76 00103$:
000024 4F [ 1] 77 clr a
000025 C5 78 .byte 0xc5
000026 79 00104$:
000026 A6 01 [ 1] 80 ld a, #0x01
000028 81 00105$:
000028 5F [ 1] 82 clrw x
000029 97 [ 1] 83 ld xl, a
84 ; ../ispunct.c: 36: }
00002A 87 [ 5] 85 retf
86 .area CODE
87 .area CONST
88 .area INITIALIZER
89 .area CABS (ABS)
|