1 2 3 4 5 6 INCLUDE "z80_crt0.hdr" 7 8 9 SECTION code_compiler 10 11._func_char 12 ld hl,+(( (0 % 256) * 256) + (0 % 256)) 13 push hl 14 ld hl,1 ;const 15 call l_gcharspsp ; 16 ld hl,2 ;const 17 add hl,sp 18 call l_gchar 19 pop de 20 call l_div 21 pop bc 22 ret 23 24 25 26._func_char2 27 ld hl,+(( (0 % 256) * 256) + (0 % 256)) 28 push hl 29 ld hl,1 ;const 30 call l_gcharspsp ; 31 ld hl,2 ;const 32 add hl,sp 33 ld l,(hl) 34 ld h,0 35 pop de 36 call l_div_u 37 pop bc 38 ret 39 40 41 42._func_int 43 ld hl,0 ;const 44 push hl 45 push hl 46 ld hl,2 ;const 47 call l_gintspsp ; 48 pop bc 49 pop hl 50 push hl 51 push bc 52 pop de 53 call l_div 54 pop bc 55 pop bc 56 ret 57 58 59 60._func_int2 61 ld hl,0 ;const 62 push hl 63 push hl 64 ld hl,2 ;const 65 call l_gintspsp ; 66 pop bc 67 pop hl 68 push hl 69 push bc 70 pop de 71 call l_div_u 72 pop bc 73 pop bc 74 ret 75 76 77 78 79 SECTION bss_compiler 80 SECTION code_compiler 81 82 83 84 GLOBAL _func_char 85 GLOBAL _func_char2 86 GLOBAL _func_int 87 GLOBAL _func_int2 88 89 90 91 92