mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-01-27 19:36:15 +00:00
github build/deb; fix warnings/errors
This commit is contained in:
parent
55a43d19f0
commit
9665431557
53
.github/workflows/publish.yaml
vendored
Normal file
53
.github/workflows/publish.yaml
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
|
||||||
|
env:
|
||||||
|
name: "epple2"
|
||||||
|
desc: "Apple ][ emulator"
|
||||||
|
deb_depends: "libSDL2"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: "write"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
"publish":
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: "actions/checkout@v3"
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
set -x
|
||||||
|
sudo apt-get install -qqq xa65 libsdl2-dev
|
||||||
|
./bootstrap
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
mkdir -p ./deb/usr/local/bin
|
||||||
|
cp ./src/epple2 ./deb/usr/local/bin/
|
||||||
|
mkdir -p ./deb/usr/local/etc/epple2
|
||||||
|
cp ./conf/epple2.conf ./deb/usr/local/etc/epple2/
|
||||||
|
mkdir -p ./deb/usr/local/lib/epple2/system
|
||||||
|
cp ./rom/epple2sys.a65 ./deb/usr/local/lib/epple2/system/
|
||||||
|
mkdir -p ./deb/usr/local/lib/epple2/cards
|
||||||
|
cp ./rom/stdout.a65 ./deb/usr/local/lib/epple2/cards/
|
||||||
|
cp ./rom/stdin.a65 ./deb/usr/local/lib/epple2/cards/
|
||||||
|
cp ./rom/clock.a65 ./deb/usr/local/lib/epple2/cards/
|
||||||
|
|
||||||
|
- uses: "jiro4989/build-deb-action@v2"
|
||||||
|
with:
|
||||||
|
package: "${{ env.name }}"
|
||||||
|
desc: "${{ env.desc }}"
|
||||||
|
maintainer: "${{ github.repository_owner }}"
|
||||||
|
version: "${{ github.ref }}"
|
||||||
|
arch: "amd64"
|
||||||
|
package_root: "./deb/"
|
||||||
|
depends: "${{ env.deb_depends }}"
|
||||||
|
|
||||||
|
- uses: "softprops/action-gh-release@v1"
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
*.deb
|
8
.gitignore
vendored
8
.gitignore
vendored
@ -8,6 +8,7 @@ Makefile.in
|
|||||||
/aclocal.m4
|
/aclocal.m4
|
||||||
/compile
|
/compile
|
||||||
/configure
|
/configure
|
||||||
|
/configure~
|
||||||
/depcomp
|
/depcomp
|
||||||
/install-sh
|
/install-sh
|
||||||
/missing
|
/missing
|
||||||
@ -29,3 +30,10 @@ Makefile
|
|||||||
# netbeans
|
# netbeans
|
||||||
|
|
||||||
/nbproject/
|
/nbproject/
|
||||||
|
|
||||||
|
# eclipse
|
||||||
|
|
||||||
|
/.autotools
|
||||||
|
/.cproject
|
||||||
|
/.project
|
||||||
|
/.settings/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- Autoconf -*-
|
# -*- Autoconf -*-
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(epple2, v1.0.5)
|
AC_INIT(epple2, v1.0.6)
|
||||||
AC_PREREQ(2.68)
|
AC_PREREQ(2.68)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([src/apple2.cpp])
|
AC_CONFIG_SRCDIR([src/apple2.cpp])
|
||||||
|
@ -236,6 +236,7 @@ void AnalogTV::drawCurrent()
|
|||||||
case MONITOR_COLOR: drawMonitorColor(); break;
|
case MONITOR_COLOR: drawMonitorColor(); break;
|
||||||
case MONITOR_GREEN: drawMonitorGreen(); break;
|
case MONITOR_GREEN: drawMonitorGreen(); break;
|
||||||
case TV_OLD_COLOR: drawTVOld(); break;
|
case TV_OLD_COLOR: drawTVOld(); break;
|
||||||
|
case NUM_DISPLAY_TYPES: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
10
src/cpu.cpp
10
src/cpu.cpp
@ -132,7 +132,7 @@ int CPU::getInterruptPseudoOpCode()
|
|||||||
return 0; // can't happen
|
return 0; // can't happen
|
||||||
}
|
}
|
||||||
|
|
||||||
void (CPU::*(CPU::addr[]))() =
|
void (CPU::*CPU::addr[])() =
|
||||||
{
|
{
|
||||||
&CPU::addr_MISC_BREAK,
|
&CPU::addr_MISC_BREAK,
|
||||||
&CPU::addr_INTERNAL_INDIRECT_X,
|
&CPU::addr_INTERNAL_INDIRECT_X,
|
||||||
@ -395,7 +395,7 @@ void (CPU::*(CPU::addr[]))() =
|
|||||||
&CPU::addr_IRQ,
|
&CPU::addr_IRQ,
|
||||||
};
|
};
|
||||||
|
|
||||||
void (CPU::*(CPU::exec[]))() =
|
void (CPU::*CPU::exec[])() =
|
||||||
{
|
{
|
||||||
&CPU::BRK,
|
&CPU::BRK,
|
||||||
&CPU::ORA,
|
&CPU::ORA,
|
||||||
@ -1826,14 +1826,14 @@ void CPU::ADC()
|
|||||||
int Op2 = this->data;
|
int Op2 = this->data;
|
||||||
if (this->p & PMASK_D)
|
if (this->p & PMASK_D)
|
||||||
{
|
{
|
||||||
setP(PMASK_Z,!(Op1 + Op2 + !!(this->p & PMASK_C) & 0xff));
|
setP(PMASK_Z,!((Op1 + Op2 + !!(this->p & PMASK_C)) & 0xff));
|
||||||
int tmp = (Op1 & 0xf) + (Op2 & 0xf) + !!(this->p & PMASK_C);
|
int tmp = (Op1 & 0xf) + (Op2 & 0xf) + !!(this->p & PMASK_C);
|
||||||
tmp = tmp >= 10 ? tmp + 6 : tmp;
|
tmp = tmp >= 10 ? tmp + 6 : tmp;
|
||||||
this->a = tmp;
|
this->a = tmp;
|
||||||
tmp = (Op1 & 0xf0) + (Op2 & 0xf0) + (tmp & 0xf0);
|
tmp = (Op1 & 0xf0) + (Op2 & 0xf0) + (tmp & 0xf0);
|
||||||
setP(PMASK_N,tmp < 0);
|
setP(PMASK_N,tmp < 0);
|
||||||
setP(PMASK_V,((Op1 ^ tmp) & ~(Op1 ^ Op2) & 0x80));
|
setP(PMASK_V,((Op1 ^ tmp) & ~(Op1 ^ Op2) & 0x80));
|
||||||
tmp = this->a & 0xf | (tmp >= 160 ? tmp + 96 : tmp);
|
tmp = (this->a & 0xf) | (tmp >= 160 ? tmp + 96 : tmp);
|
||||||
setP(PMASK_C,tmp >= 0x100);
|
setP(PMASK_C,tmp >= 0x100);
|
||||||
this->a = tmp & 0xff;
|
this->a = tmp & 0xff;
|
||||||
}
|
}
|
||||||
@ -1861,7 +1861,7 @@ void CPU::SBC()
|
|||||||
tmp = (tmp & 0x10) != 0 ? tmp - 6 : tmp;
|
tmp = (tmp & 0x10) != 0 ? tmp - 6 : tmp;
|
||||||
this->a = tmp;
|
this->a = tmp;
|
||||||
tmp = (Op1 & 0xf0) - (Op2 & 0xf0) - (this->a & 0x10);
|
tmp = (Op1 & 0xf0) - (Op2 & 0xf0) - (this->a & 0x10);
|
||||||
this->a = this->a & 0xf | ((tmp & 0x100) != 0 ? tmp - 96 : tmp);
|
this->a = (this->a & 0xf) | ((tmp & 0x100) != 0 ? tmp - 96 : tmp);
|
||||||
tmp = Op1 - Op2 - !(this->p & PMASK_C);
|
tmp = Op1 - Op2 - !(this->p & PMASK_C);
|
||||||
setP(PMASK_C,0 <= tmp && tmp < 0x100);
|
setP(PMASK_C,0 <= tmp && tmp < 0x100);
|
||||||
setStatusRegisterNZ(tmp);
|
setStatusRegisterNZ(tmp);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "memoryrandomaccess.h"
|
#include "memoryrandomaccess.h"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <exception>
|
#include <stdexcept>
|
||||||
|
|
||||||
#define K 1024u
|
#define K 1024u
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "memoryrow.h"
|
#include "memoryrow.h"
|
||||||
#include <exception>
|
#include <stdexcept>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
|
|
||||||
|
@ -527,7 +527,7 @@ void WozFile::rotateOneBit(std::uint8_t currentQuarterTrack) {
|
|||||||
// Check for hitting the end of our track,
|
// Check for hitting the end of our track,
|
||||||
// and if so, move back to the beginning.
|
// and if so, move back to the beginning.
|
||||||
// This is how we emulate a circular track on the floppy.
|
// This is how we emulate a circular track on the floppy.
|
||||||
if (this->trk_bits[this->tmap[currentQuarterTrack]] <= this->byt*8+bc(this->bit)) {
|
if (this->trk_bits[this->tmap[currentQuarterTrack]] <= this->byt*8u+bc(this->bit)) {
|
||||||
this->byt = 0;
|
this->byt = 0;
|
||||||
this->bit = 0x80u;
|
this->bit = 0x80u;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user