src/mess/devices/z80bin.c
| r2430 | r2431 | |
| 8 | 8 | *********************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | | #include "ui.h" |
| 12 | 11 | #include "z80bin.h" |
| 13 | 12 | #include "snapquik.h" |
| 14 | 13 | |
| r2430 | r2431 | |
| 49 | 48 | if (ch != '\0') |
| 50 | 49 | { |
| 51 | 50 | if (i >= (ARRAY_LENGTH(pgmname) - 1)) |
| 51 | { |
| 52 | image_seterror(image, IMAGE_ERROR_INVALIDIMAGE, "File name too long"); |
| 52 | 53 | return INIT_FAIL; |
| 54 | } |
| 53 | 55 | |
| 54 | 56 | pgmname[i] = ch; /* build program name */ |
| 55 | 57 | i++; |
| r2430 | r2431 | |
| 71 | 73 | size = (end_addr[0] - start_addr[0] + 1) & 0xffff; |
| 72 | 74 | |
| 73 | 75 | /* display a message about the loaded quickload */ |
| 74 | | image_message(image, "size=%04X : start=%04X : end=%04X : exec=%04X", size,start_addr[0],end_addr[0],exec_addr[0]); |
| 76 | image_message(image, " %s\nsize=%04X : start=%04X : end=%04X : exec=%04X",pgmname,size,start_addr[0],end_addr[0],exec_addr[0]); |
| 75 | 77 | |
| 76 | 78 | for (i = 0; i < size; i++) |
| 77 | 79 | { |