1
2; ===============================================================
3; 2015
4; ===============================================================
5;
6; int cpm_bdos(unsigned int func,unsigned int arg)
7;
8; ===============================================================
9
10SECTION code_clib
11SECTION code_arch
12
13PUBLIC asm_cpm_bdos
14
15; enter :  c = bdos function
16;         de = argument
17;
18; exit  : registers set by cpm
19
20IF __SDCC
21
22asm_cpm_bdos:
23
24   push ix
25   push iy
26
27   call 0x0005
28
29   pop iy
30   pop ix
31
32   ret
33
34ELSE
35
36defc asm_cpm_bdos = 0x0005
37
38ENDIF
39