Skip to content

Commit

Permalink
Z80Converter: some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Mar 30, 2024
1 parent f1adc9b commit dae1423
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 57 deletions.
8 changes: 4 additions & 4 deletions Z80Converter/Z80converter.vcxproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
Expand Down Expand Up @@ -30,7 +30,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v120_xp</PlatformToolset>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
Expand All @@ -43,7 +43,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v120_xp</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
Expand Down Expand Up @@ -100,7 +100,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
Expand Down
5 changes: 3 additions & 2 deletions Z80Converter/dasmz80.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static const char *MnemonicsXCB[256] =
int DAsm(char *S, byte *A)
{
char R[128],H[10],C;
const char *T; const char *P;
const char *T; const char *P; char *PP;
byte *B,J,Offset;

B=A;C='\0';J=0;
Expand All @@ -272,7 +272,8 @@ int DAsm(char *S, byte *A)
strcat(R,H);strcat(R,P+1);
}
else strcpy(R,T);
//if(P=strchr(R,'%')) *P=C;

if(PP=strchr(R,'%')) *PP=C;

if(P=strchr(R,'*'))
{
Expand Down
3 changes: 3 additions & 0 deletions Z80Converter/main.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#define _CRT_SECURE_NO_WARNINGS

#include <stdint.h>
#include <stdio.h>
#include <iostream>
#include <iomanip>
Expand Down
Loading

0 comments on commit dae1423

Please sign in to comment.