Skip to content

Commit aa57f72

Browse files
More opts and removal of unessasary things
1 parent b9a7228 commit aa57f72

File tree

18 files changed

+29
-514
lines changed

18 files changed

+29
-514
lines changed

CEdev/lib/src/buildall.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ set ASM=%BIN%\ez80asm.exe
1717
set CC=%BIN%\eZ80cc.exe
1818
set LIB=%BIN%\ez80lib.exe
1919

20-
set RTL_C_SRC=atoi.c atol.c atos.c bsearch.c calloc.c labs.c maptab.c modf.c qsort.c rand.c sabs.c srand.c strtod.c strtol.c strtoul.c ufltinfo.c ufltrnd.c upscan.c ureverse.c usscan.c strdup.c
21-
set RTL_ST_C_SRC=sscanf.c uitoa.c ultoa.c ustoa.c uuitoa.c uultoa.c uustoa.c vprintf.c vsprintf.c
20+
set RTL_C_SRC=atoi.c atol.c atos.c bsearch.c calloc.c labs.c maptab.c modf.c qsort.c rand.c sabs.c srand.c strtod.c strtol.c strtoul.c ufltinfo.c ufltrnd.c ureverse.c strdup.c
21+
set RTL_ST_C_SRC=uitoa.c ultoa.c ustoa.c uuitoa.c uultoa.c uustoa.c vprintf.c vsprintf.c
2222

2323
set RTL_NOKERNEL_C_SRC=free.c malloc.c realloc.c
2424
set RTL_ASM_SRC=abs.asm isalnum.asm isalpha.asm iscntrl.asm isdigit.asm isgraph.asm islower.asm isprint.asm ispunct.asm isspace.asm isupper.asm isxdigit.asm isascii.asm sprintf.asm strtok.asm longjmp.asm memchr.asm memcmp.asm memcpy.asm memmove.asm memset.asm sbrk.asm setjmp.asm strcat.asm strchr.asm strcmp.asm strcpy.asm strcspn.asm strlen.asm strncat.asm strncmp.asm strncpy.asm strpbrk.asm strrchr.asm strspn.asm strstr.asm div.asm ldiv.asm tolower.asm toupper.asm strncasecmp.asm

CEdev/lib/src/libraries/fileio_src/v2/fileio_lib.asm

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -378,19 +378,18 @@ _Write:
378378
; arg3 : Slot number
379379
; Returns:
380380
; Number of chunks written if success
381-
push ix
382-
ld ix,0
383-
add ix,sp
384-
ld c,(ix+15)
381+
ld iy,0
382+
add iy,sp
383+
ld c,(iy+12)
385384
call _CheckIfSlotOpen \.r
386-
jp z,_ReturnNULL_PopIX \.r
387-
ld bc,(ix+9)
388-
ld hl,(ix+12)
385+
jp z,_ReturnNULL \.r
386+
ld bc,(iy+6)
387+
ld hl,(iy+9)
389388
call __smulu ; hl*bc
390389
ex de,hl
391390
call _CheckInRAM_ASM \.r
392391
jp c,_ReturnNULL_PopIX \.r
393-
ld hl,(ix+6)
392+
ld hl,(iy+3)
394393
ld bc,0
395394
_: ld a,(hl)
396395
push hl
@@ -421,17 +420,16 @@ _Read:
421420
; arg3 : Slot number
422421
; Returns:
423422
; Number of chunks read if success
424-
push ix
425-
ld ix,0
426-
add ix,sp
427-
ld c,(ix+15)
423+
ld iy,0
424+
add iy,sp
425+
ld c,(iy+12)
428426
call _CheckIfSlotOpen \.r
429-
jp z,_ReturnNULL_PopIX \.r
430-
ld bc,(ix+9)
431-
ld hl,(ix+12)
427+
jp z,_ReturnNULL \.r
428+
ld bc,(iy+6)
429+
ld hl,(iy+9)
432430
call __smulu ; hl*bc
433431
ex de,hl
434-
ld hl,(ix+6)
432+
ld hl,(iy+3)
435433
ld bc,0
436434
_: push hl
437435
push de
@@ -449,13 +447,12 @@ _: push hl
449447
ld a,e
450448
or a,d
451449
jr nz,-_
452-
_s: ld de,(ix+9)
450+
_s: ld de,(iy+6)
453451
ex.s de,hl
454452
push hl
455453
ld l,c
456454
ld h,b
457455
pop bc
458-
pop ix
459456
jp __sdivu
460457

461458
;-------------------------------------------------------------------------------

CEdev/lib/src/libraries/graphics_src/graphx/v2/graphics_lib.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,7 @@ _BlitLines:
14071407
mlt hl
14081408
add hl,hl
14091409
push hl
1410+
ld a,(iy+3)
14101411
call _CheckBlit_ASM \.r
14111412
pop bc
14121413
add hl,bc
@@ -1437,6 +1438,7 @@ _BlitArea:
14371438
add hl,hl
14381439
add hl,de
14391440
push hl ; save amount to increment
1441+
ld a,(iy+3)
14401442
call _CheckBlit_ASM \.r
14411443
pop bc
14421444
add hl,bc

CEdev/lib/src/std/errno.c

Lines changed: 0 additions & 17 deletions
This file was deleted.

CEdev/lib/src/std/intrpt.asm

Whitespace-only changes.

CEdev/lib/src/std/isalnum.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ _isalnum:
1616
push hl
1717
or a,a
1818
sbc hl,hl
19-
ld a,e
20-
and a,128
19+
bit 7,e
2120
ret nz
2221
ex de,hl
2322
ld de,___maptab

CEdev/lib/src/std/isalpha.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ _isalpha:
1515
push hl
1616
or a,a
1717
sbc hl,hl
18-
ld a,e
19-
and a,128
18+
bit 7,e
2019
ret nz
2120
ex de,hl
2221
ld de,___maptab

CEdev/lib/src/std/iscntrl.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ _iscntrl:
1515
push hl
1616
or a,a
1717
sbc hl,hl
18-
ld a,e
19-
and a,128
18+
bit 7,e
2019
ret nz
2120
ex de,hl
2221
ld de,___maptab

CEdev/lib/src/std/isdigit.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ _isdigit:
1515
push hl
1616
or a,a
1717
sbc hl,hl
18-
ld a,e
19-
and a,128
18+
bit 7,e
2019
ret nz
2120
ex de,hl
2221
ld de,___maptab

CEdev/lib/src/std/isgraph.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ _isgraph:
1616
push hl
1717
or a,a
1818
sbc hl,hl
19-
ld a,e
20-
and a,128
19+
bit 7,e
2120
ret nz
2221
ex de,hl
2322
ld de,___maptab

0 commit comments

Comments
 (0)