Remove ceda_* generic module.

This commit is contained in:
giomba 2023-10-22 11:40:46 +02:00
parent 9d8bede050
commit 21c4c1eb98
3 changed files with 0 additions and 45 deletions

View File

@ -1,8 +0,0 @@
#ifndef CEDA_PRINT_H
#define CEDA_PRINT_H
void ceda_cls(void);
void ceda_print(const char *s);
#endif // CEDA_PRINT_H

View File

@ -1,26 +0,0 @@
SECTION code
PUBLIC _ceda_cls
_ceda_cls:
push af
push bc
push de
push hl
ld hl,$d000
ld de,2000
ld c,$20
_ceda_cls_loop:
ld (hl),c
inc hl
dec de
ld a,d
or e
jp nz,_ceda_cls_loop
pop hl
pop de
pop bc
pop af
ret

View File

@ -1,11 +0,0 @@
#include "ceda_print.h"
void ceda_print(const char *s) {
static char *const VIDEO_MEMORY = (char *const)(0xd000);
char *p = VIDEO_MEMORY;
while (*s != '\0') {
*p++ = *s++;
}
}