blob: 35012be8de90d7a315f8d3458a8a1f5424c8e0e4 [file] [log] [blame]
PulkoMandy17fc7592022-07-28 18:27:54 +02001
2/* automaticaly generated from the file mult.asm do not modify */
3
4static void emit_mult(FILE *f)
5{
6 emit(f,"vbcc___mul16x16_16:\n");
7 emit(f,"\tpush\thl\n");
8 emit(f,"\tmul\tl, a\n");
9 emit(f,"\tpush\thl\n");
10 emit(f,"\tmov\thl,[sp+3]\n");
11 emit(f,"\tmul\tl, a\n");
12 emit(f,"\tmov\ta, b\n");
13 emit(f,"\tmov\tb, l\n");
14 emit(f,"\tmov\thl, [sp+2]\n");
15 emit(f,"\tmul\tl, a\n");
16 emit(f,"\tmov\ta, l\n");
17 emit(f,"\tadd\ta, b\n");
18 emit(f,"\tmov\tb, a\n");
19 emit(f,"\txor\ta, a\n");
20 emit(f,"\tpop\thl\n");
21 emit(f,"\tadd\tba, hl\n");
22 emit(f,"\tpop\thl\n");
23 emit(f,"\tret\n");}