src/mess/machine/abc830.c
| r9219 | r9220 | |
| 174 | 174 | - ABC80 ERR 48 on boot |
| 175 | 175 | - side select makes controller go crazy and try to WRITE_TRK |
| 176 | 176 | |
| 177 | | Fast Controller |
| 178 | | --------------- |
| 179 | | - Z80 DMA reset command is broken (it keeps resetting A/B port addresses) |
| 180 | | - 2KB RAM option |
| 181 | | - 160KB disks need a 7:1 sector interleave to load (physical sectors: 1,8,F,6,D,4,B,2,9,10,7,E,5,C,3,A) |
| 182 | | |
| 183 | 177 | */ |
| 184 | 178 | |
| 185 | 179 | #include "emu.h" |
| r9219 | r9220 | |
| 243 | 237 | int dma_irq; /* DMA interrupt */ |
| 244 | 238 | int busy; /* busy bit */ |
| 245 | 239 | int force_busy; /* force busy bit */ |
| 240 | UINT8 sw1; /* DS/DD */ |
| 241 | UINT8 sw2; /* drive type */ |
| 242 | UINT8 sw3; /* ABC bus address */ |
| 246 | 243 | |
| 247 | 244 | /* devices */ |
| 248 | 245 | running_device *bus; |
| r9219 | r9220 | |
| 387 | 384 | |
| 388 | 385 | slow_t *conkort = get_safe_token_slow(device->owner()); |
| 389 | 386 | |
| 390 | | /* drive selection */ |
| 387 | // drive selection |
| 391 | 388 | if (BIT(data, 0)) wd17xx_set_drive(device, 0); |
| 392 | 389 | if (BIT(data, 1)) wd17xx_set_drive(device, 1); |
| 393 | 390 | // if (BIT(data, 2)) wd17xx_set_drive(device, 2); |
| 394 | 391 | conkort->sel0 = BIT(data, 0); |
| 395 | 392 | conkort->sel1 = BIT(data, 1); |
| 396 | 393 | |
| 397 | | /* motor enable */ |
| 394 | // motor enable |
| 398 | 395 | int mtron = BIT(data, 3); |
| 399 | 396 | floppy_mon_w(conkort->image0, mtron); |
| 400 | 397 | floppy_mon_w(conkort->image1, mtron); |
| 401 | 398 | floppy_drive_set_ready_state(conkort->image0, !mtron, 1); |
| 402 | 399 | floppy_drive_set_ready_state(conkort->image1, !mtron, 1); |
| 403 | 400 | |
| 404 | | /* disk side selection */ |
| 401 | // side selection |
| 405 | 402 | //wd17xx_set_side(device, BIT(data, 4)); |
| 406 | 403 | |
| 407 | | /* wait enable */ |
| 404 | // wait enable |
| 408 | 405 | conkort->wait_enable = BIT(data, 6); |
| 409 | 406 | |
| 410 | | /* FDC master reset */ |
| 407 | // FDC master reset |
| 411 | 408 | wd17xx_mr_w(device, BIT(data, 7)); |
| 412 | 409 | } |
| 413 | 410 | |
| r9219 | r9220 | |
| 430 | 427 | |
| 431 | 428 | slow_t *conkort = get_safe_token_slow(device->owner()); |
| 432 | 429 | |
| 433 | | /* interrupt */ |
| 434 | | abcbus_int_w(conkort->bus, BIT(data, 0) ? CLEAR_LINE : ASSERT_LINE); |
| 430 | // interrupt |
| 431 | // abcbus_int_w(conkort->bus, BIT(data, 0) ? CLEAR_LINE : ASSERT_LINE); |
| 435 | 432 | |
| 436 | 433 | conkort->status = data & 0xfe; |
| 437 | 434 | } |
| r9219 | r9220 | |
| 443 | 440 | |
| 444 | 441 | if (!conkort->wait_enable && !conkort->fdc_irq && !conkort->fdc_drq) |
| 445 | 442 | { |
| 446 | | /* TODO: this is really connected to the Z80 WAIT line */ |
| 443 | // TODO: this is really connected to the Z80 WAIT line |
| 447 | 444 | cpu_set_input_line(conkort->cpu, INPUT_LINE_HALT, ASSERT_LINE); |
| 448 | 445 | } |
| 449 | 446 | |
| r9219 | r9220 | |
| 455 | 452 | case 3: data = wd17xx_data_r(device, 0); break; |
| 456 | 453 | } |
| 457 | 454 | |
| 458 | | /* FD1791 has inverted data lines */ |
| 455 | // FD1791 has inverted data lines |
| 459 | 456 | return data ^ 0xff; |
| 460 | 457 | } |
| 461 | 458 | |
| r9219 | r9220 | |
| 466 | 463 | if (!conkort->wait_enable && !conkort->fdc_irq && !conkort->fdc_drq) |
| 467 | 464 | { |
| 468 | 465 | logerror("WAIT\n"); |
| 469 | | /* TODO: this is really connected to the Z80 WAIT line */ |
| 466 | // TODO: this is really connected to the Z80 WAIT line |
| 470 | 467 | cpu_set_input_line(conkort->cpu, INPUT_LINE_HALT, ASSERT_LINE); |
| 471 | 468 | } |
| 472 | 469 | |
| 473 | | /* FD1791 has inverted data lines */ |
| 470 | // FD1791 has inverted data lines |
| 474 | 471 | data ^= 0xff; |
| 475 | 472 | |
| 476 | 473 | switch (offset & 0x03) |
| r9219 | r9220 | |
| 488 | 485 | { |
| 489 | 486 | fast_t *conkort = get_safe_token_fast(device); |
| 490 | 487 | |
| 491 | | conkort->cs = (data == input_port_read(device->machine, "luxor_55_21046:SW3")); |
| 488 | // conkort->cs = (data == input_port_read(device->machine, "luxor_55_21046:SW3")); |
| 489 | conkort->cs = (data == conkort->sw3); |
| 492 | 490 | } |
| 493 | 491 | |
| 494 | 492 | READ8_DEVICE_HANDLER( luxor_55_21046_stat_r ) |
| r9219 | r9220 | |
| 633 | 631 | |
| 634 | 632 | fast_t *conkort = get_safe_token_fast(device->owner()); |
| 635 | 633 | |
| 636 | | /* drive select */ |
| 634 | // drive select |
| 637 | 635 | if (BIT(data, 0)) wd17xx_set_drive(device, 0); |
| 638 | 636 | if (BIT(data, 1)) wd17xx_set_drive(device, 1); |
| 639 | 637 | //if (BIT(data, 2)) wd17xx_set_drive(device, 2); |
| 640 | 638 | |
| 641 | | /* motor enable */ |
| 639 | // motor enable |
| 642 | 640 | int mtron = BIT(data, 3); |
| 643 | 641 | floppy_mon_w(conkort->image0, !mtron); |
| 644 | 642 | floppy_mon_w(conkort->image1, !mtron); |
| 645 | 643 | floppy_drive_set_ready_state(conkort->image0, mtron, 1); |
| 646 | 644 | floppy_drive_set_ready_state(conkort->image1, mtron, 1); |
| 647 | 645 | |
| 648 | | /* side select */ |
| 646 | // side select |
| 649 | 647 | wd17xx_set_side(device, BIT(data, 5)); |
| 650 | 648 | } |
| 651 | 649 | |
| r9219 | r9220 | |
| 668 | 666 | |
| 669 | 667 | */ |
| 670 | 668 | |
| 671 | | /* master reset */ |
| 669 | // FDC master reset |
| 672 | 670 | wd17xx_mr_w(device, BIT(data, 0)); |
| 673 | 671 | |
| 674 | | /* density select */ |
| 672 | // density select |
| 675 | 673 | wd17xx_dden_w(device, BIT(data, 1)); |
| 676 | 674 | } |
| 677 | 675 | |
| r9219 | r9220 | |
| 696 | 694 | |
| 697 | 695 | UINT8 data = 0; |
| 698 | 696 | |
| 699 | | /* busy */ |
| 697 | // busy |
| 700 | 698 | data |= conkort->busy; |
| 701 | 699 | |
| 702 | | /* SW1 */ |
| 703 | | UINT8 sw1 = input_port_read(device->machine, "luxor_55_21046:SW1") & 0x0f; |
| 700 | // SW1 |
| 701 | // UINT8 sw1 = input_port_read(device->machine, "luxor_55_21046:SW1") & 0x0f; |
| 702 | UINT8 sw1 = conkort->sw1; |
| 704 | 703 | |
| 705 | 704 | data |= sw1 << 4; |
| 706 | 705 | |
| 707 | | /* SW2 */ |
| 708 | | UINT8 sw2 = input_port_read(device->machine, "luxor_55_21046:SW2") & 0x0f; |
| 706 | // SW2 |
| 707 | // UINT8 sw2 = input_port_read(device->machine, "luxor_55_21046:SW2") & 0x0f; |
| 708 | UINT8 sw2 = conkort->sw2; |
| 709 | 709 | |
| 710 | | // TTL inputs float high |
| 710 | // TTL inputs float high so DIP switch in off position equals 1 |
| 711 | 711 | int sw2_1 = BIT(sw2, 0) ? 1 : BIT(offset, 8); |
| 712 | 712 | int sw2_2 = BIT(sw2, 1) ? 1 : BIT(offset, 9); |
| 713 | 713 | int sw2_3 = BIT(sw2, 2) ? 1 : BIT(offset, 10); |
| r9219 | r9220 | |
| 778 | 778 | |
| 779 | 779 | PORT_START("luxor_55_10828:S1") |
| 780 | 780 | PORT_DIPNAME( 0x01, 0x01, "Card Address" ) PORT_DIPLOCATION("S1:1") |
| 781 | | PORT_DIPSETTING( 0x00, "44" ) |
| 782 | | PORT_DIPSETTING( 0x01, "45" ) |
| 781 | PORT_DIPSETTING( 0x00, "44 (ABC 832/834/850)" ) |
| 782 | PORT_DIPSETTING( 0x01, "45 (ABC 830)" ) |
| 783 | 783 | INPUT_PORTS_END |
| 784 | 784 | |
| 785 | 785 | INPUT_PORTS_START( luxor_55_21046 ) |
| r9219 | r9220 | |
| 885 | 885 | |
| 886 | 886 | UINT8 data = 0x04; |
| 887 | 887 | |
| 888 | | /* single/double sided drive */ |
| 888 | // single/double sided drive |
| 889 | 889 | UINT8 sw1 = input_port_read(device->machine, "luxor_55_10828:SW1") & 0x0f; |
| 890 | 890 | int ds0 = conkort->sel0 ? BIT(sw1, 0) : 1; |
| 891 | 891 | int ds1 = conkort->sel1 ? BIT(sw1, 1) : 1; |
| 892 | 892 | data |= !(ds0 & ds1); |
| 893 | 893 | |
| 894 | | /* single/double density drive */ |
| 894 | // single/double density drive |
| 895 | 895 | int dd0 = conkort->sel0 ? BIT(sw1, 2) : 1; |
| 896 | 896 | int dd1 = conkort->sel1 ? BIT(sw1, 3) : 1; |
| 897 | 897 | data |= !(dd0 & dd1) << 1; |
| 898 | 898 | |
| 899 | | /* radial/binary drive select */ |
| 899 | // radial/binary drive select |
| 900 | 900 | data |= 0x10; |
| 901 | 901 | |
| 902 | | /* head load */ |
| 902 | // head load |
| 903 | 903 | // data |= wd17xx_hdld_r(device) << 6; |
| 904 | 904 | data |= 0x40; |
| 905 | 905 | |
| 906 | | /* FDC interrupt request */ |
| 906 | // FDC interrupt request |
| 907 | 907 | data |= conkort->fdc_irq << 7; |
| 908 | 908 | |
| 909 | 909 | return data; |
| r9219 | r9220 | |
| 928 | 928 | |
| 929 | 929 | slow_t *conkort = get_safe_token_slow(device->owner()); |
| 930 | 930 | |
| 931 | | /* double density enable */ |
| 931 | // double density enable |
| 932 | 932 | wd17xx_dden_w(conkort->fd1791, BIT(data, 3)); |
| 933 | 933 | |
| 934 | | /* head load timing */ |
| 934 | // head load timing |
| 935 | 935 | // wd17xx_hlt_w(conkort->fd1791, BIT(data, 5)); |
| 936 | 936 | } |
| 937 | 937 | |
| r9219 | r9220 | |
| 980 | 980 | CF load |
| 981 | 981 | 87 enable DMA |
| 982 | 982 | |
| 983 | | ?? |
| 984 | | -- |
| 983 | WRITE TO DISK |
| 984 | ------------- |
| 985 | 985 | C3 14 28 95 7B 02 8A CF 05 AF CF 87 |
| 986 | 986 | |
| 987 | 987 | C3 reset |
| r9219 | r9220 | |
| 1015 | 1015 | |
| 1016 | 1016 | conkort->dma_irq = state; |
| 1017 | 1017 | |
| 1018 | // FDC and DMA interrupts are wire-ORed to the Z80 |
| 1018 | 1019 | cpu_set_input_line(conkort->cpu, INPUT_LINE_IRQ0, conkort->fdc_irq | conkort->dma_irq); |
| 1019 | 1020 | } |
| 1020 | 1021 | |
| r9219 | r9220 | |
| 1043 | 1044 | |
| 1044 | 1045 | if (state) |
| 1045 | 1046 | { |
| 1046 | | /* TODO: this is really connected to the Z80 WAIT line */ |
| 1047 | // TODO: this is really connected to the Z80 WAIT line |
| 1047 | 1048 | cpu_set_input_line(conkort->cpu, INPUT_LINE_HALT, CLEAR_LINE); |
| 1048 | 1049 | } |
| 1049 | 1050 | } |
| r9219 | r9220 | |
| 1056 | 1057 | |
| 1057 | 1058 | if (state) |
| 1058 | 1059 | { |
| 1059 | | /* TODO: this is really connected to the Z80 WAIT line */ |
| 1060 | // TODO: this is really connected to the Z80 WAIT line |
| 1060 | 1061 | cpu_set_input_line(conkort->cpu, INPUT_LINE_HALT, CLEAR_LINE); |
| 1061 | 1062 | } |
| 1062 | 1063 | } |
| r9219 | r9220 | |
| 1068 | 1069 | DEVCB_LINE(slow_fd1791_drq_w), |
| 1069 | 1070 | { FLOPPY_0, FLOPPY_1, NULL, NULL } |
| 1070 | 1071 | }; |
| 1071 | | /* |
| 1072 | |
| 1072 | 1073 | static FLOPPY_OPTIONS_START( fd2 ) |
| 1074 | // NOTE: FD2 cannot be used with the Luxor controller card, |
| 1075 | // it has a proprietary one. This is just for reference. |
| 1073 | 1076 | FLOPPY_OPTION(fd2, "dsk", "Scandia Metric FD2", basicdsk_identify_default, basicdsk_construct_default, |
| 1074 | 1077 | HEADS([1]) |
| 1075 | 1078 | TRACKS([40]) |
| r9219 | r9220 | |
| 1077 | 1080 | SECTOR_LENGTH([256]) |
| 1078 | 1081 | FIRST_SECTOR_ID([1])) |
| 1079 | 1082 | FLOPPY_OPTIONS_END |
| 1080 | | */ |
| 1081 | | static FLOPPY_OPTIONS_START( abc830 ) |
| 1082 | | FLOPPY_OPTION(abc830, "dsk", "ABC 830", basicdsk_identify_default, basicdsk_construct_default, |
| 1083 | | HEADS([1]) |
| 1084 | | TRACKS([40]) |
| 1085 | | SECTORS([16]) |
| 1086 | | SECTOR_LENGTH([256]) |
| 1087 | | FIRST_SECTOR_ID([1])) |
| 1088 | | FLOPPY_OPTIONS_END |
| 1089 | 1083 | |
| 1090 | | static FLOPPY_OPTIONS_START( abc832 ) |
| 1091 | | FLOPPY_OPTION(abc832, "dsk", "ABC 832/834", basicdsk_identify_default, basicdsk_construct_default, |
| 1092 | | HEADS([2]) |
| 1093 | | TRACKS([80]) |
| 1094 | | SECTORS([16]) |
| 1095 | | SECTOR_LENGTH([256]) |
| 1096 | | FIRST_SECTOR_ID([1])) |
| 1097 | | FLOPPY_OPTIONS_END |
| 1098 | | |
| 1099 | | static FLOPPY_OPTIONS_START( abc838 ) |
| 1100 | | FLOPPY_OPTION(abc838, "dsk", "ABC 838", basicdsk_identify_default, basicdsk_construct_default, |
| 1101 | | HEADS([2]) |
| 1102 | | TRACKS([77]) |
| 1103 | | SECTORS([26]) |
| 1104 | | SECTOR_LENGTH([256]) |
| 1105 | | FIRST_SECTOR_ID([1])) |
| 1106 | | FLOPPY_OPTIONS_END |
| 1107 | | /* |
| 1108 | 1084 | static const floppy_config fd2_floppy_config = |
| 1109 | 1085 | { |
| 1110 | 1086 | DEVCB_NULL, |
| r9219 | r9220 | |
| 1116 | 1092 | FLOPPY_OPTIONS_NAME(fd2), |
| 1117 | 1093 | NULL |
| 1118 | 1094 | }; |
| 1119 | | */ |
| 1095 | |
| 1096 | static FLOPPY_OPTIONS_START( abc830 ) |
| 1097 | // NOTE: Real ABC 830 (160KB) disks use a 7:1 sector interleave. |
| 1098 | // |
| 1099 | // The controller ROM is patched to remove the interleaving so |
| 1100 | // you can use disk images with logical sector layout instead. |
| 1101 | // |
| 1102 | // Specify INTERLEAVE([7]) below if you prefer the physical layout. |
| 1103 | FLOPPY_OPTION(abc830, "dsk", "Luxor ABC 830", basicdsk_identify_default, basicdsk_construct_default, |
| 1104 | HEADS([1]) |
| 1105 | TRACKS([40]) |
| 1106 | SECTORS([16]) |
| 1107 | SECTOR_LENGTH([256]) |
| 1108 | FIRST_SECTOR_ID([1])) |
| 1109 | FLOPPY_OPTIONS_END |
| 1110 | |
| 1120 | 1111 | static const floppy_config abc830_floppy_config = |
| 1121 | 1112 | { |
| 1122 | 1113 | DEVCB_NULL, |
| r9219 | r9220 | |
| 1129 | 1120 | NULL |
| 1130 | 1121 | }; |
| 1131 | 1122 | |
| 1123 | static FLOPPY_OPTIONS_START( abc832 ) |
| 1124 | FLOPPY_OPTION(abc832, "dsk", "Luxor ABC 832/834", basicdsk_identify_default, basicdsk_construct_default, |
| 1125 | HEADS([2]) |
| 1126 | TRACKS([80]) |
| 1127 | SECTORS([16]) |
| 1128 | SECTOR_LENGTH([256]) |
| 1129 | FIRST_SECTOR_ID([1])) |
| 1130 | FLOPPY_OPTIONS_END |
| 1131 | |
| 1132 | 1132 | static const floppy_config abc832_floppy_config = |
| 1133 | 1133 | { |
| 1134 | 1134 | DEVCB_NULL, |
| r9219 | r9220 | |
| 1141 | 1141 | NULL |
| 1142 | 1142 | }; |
| 1143 | 1143 | |
| 1144 | static FLOPPY_OPTIONS_START( abc838 ) |
| 1145 | FLOPPY_OPTION(abc838, "dsk", "Luxor ABC 838", basicdsk_identify_default, basicdsk_construct_default, |
| 1146 | HEADS([2]) |
| 1147 | TRACKS([77]) |
| 1148 | SECTORS([26]) |
| 1149 | SECTOR_LENGTH([256]) |
| 1150 | FIRST_SECTOR_ID([1])) |
| 1151 | FLOPPY_OPTIONS_END |
| 1152 | |
| 1144 | 1153 | static const floppy_config abc838_floppy_config = |
| 1145 | 1154 | { |
| 1146 | 1155 | DEVCB_NULL, |
| r9219 | r9220 | |
| 1161 | 1170 | |
| 1162 | 1171 | conkort->fdc_irq = state; |
| 1163 | 1172 | |
| 1173 | // FDC and DMA interrupts are wire-ORed to the Z80 |
| 1164 | 1174 | cpu_set_input_line(conkort->cpu, INPUT_LINE_IRQ0, conkort->fdc_irq | conkort->dma_irq); |
| 1165 | 1175 | } |
| 1166 | 1176 | |
| r9219 | r9220 | |
| 1258 | 1268 | slow_t *conkort = get_safe_token_slow(device); |
| 1259 | 1269 | const conkort_config *config = get_safe_config(device); |
| 1260 | 1270 | |
| 1261 | | /* find our CPU */ |
| 1271 | // find our CPU |
| 1262 | 1272 | conkort->cpu = device->subdevice(Z80_TAG); |
| 1263 | 1273 | |
| 1264 | | /* find devices */ |
| 1274 | // find devices |
| 1265 | 1275 | conkort->bus = device->machine->device(config->bus_tag); |
| 1266 | 1276 | conkort->z80pio = device->subdevice(Z80PIO_TAG); |
| 1267 | 1277 | conkort->fd1791 = device->subdevice(FD1791_TAG); |
| 1268 | 1278 | conkort->image0 = device->subdevice(FLOPPY_0); |
| 1269 | 1279 | conkort->image1 = device->subdevice(FLOPPY_1); |
| 1270 | 1280 | |
| 1271 | | /* register for state saving */ |
| 1281 | // register for state saving |
| 1272 | 1282 | state_save_register_device_item(device, 0, conkort->cs); |
| 1273 | 1283 | state_save_register_device_item(device, 0, conkort->status); |
| 1274 | 1284 | state_save_register_device_item(device, 0, conkort->data); |
| r9219 | r9220 | |
| 1278 | 1288 | state_save_register_device_item(device, 0, conkort->sel0); |
| 1279 | 1289 | state_save_register_device_item(device, 0, conkort->sel1); |
| 1280 | 1290 | |
| 1281 | | /* patch out protection checks */ |
| 1291 | // patch out protection checks |
| 1282 | 1292 | UINT8 *rom = device->subregion("abc830")->base(); |
| 1293 | rom[0x00fa] = 0xff; |
| 1294 | rom[0x0336] = 0xff; |
| 1283 | 1295 | rom[0x0718] = 0xff; |
| 1284 | 1296 | rom[0x072c] = 0xff; |
| 1285 | | rom[0x0336] = 0xff; |
| 1286 | | rom[0x00fa] = 0xff; |
| 1287 | 1297 | rom[0x0771] = 0xff; |
| 1288 | 1298 | rom[0x0788] = 0xff; |
| 1289 | 1299 | } |
| r9219 | r9220 | |
| 1358 | 1368 | fast_t *conkort = get_safe_token_fast(device); |
| 1359 | 1369 | const conkort_config *config = get_safe_config(device); |
| 1360 | 1370 | |
| 1361 | | /* find our CPU */ |
| 1371 | // find our CPU |
| 1362 | 1372 | conkort->cpu = device->subdevice(Z80_TAG); |
| 1363 | 1373 | |
| 1364 | | /* find devices */ |
| 1374 | // find devices |
| 1365 | 1375 | conkort->bus = device->machine->device(config->bus_tag); |
| 1366 | 1376 | conkort->z80dma = device->subdevice(Z80DMA_TAG); |
| 1367 | 1377 | conkort->wd1793 = device->subdevice(SAB1793_TAG); |
| 1368 | 1378 | conkort->image0 = device->subdevice(FLOPPY_0); |
| 1369 | 1379 | conkort->image1 = device->subdevice(FLOPPY_1); |
| 1370 | 1380 | |
| 1381 | // set initial values |
| 1371 | 1382 | conkort->dma_irq = 0; |
| 1372 | 1383 | conkort->fdc_irq = 0; |
| 1373 | 1384 | conkort->busy = 0; |
| 1374 | 1385 | |
| 1375 | | /* register for state saving */ |
| 1386 | // inherit DIP switch settings |
| 1387 | conkort->sw1 = config->sw1; |
| 1388 | conkort->sw2 = config->sw2; |
| 1389 | conkort->sw3 = config->address; |
| 1390 | |
| 1391 | // register for state saving |
| 1376 | 1392 | state_save_register_device_item(device, 0, conkort->cs); |
| 1377 | 1393 | state_save_register_device_item(device, 0, conkort->status); |
| 1378 | 1394 | state_save_register_device_item(device, 0, conkort->data_in); |
| r9219 | r9220 | |
| 1381 | 1397 | state_save_register_device_item(device, 0, conkort->dma_irq); |
| 1382 | 1398 | state_save_register_device_item(device, 0, conkort->busy); |
| 1383 | 1399 | |
| 1384 | | /* patch out sector skew table */ |
| 1400 | // patch out sector skew table |
| 1385 | 1401 | UINT8 *rom = device->subregion("conkort")->base(); |
| 1386 | 1402 | |
| 1387 | 1403 | for (int i = 0; i < 16; i++) |