Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/crt/i48shrs_1.src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.assume adl=1

.section .text
.global __i48shrs_1
.type __i48shrs_1, @function

__i48shrs_1:
push hl
scf
sbc hl, hl
add hl, sp
push de
sra (hl)
pop de
inc hl
inc hl
inc hl
rr d
rr e
rr (hl)
pop hl
rr h
rr l
ret
24 changes: 24 additions & 0 deletions src/crt/i48shru_1.src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.assume adl=1

.section .text
.global __i48shru_1
.type __i48shru_1, @function

__i48shru_1:
push hl
scf
sbc hl, hl
add hl, sp
push de
srl (hl)
pop de
inc hl
inc hl
inc hl
rr d
rr e
rr (hl)
pop hl
rr h
rr l
ret
6 changes: 3 additions & 3 deletions src/crt/ishrs_1_fast.src → src/crt/ishrs_1.src
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.assume adl=1

.section .text
.global __ishrs_1_fast
.type __ishrs_1_fast, @function
.global __ishrs_1
.type __ishrs_1, @function

__ishrs_1_fast:
__ishrs_1:
push hl
ld hl, 2
add hl, sp
Expand Down
6 changes: 3 additions & 3 deletions src/crt/ishru_1_fast.src → src/crt/ishru_1.src
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.assume adl=1

.section .text
.global __ishru_1_fast
.type __ishru_1_fast, @function
.global __ishru_1
.type __ishru_1, @function

__ishru_1_fast:
__ishru_1:
push hl
ld hl, 2
add hl, sp
Expand Down
6 changes: 3 additions & 3 deletions src/crt/llshl_1_fast.src → src/crt/llshl_1.src
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.assume adl=1

.section .text
.global __llshl_1_fast
.type __llshl_1_fast, @function
.global __llshl_1
.type __llshl_1, @function

__llshl_1_fast:
__llshl_1:
add hl, hl
ex de, hl
adc hl, hl
Expand Down
11 changes: 6 additions & 5 deletions src/crt/llshrs_1_fast.src → src/crt/llshrs_1.src
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
.assume adl=1

.section .text
.global __llshrs_1_fast
.type __llshrs_1_fast, @function
.global __llshrs_1
.type __llshrs_1, @function

__llshrs_1_fast:
__llshrs_1:
push hl
push de
ld hl, 2
scf
sbc hl, hl
add hl, sp
push de
sra b
rr c
rr (hl)
Expand Down
11 changes: 6 additions & 5 deletions src/crt/llshru_1_fast.src → src/crt/llshru_1.src
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
.assume adl=1

.section .text
.global __llshru_1_fast
.type __llshru_1_fast, @function
.global __llshru_1
.type __llshru_1, @function

__llshru_1_fast:
__llshru_1:
push hl
push de
ld hl, 2
scf
sbc hl, hl
add hl, sp
push de
srl b
rr c
rr (hl)
Expand Down
6 changes: 3 additions & 3 deletions src/crt/lshrs_1_fast.src → src/crt/lshrs_1.src
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.assume adl=1

.section .text
.global __lshru_1_fast
.type __lshru_1_fast, @function
.global __lshrs_1
.type __lshrs_1, @function

__lshru_1_fast:
__lshrs_1:
push hl
ld hl, 2
add hl, sp
Expand Down
6 changes: 3 additions & 3 deletions src/crt/lshru_1_fast.src → src/crt/lshru_1.src
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.assume adl=1

.section .text
.global __lshru_1_fast
.type __lshru_1_fast, @function
.global __lshru_1
.type __lshru_1, @function

__lshru_1_fast:
__lshru_1:
push hl
ld hl, 2
add hl, sp
Expand Down
Loading