From: <sba...@us...> - 2021-03-24 22:54:31
|
This is an automated email from the git hooks/post-receive-user script. sbaldovi pushed a commit to branch master in repository fuse. View the commit online: https://sourceforge.net/p/fuse-emulator/fuse/ci/da98b07c8ed6abf90310cdb85315feb6629ebb34/ commit da98b07c8ed6abf90310cdb85315feb6629ebb34 Author: Sergio Baldoví <ser...@gm...> AuthorDate: Wed Mar 24 23:33:45 2021 +0100 Simplify TTX2000S redundant check in readbyte() --- memory_pages.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/memory_pages.c b/memory_pages.c index c7543627..2cb8ccc4 100644 --- a/memory_pages.c +++ b/memory_pages.c @@ -396,10 +396,8 @@ readbyte( libspectrum_word address ) return spectranet_w5100_read( mapping, address ); } - if( ttx2000s_paged ) { - if( address >= 0x2000 && address < 0x4000 ) + if( ttx2000s_paged && address >= 0x2000 ) return ttx2000s_sram_read( address ); - } } return mapping->page[ address & MEMORY_PAGE_SIZE_MASK ]; |