File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 .type __i48shrs_1, @function
66
77__i48shrs_1:
8+ ; Input:
9+ ; - UDE:UHL
10+ ; Output:
11+ ; - UDE:UHL >>= 1 (signed)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 24 bytes | 25F + 11R + 8W + 3
814 push hl
915 scf
1016 sbc hl, hl
Original file line number Diff line number Diff line change 55 .type __i48shru_1, @function
66
77__i48shru_1:
8+ ; Input:
9+ ; - UDE:UHL
10+ ; Output:
11+ ; - UDE:UHL >>= 1 (unsigned)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 24 bytes | 25F + 11R + 8W + 3
814 push hl
915 scf
1016 sbc hl, hl
Original file line number Diff line number Diff line change 55 .type __ishrs_1, @function
66
77__ishrs_1:
8+ ; Input:
9+ ; - UHL
10+ ; Output:
11+ ; - UHL >>= 1 (signed)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 14 bytes | 15F + 7R + 4W + 2
814 push hl
915 ld hl, 2
1016 add hl, sp
Original file line number Diff line number Diff line change 55 .type __ishru_1, @function
66
77__ishru_1:
8+ ; Input:
9+ ; - UHL
10+ ; Output:
11+ ; - UHL >>= 1 (unsigned)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 14 bytes | 15F + 7R + 4W + 2
814 push hl
915 ld hl, 2
1016 add hl, sp
Original file line number Diff line number Diff line change 55 .type __llshl_1, @function
66
77__llshl_1:
8+ ; Input:
9+ ; - BC:UDE:UHL
10+ ; Output:
11+ ; - BC:UDE:UHL <<= 1
12+ ; - Carry = shifted-out bit
13+ ; - Sign = MSB of result
14+ ; Cost: 10 bytes | 11F + 3R + 1
815 add hl, hl
916 ex de, hl
1017 adc hl, hl
Original file line number Diff line number Diff line change 55 .type __llshrs_1, @function
66
77__llshrs_1:
8+ ; Input:
9+ ; - BC:UDE:UHL
10+ ; Output:
11+ ; - BC:UDE:UHL >>= 1 (signed)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 28 bytes | 29F + 11R + 8W + 3
814 push hl
915 scf
1016 sbc hl, hl
Original file line number Diff line number Diff line change 55 .type __llshru_1, @function
66
77__llshru_1:
8+ ; Input:
9+ ; - BC:UDE:UHL
10+ ; Output:
11+ ; - BC:UDE:UHL >>= 1 (unsigned)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 28 bytes | 29F + 11R + 8W + 3
814 push hl
915 scf
1016 sbc hl, hl
Original file line number Diff line number Diff line change 55 .type __lshrs_1, @function
66
77__lshrs_1:
8+ ; Input:
9+ ; - E:UHL
10+ ; Output:
11+ ; - E:UHL >>= 1 (signed)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 16 bytes | 17F + 7R + 4W + 2
814 push hl
915 ld hl, 2
1016 add hl, sp
Original file line number Diff line number Diff line change 55 .type __lshru_1, @function
66
77__lshru_1:
8+ ; Input:
9+ ; - E:UHL
10+ ; Output:
11+ ; - E:UHL >>= 1 (unsigned)
12+ ; - Carry = shifted-out bit
13+ ; Cost: 16 bytes | 17F + 7R + 4W + 2
814 push hl
915 ld hl, 2
1016 add hl, sp
You can’t perform that action at this time.
0 commit comments