|
| 1 | +///////////////////////////////////////////////////////////////// |
| 2 | +marker $$testing _copy_fuji_cmd_data uses default timlo of $0F and device $70$$ |
| 3 | +///////////////////////////////////////////////////////////////// |
| 4 | + |
| 5 | +memory load atari "${BINARY_PATH}" |
| 6 | +symbols load "${SYMBOLS_PATH}" |
| 7 | + |
| 8 | +// clear IO_DCB |
| 9 | +memory fill #0x0300~#0x030C 0x00 |
| 10 | + |
| 11 | +// write our data to be copied |
| 12 | +symbols add cmd_table = 0x1F00 |
| 13 | +memory write $cmd_table 0x(a0,a1,a2,a3,a4,a5) |
| 14 | + |
| 15 | +// setup the application |
| 16 | +run init until CP = $end_setup |
| 17 | + |
| 18 | +// call the function under test, takes parameter of our data table of 6 bytes |
| 19 | +registers set A = <$cmd_table |
| 20 | +registers set X = >$cmd_table |
| 21 | +run $_copy_fuji_cmd_data until false |
| 22 | + |
| 23 | +// check data was written from table area to IO_DCB |
| 24 | +assert #0x0300 ~ 0x(70,01,a0,a1,00,00,0f,00,a2,a3,a4,a5,00) $$IO_DCB setup correctly$$ |
| 25 | + |
| 26 | +///////////////////////////////////////////////////////////////// |
| 27 | +marker $$testing _copy_fuji_cmd_data uses set timlo $69 and device 70$$ |
| 28 | +///////////////////////////////////////////////////////////////// |
| 29 | + |
| 30 | +memory load atari "${BINARY_PATH}" |
| 31 | +symbols load "${SYMBOLS_PATH}" |
| 32 | + |
| 33 | +// clear IO_DCB |
| 34 | +memory fill #0x0300~#0x030C 0x00 |
| 35 | + |
| 36 | +// write our data to be copied |
| 37 | +symbols add cmd_table = 0x1F00 |
| 38 | +memory write $cmd_table 0x(a0,a1,a2,a3,a4,a5) |
| 39 | +memory write $_fn_default_timeout 0x(69) |
| 40 | + |
| 41 | +// setup the application |
| 42 | +run init until CP = $end_setup |
| 43 | + |
| 44 | +// call the function under test, takes parameter of our data table of 6 bytes |
| 45 | +registers set A = <$cmd_table |
| 46 | +registers set X = >$cmd_table |
| 47 | +run $_copy_fuji_cmd_data until false |
| 48 | + |
| 49 | +// check data was written from table area to IO_DCB |
| 50 | +assert #0x0300 ~ 0x(70,01,a0,a1,00,00,69,00,a2,a3,a4,a5,00) $$IO_DCB setup correctly$$ |
| 51 | + |
| 52 | +///////////////////////////////////////////////////////////////// |
| 53 | +marker $$testing _copy_network_cmd_data uses default timlo of $0F and device $71$$ |
| 54 | +///////////////////////////////////////////////////////////////// |
| 55 | + |
| 56 | +memory load atari "${BINARY_PATH}" |
| 57 | +symbols load "${SYMBOLS_PATH}" |
| 58 | + |
| 59 | +// clear IO_DCB |
| 60 | +memory fill #0x0300~#0x030C 0x00 |
| 61 | + |
| 62 | +// write our data to be copied |
| 63 | +symbols add cmd_table = 0x1F00 |
| 64 | +memory write $cmd_table 0x(a0,a1,a2,a3,a4,a5) |
| 65 | + |
| 66 | +// setup the application |
| 67 | +run init until CP = $end_setup |
| 68 | + |
| 69 | +// call the function under test, takes parameter of our data table of 6 bytes |
| 70 | +registers set A = <$cmd_table |
| 71 | +registers set X = >$cmd_table |
| 72 | +run $_copy_network_cmd_data until false |
| 73 | + |
| 74 | +// check data was written from table area to IO_DCB |
| 75 | +assert #0x0300 ~ 0x(71,00,a0,a1,00,00,0f,00,a2,a3,a4,a5,00) $$IO_DCB setup correctly$$ |
| 76 | + |
| 77 | +///////////////////////////////////////////////////////////////// |
| 78 | +marker $$testing _copy_network_cmd_data uses set timlo $69 and device $71$$ |
| 79 | +///////////////////////////////////////////////////////////////// |
| 80 | + |
| 81 | +memory load atari "${BINARY_PATH}" |
| 82 | +symbols load "${SYMBOLS_PATH}" |
| 83 | + |
| 84 | +// clear IO_DCB |
| 85 | +memory fill #0x0300~#0x030C 0x00 |
| 86 | + |
| 87 | +// write our data to be copied |
| 88 | +symbols add cmd_table = 0x1F00 |
| 89 | +memory write $cmd_table 0x(a0,a1,a2,a3,a4,a5) |
| 90 | +memory write $_fn_default_timeout 0x(69) |
| 91 | + |
| 92 | +// setup the application |
| 93 | +run init until CP = $end_setup |
| 94 | + |
| 95 | +// call the function under test, takes parameter of our data table of 6 bytes |
| 96 | +registers set A = <$cmd_table |
| 97 | +registers set X = >$cmd_table |
| 98 | +run $_copy_network_cmd_data until false |
| 99 | + |
| 100 | +// check data was written from table area to IO_DCB |
| 101 | +assert #0x0300 ~ 0x(71,00,a0,a1,00,00,69,00,a2,a3,a4,a5,00) $$IO_DCB setup correctly$$ |
| 102 | + |
0 commit comments