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