Update cc65 pointer with PVSeek
This commit is contained in:
2
sw/cc65
2
sw/cc65
Submodule sw/cc65 updated: 58518b6ff5...84af5e6887
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user