+#include "display_basic.h"
#include "vend.h"
#define DELAY_MAGIC 20 /* FIXME: number of loops for ~ 1 millisecond (< 256) */
/* take amt and show it on screen with a $ sign */
char str[10] = {' ', '$', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '};
u8 pos;
- for (pos = 7; amt; pos--, amt/=10);
+ for (pos = 7; amt; pos--, amt/=10) {
str[pos] = amt%10 + '0';
}
- set_msg(str, WRAP_NONE);
+ set_msg(str);
}