-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add min/max functionality to random utility, start implementing retur…
…n forwarding
- Loading branch information
1 parent
a5ef8ca
commit 85e0a25
Showing
20 changed files
with
1,517 additions
and
30 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.19.1214 alpha | ||
1.19.1314 alpha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
;@DOES Convert num to a base-10 string. | ||
;@INPUT char *str_FromByte(char *dest, uint8_t num); | ||
str_FromByte: | ||
pop bc,de,hl | ||
push hl,de,bc | ||
push de,de | ||
ex (sp),iy | ||
ld a,l | ||
or a,a | ||
sbc hl,hl | ||
ld l,a | ||
xor a,a | ||
ld e,a | ||
jr str_FromLong.long_to_str_100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
;@DOES Convert num to a base-10 string. | ||
;@INPUT char *str_FromInt(char *dest, unsigned int num); | ||
str_FromInt: | ||
pop bc,de,hl | ||
push hl,de,bc | ||
push de,de | ||
ex (sp),iy | ||
xor a,a | ||
ld e,a | ||
jr str_FromLong.long_to_str_10m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
;@DOES Convert num to a base-10 string. | ||
;@INPUT char *str_FromLong(char *dest, uint32_t num); | ||
str_FromLong: | ||
push iy | ||
ld iy,0 | ||
add iy,sp | ||
ld hl,(iy+9) | ||
ld a,(iy+12) | ||
ld iy,(iy+6) | ||
pop bc | ||
push iy,bc | ||
ld e,1000000000 shr 24 | ||
ld bc,1000000000 and $FFFFFF | ||
call .num_to_str_aqu | ||
ld e,100000000 shr 24 | ||
ld bc,100000000 and $FFFFFF | ||
call .num_to_str_aqu | ||
ld e,0 | ||
.long_to_str_10m: | ||
ld bc,10000000 | ||
call .num_to_str_aqu | ||
ld bc,1000000 | ||
call .num_to_str_aqu | ||
ld bc,100000 | ||
call .num_to_str_aqu | ||
.long_to_str_10k: | ||
ld bc,10000 | ||
call .num_to_str_aqu | ||
ld bc,1000 | ||
call .num_to_str_aqu | ||
.long_to_str_100: | ||
ld bc,100 | ||
call .num_to_str_aqu | ||
ld c,10 | ||
call .num_to_str_aqu | ||
ld c,1 | ||
call .num_to_str_aqu | ||
ld (iy),0 | ||
pop iy,hl | ||
.skip_zeroes_loop: | ||
ld a,(hl) | ||
or a,a | ||
jr z,.return_single_zero | ||
cp a,'0' | ||
ret nz | ||
inc hl | ||
jr .skip_zeroes_loop | ||
.return_single_zero: | ||
dec hl | ||
ret | ||
|
||
.num_to_str_aqu: | ||
ld d,'0'-1 | ||
.num_to_str_aqu.loop: | ||
inc d | ||
or a,a | ||
sbc hl,bc | ||
sbc a,e | ||
jr nc,.num_to_str_aqu.loop | ||
add hl,bc | ||
adc a,e | ||
ld (iy),d | ||
inc iy | ||
ret |
File renamed without changes.
Oops, something went wrong.