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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user