Virgil Dupras
0d172cc2c4
tools: add smsrom
Running a ROM on an everdrive is one thing, but running a ROM
directly is another: my hacked up sega.bin didn't have a proper
checksum, so the ROM didn't run.
This new tool transforms a binary into a properly-headered ROM.
Has been tested on an actual SMS.
3 years ago
Virgil Dupras
c9ce0f8cfd
tools/blkpack: support multiple dirname arguments
3 years ago
Virgil Dupras
7dc00179f7
tools/upload: use A! instead of C! to write
By default, it changes nothing, but it allows interesting
setups, such as using AT28! for directly uploading to EEPROM.
I've also updated the EEPROM recipe to upload directly to 0x2000.
I'm not sure what has changed, but it's working fine now.
3 years ago
Virgil Dupras
a19c814b0d
tools: improve reliability of ttyopen()
Previously, communications with my RC2014 would always be rocky and
fail most of the time. By sending an CR at init, things go much
smoother.
3 years ago
Virgil Dupras
fc7971d64f
tools: improve stty-related advices in README
3 years ago
Virgil Dupras
4632b3c157
tools/exec: exec specified file instead of hardcoding on stdin
Under OpenBSD, stdin is already used by the device itself because of
the whole "stty has no memory" situation.
3 years ago
Virgil Dupras
b8e52707e9
recipes/arduinouno/at28: improve reliability
Previously, it could never write more than a few bytes before pingpong
getting a mismatch error. Now, I can pingpong Collapse OS binary
without a mismatch.
3 years ago
Virgil Dupras
3607eefa55
Add arduinouno/at28 recipe
3 years ago
Virgil Dupras
c2b507eaff
tools: improve usability on OpenBSD
So far, I hadn't managed to run those tools properly on OpenBSD. I
was too confused by its stty peculiarities. I'm still confused, but
at least I managed to make them work... most of the time...
3 years ago
Virgil Dupras
a8302920cb
tools/memdump: expect proper prompt
3 years ago
Virgil Dupras
2d9a07d215
blkunpack: don't include trailing empty lines
This was becoming heavy to manage.
3 years ago
link2xt
4017fd04ac
Replace deprecated bzero with memset ( #119 )
3 years ago
link2xt
79da1db90e
tools: mark local C functions as static ( #120 )
3 years ago
Virgil Dupras
f6ded7712e
VE: add 't'
This is the first commit I do entirely in VE. It's a habit I'm planning
on taking as it helps a lot to find usability issues.
3 years ago
Zac Stewart
ae954906d8
Make blkpack close files when it's done reading them ( #108 )
* Report when a file cannot be opened
* Close files when done reading them
3 years ago
Virgil Dupras
bcddfd461d
blkpack: Remove usage of nonstandard d_type
The man page says it's not always available and it caused problems
under some FSes. The condition is not needed in the context of
blk/, let's scrap it.
3 years ago
Virgil Dupras
c07a594e1a
Begin working on a Visual Editor
3 years ago
Virgil Dupras
93c6d150e2
emul: don't embed forth.bin in emul binaries
Read the contents of forth.bin at runtime. This allows us to get
rid of the bin2c tooling.
4 years ago
Virgil Dupras
d777a74be3
Forth takeover!
4 years ago
Virgil Dupras
223cb94466
tools/upload: use C! instead of A!
Addressed devices are not included in Collapse OS by default. Let's
just accept that upload only works with memory.
4 years ago
Virgil Dupras
5504c796ee
tools: add blkup
With this tool, we can send content to a TRS-80 directly to floppy.
This paves the way to writing ourselves a set of disks containing the
blkfs!
4 years ago
Virgil Dupras
7344186c62
tools: add blkup
not actually tested yet...
4 years ago
Virgil Dupras
efed0e249e
recipes/rc2014/selfhost: add verification instructions
4 years ago
Virgil Dupras
dee7eea497
Move link.fs to blkfs
4 years ago
Virgil Dupras
a2f164ecc3
emul: bootstrap to stage2 from within Collapse OS!
Big bootstrapping change which greatly reduces the role of the modern
operating system in the bootstrapping process.
4 years ago
Virgil Dupras
13771d8c92
xcomp: add XPACK
4 years ago
Virgil Dupras
9edab10a3a
blk: add dirty flag and auto write blocks on fetch
Also, fix some PSP leaks related to LOAD.
4 years ago
Virgil Dupras
79ce88c12c
tools: add blkunpack
and remove cfspack, which will not ever be used again.
4 years ago
Virgil Dupras
d4cdb659b4
tools: add blkpack
4 years ago
Virgil Dupras
b536d3bfd6
rc2014: complete the EEPROM recipe
4 years ago
Virgil Dupras
d0545d555f
upload: use A! instead of C!
It makes the tool much more versatile. I'll have adev being included
in all recipes, so it can be assumed.
4 years ago
Virgil Dupras
509972b08c
tools: add exec and convert ./upload to Forth
4 years ago
Virgil Dupras
d6c9ab3f32
tools/stripfc: strip a little bit more
4 years ago
Virgil Dupras
e37f4c2551
bin2c: add missing stdtypes.h
4 years ago
Byron A. Grobe
217df20d77
Moved tools/bin2c to single-level with other tools.
4 years ago
Byron A. Grobe
f65c189e9b
Replace bin2c.sh with a more portable implementation.
`xxd' is not available on all systems, and on others does not support
the `-i' flag. Since bin2c.sh relied on a tool that I can't seem to find
a compatible version of, I have included a simple, portable replacement in C.
Usage remains the same:
bin2c ARRAYNAME < inputfile > outputfile.
This change is also reflected in emul/Makefile.
4 years ago
Virgil Dupras
ba384bfa0f
Add stripfc tool
4 years ago
Virgil Dupras
9235fa9223
Add /tools/slatest
To update LATEST offset more easily. Will be useful for recipes.
4 years ago
Virgil Dupras
049f2cf222
Reverse ttysafe escaping order
Sending the escape after its target made things complicated for upcoming
stuff I want to add. Although it makes `recv.asm` slightly larger, it's really
worth it.
4 years ago
Virgil Dupras
c5116b39ae
Fix tools Makefile for GNU make
It seems that my little "@.c" trick only worked in BSD make...
4 years ago
Virgil Dupras
a74ee81822
recipes/trs80: new recipe (WIP)
4 years ago
Virgil Dupras
439f880abe
Rewrite font_compile.pl to C
4 years ago
Virgil Dupras
359991c005
cfspack: fix compilation error
Some compilers don't like assigning stdout statically.
4 years ago
Virgil Dupras
4cde58fd83
cfspack: make into a library
Use it in shell instead of using popen()
4 years ago
Virgil Dupras
72357fec86
Move "emul" folder to root
4 years ago
Virgil Dupras
40f56dd6dc
cfspack: silence compilation warning
4 years ago
Virgil Dupras
c5c6ef4c6c
Move "tests" folder to root
4 years ago
Virgil Dupras
e3c885085d
Consolidate tests
Also, removed leftover in runbin.c (what did it do there??) that
could result in tests falsely passing.
4 years ago
Virgil Dupras
7ca54d179d
lib/expr: make EXPR_PARSE "tail" HL
Things are now much simpler.
4 years ago
Virgil Dupras
289037a3dd
lib/parse: make parseDecimal "tail" HL
HL, instead of being preserved, is set to the character following
the last read character.
4 years ago