struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / lib / pdk15 / _muluchar.s
blob66f576b97ec8701be695bb94d7715c460bb59c61
1 .module _muluchar
2 .optsdcc -mpdk13
4 .area DATA
6 .area OSEG (OVR,DATA)
7 __muluchar_PARM_1::
8 .ds 1
9 __muluchar_PARM_2::
10 .ds 1
12 .area CODE
14 ; unsigned int _muluchar (unsigned char x, unsigned char y)
15 __muluchar::
17 mov a, #0x00
18 clear p
20 inc p ; {p,a} = 0x0100
21 0$:
22 sl a
23 slc p
24 slc _test_muluchar_PARM_1 ; x <<= 1;
25 t0sn.io f,c
26 add a, _test_muluchar_PARM_2 ; result += y;
27 3$:
28 addc p
29 t1sn _test_muluchar_PARM_1, #0
30 goto 0$
31 4$:
32 ret