Don't have sd wait in simulation

need to figure out how to set that RTL_SIM flag only when we are
compiling code for the sim

also bro the sim is like 8000x slower than irl.
This commit is contained in:
Byron Lathi
2023-09-30 17:40:01 -07:00
parent cc32430f2a
commit 3a211faed7
4 changed files with 215 additions and 213 deletions

View File

@@ -1,5 +1,5 @@
CC=../cc65/bin/cl65
CFLAGS=-T -t none -I. --cpu "65C02"
CFLAGS=-T -t none -I. --cpu "65C02" -DRTL_SIM
LDFLAGS=-C link.ld -m $(NAME).map
NAME=bios

View File

@@ -25,7 +25,9 @@ uint8_t SD_init()
}
}
#ifndef RTL_SIM
for (i = 0; i < 1000; i++);
#endif
SD_sendIfCond(res);
if(res[0] != SD_IN_IDLE_STATE)