- Timestamp:
- 07/20/2017 11:37:13 PM (7 years ago)
- Branches:
- master
- Children:
- 9674f1a
- Parents:
- ebc8f69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/fdd.c
rebc8f69 r4c71d39 18 18 #include <all.h> 19 19 20 #define ver(...) { \ 21 if (fdd_verbose) { \ 22 SDL_LogVerbose(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__); \ 23 } \ 24 } 20 #define ver(...) _ver(fdd_verbose, 0, __VA_ARGS__) 21 #define ver2(...) _ver(fdd_verbose, 1, __VA_ARGS__) 22 #define ver3(...) _ver(fdd_verbose, 2, __VA_ARGS__) 25 23 26 bool fdd_verbose = false;24 int32_t fdd_verbose = 0; 27 25 28 26 void fdd_init(void) … … 38 36 void fdd_exec(void) 39 37 { 40 ver ("fdd exec");38 ver3("fdd exec"); 41 39 } 42 40 43 41 uint32_t fdd_read(uint32_t off, int32_t sz) 44 42 { 45 ver ("fdd rd %u:%d", off, sz * 8);43 ver2("fdd rd %u:%d", off, sz * 8); 46 44 return 0; 47 45 } … … 49 47 void fdd_write(uint32_t off, int32_t sz, uint32_t val) 50 48 { 51 ver ("fdd wr %u:%d 0x%0*x", off, sz * 8, sz * 2, val);49 ver2("fdd wr %u:%d 0x%0*x", off, sz * 8, sz * 2, val); 52 50 }
Note:
See TracChangeset
for help on using the changeset viewer.