Skip to content

Commit

Permalink
Merge pull request #100 from dominicbeesley/master
Browse files Browse the repository at this point in the history
vsprojx fix for 32016 and a debugger bugfix
  • Loading branch information
SteveFosdick authored Mar 17, 2020
2 parents b782546 + f6ea88a commit 696d30b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ autom4te.cache/
b-em
b-em.exe
b-em.res
b-em.ilk
config.log
config.status
configure
Expand Down Expand Up @@ -42,3 +43,5 @@ b-em.ipdb
b-em.iobj
b-em.pdb
src/hdfmt.exe
scsi/*

12 changes: 10 additions & 2 deletions src/6502.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,14 @@ static inline uint16_t read_zp_indirect(uint16_t zp)
static uint32_t do_readmem(uint32_t addr)
{

if (addr >= 0x10000)
return 0xFF;

if (pc == addr)
fetchc[addr] = 31;
fetchc[addr] = 31;
else
readc[addr] = 31;
readc[addr] = 31;

if (memstat[vis20k][addr >> 8])
return memlook[vis20k][addr >> 8][addr];
if (MASTER && (acccon & 0x40) && addr >= 0xFC00)
Expand Down Expand Up @@ -449,7 +453,11 @@ static void do_writemem(uint32_t addr, uint32_t val)
{
int c;

if (addr >= 0x10000)
return;

writec[addr] = 31;

c = memstat[vis20k][addr >> 8];
if (c == 1) {
memlook[vis20k][addr >> 8][addr] = val;
Expand Down
4 changes: 2 additions & 2 deletions src/b-em.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</PrecompiledHeader>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>BEM;WIN32;INCLUDE_DEBUGGER;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>USE_MEMORY_POINTER;BEM;WIN32;INCLUDE_DEBUGGER;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<UndefinePreprocessorDefinitions>UNICODE;_UNICODE;%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
</ClCompile>
<Link>
Expand All @@ -86,7 +86,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>BEM;WIN32;INCLUDE_DEBUGGER;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>USE_MEMORY_POINTER;BEM;WIN32;INCLUDE_DEBUGGER;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<UndefinePreprocessorDefinitions>UNICODE;_UNICODE;%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
Expand Down

0 comments on commit 696d30b

Please sign in to comment.