mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-12-27 02:32:27 +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
|
||||
/compile
|
||||
/configure
|
||||
/configure~
|
||||
/depcomp
|
||||
/install-sh
|
||||
/missing
|
||||
@ -29,3 +30,10 @@ Makefile
|
||||
# netbeans
|
||||
|
||||
/nbproject/
|
||||
|
||||
# eclipse
|
||||
|
||||
/.autotools
|
||||
/.cproject
|
||||
/.project
|
||||
/.settings/
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- Autoconf -*-
|
||||
# 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_CONFIG_SRCDIR([src/apple2.cpp])
|
||||
|
@ -236,6 +236,7 @@ void AnalogTV::drawCurrent()
|
||||
case MONITOR_COLOR: drawMonitorColor(); break;
|
||||
case MONITOR_GREEN: drawMonitorGreen(); break;
|
||||
case TV_OLD_COLOR: drawTVOld(); break;
|
||||
case NUM_DISPLAY_TYPES: break;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
10
src/cpu.cpp
10
src/cpu.cpp
@ -132,7 +132,7 @@ int CPU::getInterruptPseudoOpCode()
|
||||
return 0; // can't happen
|
||||
}
|
||||
|
||||
void (CPU::*(CPU::addr[]))() =
|
||||
void (CPU::*CPU::addr[])() =
|
||||
{
|
||||
&CPU::addr_MISC_BREAK,
|
||||
&CPU::addr_INTERNAL_INDIRECT_X,
|
||||
@ -395,7 +395,7 @@ void (CPU::*(CPU::addr[]))() =
|
||||
&CPU::addr_IRQ,
|
||||
};
|
||||
|
||||
void (CPU::*(CPU::exec[]))() =
|
||||
void (CPU::*CPU::exec[])() =
|
||||
{
|
||||
&CPU::BRK,
|
||||
&CPU::ORA,
|
||||
@ -1826,14 +1826,14 @@ void CPU::ADC()
|
||||
int Op2 = this->data;
|
||||
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);
|
||||
tmp = tmp >= 10 ? tmp + 6 : tmp;
|
||||
this->a = tmp;
|
||||
tmp = (Op1 & 0xf0) + (Op2 & 0xf0) + (tmp & 0xf0);
|
||||
setP(PMASK_N,tmp < 0);
|
||||
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);
|
||||
this->a = tmp & 0xff;
|
||||
}
|
||||
@ -1861,7 +1861,7 @@ void CPU::SBC()
|
||||
tmp = (tmp & 0x10) != 0 ? tmp - 6 : tmp;
|
||||
this->a = tmp;
|
||||
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);
|
||||
setP(PMASK_C,0 <= tmp && tmp < 0x100);
|
||||
setStatusRegisterNZ(tmp);
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "memoryrandomaccess.h"
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
|
||||
#define K 1024u
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "memoryrow.h"
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
|
@ -527,7 +527,7 @@ void WozFile::rotateOneBit(std::uint8_t currentQuarterTrack) {
|
||||
// Check for hitting the end of our track,
|
||||
// and if so, move back to the beginning.
|
||||
// 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->bit = 0x80u;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user