Reorganized folders, added pal-adapter io device folder

This commit is contained in:
Daniele Verducci su MatissePenguin
2021-01-02 16:33:51 +01:00
parent 55f5d62082
commit 68752e85a7
35 changed files with 327 additions and 1 deletions

View File

@ -0,0 +1,23 @@
; Strings manipulation library
; @author Daniele Verducci
; Transforms case to upper
Strings_strToUpper:
; TODO
ret
Strings_strToLower:
; TODO
ret
; Transforms character in A to uppercase. If is not a character, returns as is
; @param A character to transform
; @return A upper char
Strings_charToUpper:
; TODO
ret
Strings_charToLower:
; TODO
ret

View File

@ -0,0 +1,21 @@
; Time library
; @author Daniele Verducci
; Duration in cpu cycles / 55 (change these values based on CPU frequency)
TIME_DUR_SECOND: EQU 2545
TIME_DUR_MILLIS: EQU 3
; Wait bc * 55 states
; Use 1 iteration as delay between I/O bus writes
; @param bc The number of iterations. Each iteration is 55 states long.
Time_delay55:
ret
bit 0,a ; 8
bit 0,a ; 8
bit 0,a ; 8
and 255 ; 7
dec bc ; 6
ld a,c ; 4
or b ; 4
jp nz,Time_delay55 ; 10, total = 55 states/iteration
ret