makefile: support ip command for Arch Linux; c64: clock correction

This commit is contained in:
Steven Hugg 2020-06-02 10:22:01 -05:00
parent c360b065f9
commit 8c20b43ed9
5 changed files with 110 additions and 4 deletions

View File

@ -23,11 +23,11 @@ lint:
web:
ifconfig | grep inet
(ip addr || ifconfig) | grep inet
python3 scripts/serveit.py 2>> /dev/null #http.out
tsweb:
ifconfig | grep inet
(ip addr || ifconfig) | grep inet
$(TSC) -w &
python3 scripts/serveit.py 2>> /dev/null #http.out

104
presets/c64/musicplayer.c Normal file

File diff suppressed because one or more lines are too long

View File

@ -394,6 +394,7 @@ var Apple2Display = function(pixels : Uint32Array, apple : AppleGRParams) {
const flashInterval = 500;
// https://mrob.com/pub/xapple2/colors.html
const loresColor = [
RGBA(0, 0, 0),
RGBA(227, 30, 96),

View File

@ -596,7 +596,7 @@ export class C64_WASMMachine extends BaseWASMMachine implements Machine {
}
advanceFrame(trap: TrapCondition) : number {
this.typeInitString(); // type init string into console (TODO: doesnt work during debug)
return super.advanceFrameClock(trap, 19656); // TODO: 985248 / 50 = 19705? music skips
return super.advanceFrameClock(trap, 19656+295); // TODO: can we sync with VSYNC?
}
typeInitString() {
if (this.initstring) {

View File

@ -5,7 +5,6 @@ import { PLATFORMS } from "../common/emu";
const C64_PRESETS = [
{id:'hello.dasm', name:'Hello World (ASM)'},
{id:'sidtune.dasm', name:'SID Tune (ASM)'},
{id:'eliza.c', name:'Eliza (C)'},
{id:'tgidemo.c', name:'TGI Graphics Demo (C)'},
{id:'upandaway.c', name:'Up, Up and Away (C)'},
@ -17,6 +16,8 @@ const C64_PRESETS = [
{id:'scroll4.c', name:'Scrolling 4 (C)'},
{id:'scroll5.c', name:'Scrolling 5 (C)'},
{id:'climber.c', name:'Climber Game (C)'},
{id:'multilines.c', name:'Multicolor Lines+Flood Fill (C)'},
{id:'sidtune.dasm', name:'SID Tune (ASM)'},
{id:'musicplayer.c', name:'Music Player (C)'},
];