Update cc65 pointer with PVSeek

This commit is contained in:
Byron Lathi
2023-12-04 00:13:16 -08:00
parent 5c74d161d4
commit 16a7f4db4d
4 changed files with 6 additions and 4 deletions

Submodule sw/cc65 updated: 58518b6ff5...84af5e6887

View File

@@ -53,7 +53,7 @@ sectors_per_fat = sd_buf + $24
ldx bytes_per_sector+1
jsr pushax
ldy #$4
jsr _printf
jsr _cprintf
lda #<sps_val_str
ldx #>sps_val_str

View File

@@ -6,6 +6,8 @@ LDFLAGS=-m $(NAME).map
NAME=fs_test
SIMARGS=
BIN=$(NAME).bin
FS=$(REPO_TOP)/sw/script/fs.fat
@@ -20,7 +22,7 @@ OBJS+=$(patsubst %.s,%.o,$(filter %s,$(SRCS)))
OBJS+=$(patsubst %.c,%.o,$(filter %c,$(SRCS)))
run: all
$(SIM) $(BIN)
$(SIM) $(SIMARGS) $(BIN)
all: fs.fat fat32.s $(BIN)

View File

@@ -16,6 +16,6 @@ uint16_t imulii(uint16_t a, uint16_t b) {
uint8_t SD_readSingleBlock(uint32_t addr, uint8_t *buf, uint8_t *error) {
FILE* f = fopen(FILE_PATH, "rb");
// fseek(f, addr * 512, SEEK_SET);
fseek(f, addr * 512, SEEK_SET);
fread(buf, 512, 1, f);
}