/dports/games/libretro-fuse/fuse-libretro-8b51f87/fuse/machines/ |
H A D | pentagon1024.c | 91 machine_current->ram.last_byte2 = 0; in pentagon1024_reset() 92 machine_current->ram.special = 0; in pentagon1024_reset() 118 if( machine_current->ram.locked ) return; in pentagon1024_memoryport_write() 120 machine_current->ram.last_byte = b; in pentagon1024_memoryport_write() 121 machine_current->memory_map(); in pentagon1024_memoryport_write() 124 machine_current->ram.locked = b & 0x20; in pentagon1024_memoryport_write() 131 if( machine_current->ram.locked ) return; in pentagon1024_v22_memoryport_write() 133 machine_current->ram.last_byte2 = b; in pentagon1024_v22_memoryport_write() 142 machine_current->memory_map(); in pentagon1024_v22_memoryport_write() 162 machine_current->ram.current_rom = rom; in pentagon1024_memory_map() [all …]
|
H A D | spec128.c | 98 machine_current->ram.locked=0; in spec128_common_reset() 99 machine_current->ram.last_byte = 0; in spec128_common_reset() 101 machine_current->ram.current_page=0; in spec128_common_reset() 102 machine_current->ram.current_rom=0; in spec128_common_reset() 128 if( machine_current->ram.locked ) return; in spec128_memoryport_write() 130 machine_current->ram.last_byte = b; in spec128_memoryport_write() 132 machine_current->memory_map(); in spec128_memoryport_write() 134 machine_current->ram.locked = b & 0x20; in spec128_memoryport_write() 141 machine_current->ram.current_rom = rom; in spec128_select_rom() 148 machine_current->ram.current_page = page; in spec128_select_page() [all …]
|
H A D | scorpion.c | 95 machine_current->ram.last_byte2 = 0; in scorpion_reset() 96 machine_current->ram.special = 0; in scorpion_reset() 123 screen = ( machine_current->ram.last_byte & 0x08 ) ? 7 : 5; in scorpion_memory_map() 130 if( machine_current->ram.last_byte2 & 0x02 ) { in scorpion_memory_map() 133 rom = ( machine_current->ram.last_byte & 0x10 ) >> 4; in scorpion_memory_map() 135 machine_current->ram.current_rom = rom; in scorpion_memory_map() 137 if( machine_current->ram.last_byte2 & 0x01 ) { in scorpion_memory_map() 139 machine_current->ram.special = 1; in scorpion_memory_map() 144 page = ( ( machine_current->ram.last_byte2 & 0x10 ) >> 1 ) | in scorpion_memory_map() 145 ( machine_current->ram.last_byte & 0x07 ); in scorpion_memory_map() [all …]
|
H A D | pentagon512.c | 106 machine_current->ram.last_byte2 = 0; in pentagon_reset() 107 machine_current->ram.special = 0; in pentagon_reset() 119 screen = ( machine_current->ram.last_byte & 0x08 ) ? 7 : 5; in pentagon_memory_map() 126 if( beta_active && !( machine_current->ram.last_byte & 0x10 ) ) { in pentagon_memory_map() 129 rom = ( machine_current->ram.last_byte & 0x10 ) >> 4; in pentagon_memory_map() 132 machine_current->ram.current_rom = rom; in pentagon_memory_map() 136 page = machine_current->ram.last_byte & 0x07; in pentagon_memory_map() 138 page += ( machine_current->ram.last_byte & 0xC0 ) >> 3; in pentagon_memory_map() 141 machine_current->ram.current_page = page; in pentagon_memory_map()
|
H A D | specplus3.c | 192 machine_current->ram.current_page=0; machine_current->ram.current_rom=0; in specplus3_plus2a_common_reset() 193 machine_current->ram.locked=0; in specplus3_plus2a_common_reset() 194 machine_current->ram.special=0; in specplus3_plus2a_common_reset() 195 machine_current->ram.last_byte=0; in specplus3_plus2a_common_reset() 196 machine_current->ram.last_byte2=0; in specplus3_plus2a_common_reset() 262 if( machine_current->capabilities && in specplus3_memoryport2_write() 277 machine_current->ram.last_byte2 = b; in specplus3_memoryport2_write() 279 machine_current->memory_map(); in specplus3_memoryport2_write() 305 machine_current->ram.special = 1; in specplus3_memory_map() 311 machine_current->ram.special = 0; in specplus3_memory_map() [all …]
|
/dports/emulators/fuse/fuse-1.6.0/machines/ |
H A D | pentagon1024.c | 89 machine_current->ram.last_byte2 = 0; in pentagon1024_reset() 90 machine_current->ram.special = 0; in pentagon1024_reset() 118 if( machine_current->ram.locked ) return; in pentagon1024_memoryport_write() 120 machine_current->ram.last_byte = b; in pentagon1024_memoryport_write() 121 machine_current->memory_map(); in pentagon1024_memoryport_write() 124 machine_current->ram.locked = b & 0x20; in pentagon1024_memoryport_write() 131 if( machine_current->ram.locked ) return; in pentagon1024_v22_memoryport_write() 133 machine_current->ram.last_byte2 = b; in pentagon1024_v22_memoryport_write() 142 machine_current->memory_map(); in pentagon1024_v22_memoryport_write() 162 machine_current->ram.current_rom = rom; in pentagon1024_memory_map() [all …]
|
H A D | spec128.c | 96 machine_current->ram.locked=0; in spec128_common_reset() 97 machine_current->ram.last_byte = 0; in spec128_common_reset() 99 machine_current->ram.current_page=0; in spec128_common_reset() 100 machine_current->ram.current_rom=0; in spec128_common_reset() 126 if( machine_current->ram.locked ) return; in spec128_memoryport_write() 128 machine_current->ram.last_byte = b; in spec128_memoryport_write() 130 machine_current->memory_map(); in spec128_memoryport_write() 132 machine_current->ram.locked = b & 0x20; in spec128_memoryport_write() 139 machine_current->ram.current_rom = rom; in spec128_select_rom() 146 machine_current->ram.current_page = page; in spec128_select_page() [all …]
|
H A D | specplus3.c | 230 machine_current->ram.current_page=0; machine_current->ram.current_rom=0; in specplus3_plus2a_common_reset() 231 machine_current->ram.locked=0; in specplus3_plus2a_common_reset() 232 machine_current->ram.special=0; in specplus3_plus2a_common_reset() 233 machine_current->ram.last_byte=0; in specplus3_plus2a_common_reset() 234 machine_current->ram.last_byte2=0; in specplus3_plus2a_common_reset() 300 if( machine_current->capabilities && in specplus3_memoryport2_write_internal() 308 machine_current->ram.last_byte2 = b; in specplus3_memoryport2_write_internal() 310 machine_current->memory_map(); in specplus3_memoryport2_write_internal() 345 machine_current->ram.special = 1; in specplus3_memory_map() 351 machine_current->ram.special = 0; in specplus3_memory_map() [all …]
|
H A D | scorpion.c | 93 machine_current->ram.last_byte2 = 0; in scorpion_reset() 94 machine_current->ram.special = 0; in scorpion_reset() 123 screen = ( machine_current->ram.last_byte & 0x08 ) ? 7 : 5; in scorpion_memory_map() 130 if( machine_current->ram.last_byte2 & 0x02 ) { in scorpion_memory_map() 133 rom = ( machine_current->ram.last_byte & 0x10 ) >> 4; in scorpion_memory_map() 135 machine_current->ram.current_rom = rom; in scorpion_memory_map() 137 if( machine_current->ram.last_byte2 & 0x01 ) { in scorpion_memory_map() 139 machine_current->ram.special = 1; in scorpion_memory_map() 144 page = ( ( machine_current->ram.last_byte2 & 0x10 ) >> 1 ) | in scorpion_memory_map() 145 ( machine_current->ram.last_byte & 0x07 ); in scorpion_memory_map() [all …]
|
H A D | pentagon512.c | 106 machine_current->ram.last_byte2 = 0; in pentagon_reset() 107 machine_current->ram.special = 0; in pentagon_reset() 119 screen = ( machine_current->ram.last_byte & 0x08 ) ? 7 : 5; in pentagon_memory_map() 126 if( beta_active && !( machine_current->ram.last_byte & 0x10 ) ) { in pentagon_memory_map() 129 rom = ( machine_current->ram.last_byte & 0x10 ) >> 4; in pentagon_memory_map() 132 machine_current->ram.current_rom = rom; in pentagon_memory_map() 136 page = machine_current->ram.last_byte & 0x07; in pentagon_memory_map() 138 page += ( machine_current->ram.last_byte & 0xC0 ) >> 3; in pentagon_memory_map() 141 machine_current->ram.current_page = page; in pentagon_memory_map()
|
/dports/games/libretro-fuse/fuse-libretro-8b51f87/fuse/ |
H A D | spectrum.c | 100 : machine_current->timings.tstates_per_frame; in spectrum_frame() 115 event_add( machine_current->timings.tstates_per_frame, in spectrum_frame() 136 machine_current->timings.tstates_per_line; in contend_delay_common() 141 tstates_through_line = time - machine_current->line_times[ 0 ] + in contend_delay_common() 144 tstates_through_line %= machine_current->timings.tstates_per_line; in contend_delay_common() 155 if( tstates_through_line >= machine_current->timings.left_border + in contend_delay_common() 189 machine_current->line_times[ DISPLAY_BORDER_HEIGHT ] ) / in spectrum_unattached_port() 190 machine_current->timings.tstates_per_line; in spectrum_unattached_port() 199 machine_current->line_times[ DISPLAY_BORDER_HEIGHT + line ] + in spectrum_unattached_port() 203 if( tstates_through_line < machine_current->timings.left_border ) in spectrum_unattached_port() [all …]
|
H A D | tape.c | 156 error = tape_autoload( machine_current->machine ); in tape_read_buffer() 361 if ( machine_current->machine == LIBSPECTRUM_MACHINE_TC2068 || in tape_load_trap() 561 switch( machine_current->machine ) { in trap_check_rom() 577 return( machine_current->ram.current_rom == 1 ); in trap_check_rom() 584 return( ! machine_current->ram.special && in trap_check_rom() 585 machine_current->ram.current_rom == 3 ); in trap_check_rom() 590 return( ! machine_current->ram.special && in trap_check_rom() 591 ( machine_current->ram.current_rom == 1 || in trap_check_rom() 592 machine_current->ram.current_rom == 3 )); in trap_check_rom() 609 machine_current->machine ); in trap_check_rom() [all …]
|
/dports/emulators/fuse/fuse-1.6.0/ |
H A D | spectrum.c | 148 : machine_current->timings.tstates_per_frame; in spectrum_frame() 164 event_add( machine_current->timings.tstates_per_frame, in spectrum_frame() 188 machine_current->timings.tstates_per_line; in contend_delay_common() 193 tstates_through_line = time - machine_current->line_times[ 0 ] + in contend_delay_common() 196 tstates_through_line %= machine_current->timings.tstates_per_line; in contend_delay_common() 207 if( tstates_through_line >= machine_current->timings.left_border + in contend_delay_common() 241 machine_current->line_times[ DISPLAY_BORDER_HEIGHT ] ) / in spectrum_unattached_port() 242 machine_current->timings.tstates_per_line; in spectrum_unattached_port() 251 machine_current->line_times[ DISPLAY_BORDER_HEIGHT + line ] + in spectrum_unattached_port() 255 if( tstates_through_line < machine_current->timings.left_border ) in spectrum_unattached_port() [all …]
|
H A D | utils.c | 115 if( !( machine_current->capabilities & in utils_open_file() 143 if( !( machine_current->capabilities & in utils_open_file() 150 if( ( machine_current->capabilities & in utils_open_file() 158 if( machine_current->machine == LIBSPECTRUM_MACHINE_PLUS3 || in utils_open_file() 159 machine_current->machine == LIBSPECTRUM_MACHINE_PLUS2A ) in utils_open_file() 161 else if( machine_current->machine == LIBSPECTRUM_MACHINE_PENT || in utils_open_file() 162 machine_current->machine == LIBSPECTRUM_MACHINE_PENT512 || in utils_open_file() 163 machine_current->machine == LIBSPECTRUM_MACHINE_PENT1024 || in utils_open_file() 164 machine_current->machine == LIBSPECTRUM_MACHINE_SCORP ) in utils_open_file() 184 if( !( machine_current->capabilities & in utils_open_file() [all …]
|
H A D | memory_pages.c | 520 if( !machine_current->ram.romcs ) return; in memory_romcs_map() 546 int capabilities = machine_current->capabilities; in memory_from_snapshot() 665 machine_current->ram.last_byte ); in memory_to_snapshot() 667 machine_current->ram.last_byte2 ); in memory_to_snapshot() 696 switch( machine_current->machine ) { in trap_check_rom() 711 return( machine_current->ram.current_rom == 0 ); in trap_check_rom() 716 return( machine_current->ram.current_rom == 1 ); in trap_check_rom() 723 return( ! machine_current->ram.special && in trap_check_rom() 724 machine_current->ram.current_rom == 3 ); in trap_check_rom() 729 return( ! machine_current->ram.special && in trap_check_rom() [all …]
|
/dports/emulators/fuse/fuse-1.6.0/peripherals/ |
H A D | ay.c | 150 ayinfo *ay = &machine_current->ay; in ay_reset() 166 current = machine_current->ay.current_register; in ay_registerport_read() 174 if(machine_current->ay.registers[7] & 0x40) in ay_registerport_read() 175 return (port_input & machine_current->ay.registers[14]); in ay_registerport_read() 204 current = machine_current->ay.current_register; in ay_dataport_write() 222 machine_current->ay.registers[i] = in ay_state_from_snapshot() 224 sound_ay_write( i, machine_current->ay.registers[i], 0 ); in ay_state_from_snapshot() 242 snap, machine_current->ay.current_register in ay_to_snapshot() 247 machine_current->ay.registers[i] ); in ay_to_snapshot() 253 return machine_current->ay.current_register; in get_current_register() [all …]
|
H A D | ttx2000s.c | 84 machine_current->ram.romcs = 1; in ttx2000s_page() 85 machine_current->memory_map(); in ttx2000s_page() 96 machine_current->ram.romcs = 0; in ttx2000s_unpage() 97 machine_current->memory_map(); in ttx2000s_unpage() 191 machine_current->timings.processor_speed / 100, in ttx2000s_reset() 215 machine_current->memory_map(); in ttx2000s_reset() 216 machine_current->ram.romcs = 1; in ttx2000s_reset() 395 machine_current->timings.processor_speed / 100, in ttx2000s_field_event() 451 machine_current->ram.romcs = 1; in ttx2000s_unittest() 463 machine_current->memory_map(); in ttx2000s_unittest() [all …]
|
H A D | if2.c | 129 machine_current->ram.romcs = 0; in if2_eject() 153 machine_current->ram.romcs = 1; in if2_reset() 181 machine_current->ram.romcs = 1; in if2_from_snapshot() 193 machine_current->memory_map(); in if2_from_snapshot() 220 machine_current->memory_map(); in if2_unittest() 228 machine_current->memory_map(); in if2_unittest()
|
H A D | ula.c | 125 return machine_current->ram.last_byte; in get_7ffd() 137 return machine_current->ram.last_byte2; in get_1ffd() 209 if( machine_current->timex ) { in ula_write() 213 } else if( machine_current->capabilities & LIBSPECTRUM_MACHINE_CAPABILITY_PLUS3_MEMORY ) { in ula_write() 217 …} else if( machine_current->capabilities & LIBSPECTRUM_MACHINE_CAPABILITY_128_MEMORY || !settings_… in ula_write() 271 if( machine_current->ram.port_from_ula( port ) ) { in ula_contend_port_late()
|
/dports/games/libretro-fuse/fuse-libretro-8b51f87/fuse/peripherals/ |
H A D | ay.c | 126 ayinfo *ay = &machine_current->ay; in ay_reset() 142 current = machine_current->ay.current_register; in ay_registerport_read() 150 if(machine_current->ay.registers[7] & 0x40) in ay_registerport_read() 151 return (port_input & machine_current->ay.registers[14]); in ay_registerport_read() 169 machine_current->ay.current_register = (b & 15); in ay_registerport_write() 180 current = machine_current->ay.current_register; in ay_dataport_write() 182 machine_current->ay.registers[ current ] = b & mask[ current ]; in ay_dataport_write() 198 machine_current->ay.registers[i] = in ay_state_from_snapshot() 200 sound_ay_write( i, machine_current->ay.registers[i], 0 ); in ay_state_from_snapshot() 218 snap, machine_current->ay.current_register in ay_to_snapshot() [all …]
|
H A D | if2.c | 116 machine_current->ram.romcs = 0; in if2_eject() 140 machine_current->ram.romcs = 1; in if2_reset() 162 machine_current->ram.romcs = 1; in if2_from_snapshot() 187 machine_current->memory_map(); in if2_from_snapshot() 217 machine_current->memory_map(); in if2_unittest() 225 machine_current->memory_map(); in if2_unittest()
|
H A D | speccyboot.c | 174 machine_current->ram.romcs = 1; in speccyboot_register_write() 175 machine_current->memory_map(); in speccyboot_register_write() 178 machine_current->ram.romcs = 0; in speccyboot_register_write() 179 machine_current->memory_map(); in speccyboot_register_write() 230 machine_current->memory_map(); in speccyboot_unittest()
|
/dports/games/libretro-fuse/fuse-libretro-8b51f87/fuse/timer/ |
H A D | timer.c | 92 ( machine_current->timings.processor_speed / in timer_estimate_speed() 93 machine_current->timings.tstates_per_frame ) - 1; in timer_estimate_speed() 150 event_add( last_tstates + machine_current->timings.tstates_per_frame, in timer_frame_callback_sound() 160 event_add( last_tstates + machine_current->timings.tstates_per_frame, in timer_frame_callback_sound() 183 last_tstates + machine_current->timings.tstates_per_frame; in timer_frame() 211 machine_current->timings.processor_speed in timer_frame()
|
/dports/emulators/fuse/fuse-1.6.0/timer/ |
H A D | timer.c | 92 ( machine_current->timings.processor_speed / in timer_estimate_speed() 93 machine_current->timings.tstates_per_frame ) - 1; in timer_estimate_speed() 162 event_add( last_tstates + machine_current->timings.tstates_per_frame, in timer_frame_callback_sound() 172 event_add( last_tstates + machine_current->timings.tstates_per_frame, in timer_frame_callback_sound() 219 last_tstates + machine_current->timings.tstates_per_frame; in timer_frame() 247 machine_current->timings.processor_speed in timer_frame()
|
/dports/emulators/fuse/fuse-1.6.0/peripherals/disk/ |
H A D | beta.c | 119 machine_current->ram.romcs = 1; in beta_page() 120 machine_current->memory_map(); in beta_page() 128 machine_current->ram.romcs = 0; in beta_unpage() 129 machine_current->memory_map(); in beta_unpage() 226 if( !( machine_current->capabilities & in beta_reset() 247 machine_current->memory_map(); in beta_reset() 396 if( ( machine_current->capabilities & in ui_drive_autoload() 400 machine_current->ram.last_byte |= 0x10; /* Select ROM 1 */ in ui_drive_autoload() 416 if( !( machine_current->capabilities & in beta_enabled_snapshot() 426 if( !( machine_current->capabilities & in beta_from_snapshot() [all …]
|