1 /* __preserves_regs test
2 type: unsigned char, unsigned int, unsigned long
7 #if defined(__SDCC_z80) || defined(__SDCC_z80n) || defined(__SDCC_z180) || defined(__SDCC_r2k) || defined(__SDCC_r2ka) || defined(__SDCC_r3ka) || defined(__SDCC_tlcs90) || defined(__SDCC_ez80_z80)
8 void write_bc(void) __preserves_regs(a
, d
, e
, h
, l
, iyl
, iyh
) __naked
16 void write_de(void) __preserves_regs(a
, b
, c
, h
, l
, iyl
, iyh
) __naked
24 void write_hl(void) __preserves_regs(a
, b
, c
, d
, e
, iyl
, iyh
) __naked
32 {type
} add_bc({type
} a
, {type
} b
)
42 {type
} add_de({type
} a
, {type
} b
)
53 {type
} add_hl({type
} a
, {type
} b
)
64 {type
} add_iy({type
} a
, {type
} b
)
78 #if defined(__SDCC_z80) || defined(__SDCC_z80n) || defined(__SDCC_z180) || defined(__SDCC_r2k) || defined(__SDCC_r2ka) || defined(__SDCC_r3ka) || defined(__SDCC_tlcs90) || defined(__SDCC_ez80_z80)
79 ASSERT(add_bc(0x55, 0xaa) == ({type
})(0x55 + 0xaa));
80 ASSERT(add_de(0x55, 0xaa) == ({type
})(0x55 + 0xaa));
81 ASSERT(add_hl(0x55, 0xaa) == ({type
})(0x55 + 0xaa));
82 ASSERT(add_iy(0x55, 0xaa) == ({type
})(0x55 + 0xaa));