initial decimal number code, needs work

- need to change to have implicit decimal point after first digit
- need to rework for code size
This commit is contained in:
Jeff Wang
2019-03-22 16:38:35 -04:00
parent 7dddcb0902
commit d351995294
5 changed files with 771 additions and 1 deletions

View File

@ -1,5 +1,15 @@
#include <stdint.h>
#include "utils.h"
#ifdef DESKTOP
void _delay_ms(uint8_t ms){
//TODO:
}
void _delay_us(uint8_t us)
{
//TODO:
}
#else
void _delay_ms(uint8_t ms)
{
// delay function, tuned for 11.583 MHz clock
@ -35,6 +45,7 @@ void _delay_us(uint8_t us)
djnz dpl, us_delay$
__endasm;
}
#endif
char* u32str(uint32_t x, char* buf, uint8_t base)
{