totalspectrum / loadp2 Goto Github PK
View Code? Open in Web Editor NEWLoader for Parallax Propeller P2
License: Other
Loader for Parallax Propeller P2
License: Other
Currently it's just the same Could not find a P2 on port COMx
as everything else, which may be somewhat confusing.
More often than I want to admit, I've loaded a spin file instead of a binary file and then tried to troubleshoot why nothing works.
Simply printing a warning if the file extension to be loaded is spin/spin2/c/bas would be quite nice.
in osint_linux.c ftime is used to implement msleep function
Trying to port flexprop to OpenBSD and this function (and related sys/timeb.h) has been removed a looong time ago there as it has been deprecated in POSIX standard. Even in Linux it is obsoleted according to the man page.
The usleep function it replaces is ALSO obsoleted and replaced by nanosleep instead as below. Sorry no patch/pull request and maybe too simplistic as it will fail horribly when using more then 999 ms. However for loadp2 it works without any problems on both OpenBSD and Linux (Mint & raspbian)
void msleep(int ms)
{
struct timespec remaining, request = {0, ms * 1000000};
nanosleep(&request, &remaining);
}
PS I'll come back with a pull request for all the changes needed to get it to compile on OpenBSD once I've completed it all. For now it is mainly in the Makefiles, but still struggling with proploader and port selection in flexprop (similar to MacOS though)
The loadp2 Makefile creates and executes the following compile command:
gcc -Wall -O -DMACOSX -o build/loadp2 loadp2.c loadelf.c osint_linux.c
The build_macos file executes the following compile command:
gcc -Wall -DMACOSX loadp2.c loadelf.c osint_linux.c -o loadp2
Looks like the Makefile variant is building with "-O' optimizations... Should these be the same and is build_macos even needed?
Currently it just continues piping terminal data into the broken pipe....
I'd try looking into it myself, but
Here's a fun one:
_CLKFREQ = 100_000_000
DAT
asmclk
waitx ##_CLKFREQ*2
mov pa,##1000
.loop
debug("this is pretty mid tbh ",uhex_long(pa))
djnz pa,#.loop
debug("ok last one")
jmp #$
Running this through loadp2's terminal will invariably fail somewhere around pa = $0000_02DC
. Is fine if you use another terminal (tested with PST)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.