1
2; ===============================================================
3; @feilipu 2019
4; ===============================================================
5;
6; uint8_t hbios_e(uint16_t func_device, uint16_t arg, void * buffer)
7;
8; ===============================================================
9
10SECTION code_clib
11SECTION code_arch
12
13PUBLIC asm_hbios_e
14
15EXTERN __HB_INVOKE
16
17.asm_hbios_e
18
19    ; enter : bc = hbios function << 8 || hbios device
20    ;         de = argument
21    ;         hl = void *
22    ;
23    ; exit  : registers set by hbios
24    ;       : hl = register E (returned by hbios)
25
26    call __HB_INVOKE
27
28    ld h,0
29    ld l,e
30    ret
31